Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2013 16:01:30 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        Harika Tandra <htandra@gloriad.org>
Cc:        Juli Mallett <jmallett@FreeBSD.org>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: Netmap ixgbe stripping Vlan tags
Message-ID:  <52176B3A.1040804@freebsd.org>
In-Reply-To: <EDB2CF64-2241-486E-8B10-F8977EF88048@gloriad.org>
References:  <FC9BCAD9-5D16-4E70-A9C5-FA9D9A22B84C@gloriad.org> <521708E8.4000105@freebsd.org> <CACVs6=_Er_rmOcKz2UdT-98JPZktmE7q4smZUOhA9Fn-z%2B8yCw@mail.gmail.com> <5217494C.6060302@freebsd.org> <EDB2CF64-2241-486E-8B10-F8977EF88048@gloriad.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52176B3A.1040804>