Netmap ixgbe stripping Vlan tags

De La Gueronniere, Marc mdelagueronniere at verisign.com
Fri Aug 23 23:39:17 UTC 2013



On 8/23/13 4:01 PM, "Andre Oppermann" <andre at freebsd.org> wrote:

>On 23.08.2013 15:12, Harika Tandra wrote:
>> Hi all,
>>
>> I agree with Andre's statement
>>> A netmap consumer
>>> typically doesn't expect packets be mangled at all, mostly likely
>>>netmap is
>>> expressly used to get the packet exactly as they were seen on the wire.
>>
>> For my application I want to see the whole packet as is (as seen on the
>>wire).
>> I am sure it is important for many users who are interested in
>> using netmap for speedup of packet capture in network
>>security/monitoring applications.
>>
>> When I disable "vlanhwfilter" flag on the interface. It is behaving as
>>expected and is
>> not stripping the Vlan tags when placed in promiscuous mode. Netmap
>>seems to be ignoring
>> his setting or is resetting this option  someplace (??). Any suggestion
>>on where in Netmap
>> code this maybe ?
>
>When you switch an interface to netmap mode it does a soft-reset first.
>That reverts the vlanhwfilter configuration to default on.  It's not
>netmap that does it but the driver.  It seems to happen in or around
>ixgbe_setup_vlan_hw_support().


Hi all,

I ran into this issue last week. We are using a vlan interface on top of
an ixgbe interface in netmap mode. I think there are at least two separate
problems:

-ixgbe does not let you turn off vlan tag stripping (via ifconfig
-vlanhwtag ). I am not completely sure this is a bug since vlanhwtag exact
semantic is unclear to me.

-In my opinion netmap should automatically disable vlan tag stripping and
generation since it does not support carrying the 802.1q metadata over.

I have a couple patches that I will be testing on Monday. See attachments.

Marc


>
>-- 
>Andre
>
>_______________________________________________
>freebsd-net at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-net
>To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ixgbe-if-IFCAP_VLAN_HWTAGGING-is-not-set-actually-tu.patch
Type: application/octet-stream
Size: 1224 bytes
Desc: 0001-ixgbe-if-IFCAP_VLAN_HWTAGGING-is-not-set-actually-tu.patch
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20130823/f0d3bb46/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Force-VLAN_HWTAGGING-off-in-Netmap-mode.patch
Type: application/octet-stream
Size: 788 bytes
Desc: 0002-Force-VLAN_HWTAGGING-off-in-Netmap-mode.patch
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20130823/f0d3bb46/attachment-0001.obj>


More information about the freebsd-net mailing list