Netmap ixgbe stripping Vlan tags

Andre Oppermann andre at freebsd.org
Fri Aug 23 14:01:41 UTC 2013


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().

-- 
Andre



More information about the freebsd-net mailing list