On 8/23/13 4:01 PM, "Andre Oppermann" <an...@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@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
0001-ixgbe-if-IFCAP_VLAN_HWTAGGING-is-not-set-actually-tu.patch
Description: 0001-ixgbe-if-IFCAP_VLAN_HWTAGGING-is-not-set-actually-tu.patch
0002-Force-VLAN_HWTAGGING-off-in-Netmap-mode.patch
Description: 0002-Force-VLAN_HWTAGGING-off-in-Netmap-mode.patch
_______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"