Re: Disabling VLAN_HWTAGGING

From: Jacob S. Barrett (jbarrett_at_amduat.net)
Date: 03/27/04

  • Next message: Ruslan Ermilov: "Re: Disabling VLAN_HWTAGGING"
    To: Ruslan Ermilov <ru@freebsd.org>
    Date: Fri, 26 Mar 2004 18:44:52 -0800
    
    

    I did a little more debugging and placed some printf statements before and
    after:
                    /*
                     * If we received a packet with a vlan tag, pass it
                     * to vlan_input() instead of ether_input().
                     */
                    if (extsts & NGE_RXEXTSTS_VLANPKT) {
                            VLAN_INPUT_TAG(ifp, m,
                                    extsts & NGE_RXEXTSTS_VTCI, continue);
                    }

    What I found is that VLAN tagged frames sent to the interface never get to
    this line at all. I figured the NIC must be droping it or something before
    it even gets to the driver. So I commented out the following line:
            /*
             * Tell the chip to detect and strip VLAN tag info from
             * received frames. The tag will be provided in the extsts
             * field in the RX descriptors.
             */
            NGE_SETBIT(sc, NGE_VLAN_IP_RXCTL,
                NGE_VIPRXCTL_TAG_DETECT_ENB|NGE_VIPRXCTL_TAG_STRIP_ENB);

    Now the driver gets the frame but the conditional about is false, presumable
    because I comment out that line which says it will detect and set the extsts.
    It does however get delivered to the ng lower hook and therefor the ng_vlan
    gets it. The ng_eiface tied to vlan2 replies to the arp requests. Strangely
    though when an ICMP ping request gets to ng_eiface it ignores it.

    02:27:16.658526 0:90:27:f4:58:1d ff:ff:ff:ff:ff:ff 0806 56: arp who-has
    10.2.0.1 tell 10.2.0.2
    02:27:16.658633 11:22:33:44:55:66 0:90:27:f4:58:1d 0806 42: arp reply 10.2.0.1
    is-at 11:22:33:44:55:66
    02:27:16.659132 0:90:27:f4:58:1d 11:22:33:44:55:66 0800 98: 10.2.0.2 >
    10.2.0.1: icmp: echo request
    02:27:16.664321 0:90:27:f4:58:1d 11:22:33:44:55:66 0800 98: 10.2.0.2 >
    10.2.0.1: icmp: echo request

    Even more odd, I can ping from the ng_eiface interface and it makes it tagged
    all the way out and back just fine. The ng_eiface gets the ICMP response just
    fine.

    Does any of this make sense to you? Is there possibly something wrong with
    the logic in that detect and stip flag? Am I just a total tool and missing
    someting completely obvious here, because it wouldn't be the first time.

    Does anyone have a 1Gbit fiber NIC that they have tested in and out with VLAN
    tagging that they could recommend.

    -- 
    Jacob S. Barrett
    jbarrett@amduat.net
    www.amduat.net
    "I don't suffer from insanity, I enjoy every minute of it."
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: Ruslan Ermilov: "Re: Disabling VLAN_HWTAGGING"

    Relevant Pages

    • Re: OSFP router-id not appearing in traceroute (on 7204VXR)
      ... packet will have the source IP address on which the packet was ... With ICMP the echo reply packet will have the source IP address ... that was the destination address of the echo request. ... address of the interface on which the UDP packet was received. ...
      (comp.dcom.sys.cisco)
    • Re: paging all socket geniuses
      ... delay when WINS relays a request to DNS. ... or intermediate device blocks icmp *echo request* and blocks or does ...
      (comp.lang.lisp)
    • Re: XP-SP2 "Feature"
      ... in which case ICMP is not required. ... never be enabled on the ICF interface anyway. ... so is incoming pings. ... The real uncomfortable thing here is for home users. ...
      (Focus-Microsoft)
    • Re: OpenVPN works on one host on subnet, not others
      ... However I can't ping any other host on the subnet. ... > tcpdump: listening on de1 ... > hoover: icmp: echo request ...
      (comp.unix.bsd.openbsd.misc)
    • Re: Stealth vs. Blocked
      ... > ICMP as a protocol provides more than just echo reply and echo request. ... you should expect an out-of-band FIN packet to be silently ... I understand what you are saying (I use nmap and nessus all the ...
      (alt.computer.security)