Date: Fri, 26 Nov 2010 15:42:45 -0500 From: Ryan Stone <rysto32@gmail.com> To: Jack Vogel <jfvogel@gmail.com> Cc: beezarliu <beezarliu@yahoo.com.cn>, freebsd-net <freebsd-net@freebsd.org> Subject: Re: 82599 receiving packets with vlan tag=0 (vlan strip problem)? Message-ID: <AANLkTik%2B4Ag1HYXDWJvn2fTx6M%2Bpa9o29-A8j6qVRhZ_@mail.gmail.com> In-Reply-To: <AANLkTimWVJhtu8LrZ_tn0Tdr-vs9PmPnW9SjebT7jnyM@mail.gmail.com> References: <201011261037105152721@yahoo.com.cn> <AANLkTikYZN0hoH6Ht-ZhukM2OVXZOyvU9-O%2BpbJ%2BsBj9@mail.gmail.com> <AANLkTimWVJhtu8LrZ_tn0Tdr-vs9PmPnW9SjebT7jnyM@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
If vlan stripping is disabled on the 82599(i.e. RXDCTL.VME is 0 for that queue is clear) and a vlan-tagged packet is received, then the descriptor for that packet will have the VP bit set even though the vlan was not stripped, and the VLAN Tag field in the descriptor is set to 0. ixgbe_rxeof will see that the VP bit is set and set the M_VLANTAG on the mbuf, and put 0 in m_pkthdr.ether_vtag. This means that the stack will treat the packet as if it was double vlan tagged, with outer tag being 0. Ryan Stone
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik%2B4Ag1HYXDWJvn2fTx6M%2Bpa9o29-A8j6qVRhZ_>