mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 16:30:53 -05:00
If hardware vlan tagging is disabled (after a vlan has been added) we
receive double-tagged packets, even if the packet on the wire only has a
single VLAN tag. That looks like this:
17:29:30.370787 00:51:82:11:22:02 > 90:ec:77:1f:8a:5f, ethertype 802.1Q (0x8100), length 64: vlan 0, p 0, ethertype 802.1Q, vlan 1001, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Reply 10.101.0.12 is-at 00:51:82:11:22:02, length 42
This happens because the ixgbe driver does not clear the vlan flags in
the hardware (such as IXGBE_RXDCTL_VME) if IFCAP_VLAN_HWTAGGING is
cleared.
Add code to do so, which fixes this issue.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D36139
|
||
|---|---|---|
| .. | ||
| if_bypass.c | ||
| if_fdir.c | ||
| if_ix.c | ||
| if_ixv.c | ||
| if_sriov.c | ||
| ix_txrx.c | ||
| ixgbe.h | ||
| ixgbe_82598.c | ||
| ixgbe_82598.h | ||
| ixgbe_82599.c | ||
| ixgbe_82599.h | ||
| ixgbe_api.c | ||
| ixgbe_api.h | ||
| ixgbe_bypass.h | ||
| ixgbe_common.c | ||
| ixgbe_common.h | ||
| ixgbe_dcb.c | ||
| ixgbe_dcb.h | ||
| ixgbe_dcb_82598.c | ||
| ixgbe_dcb_82598.h | ||
| ixgbe_dcb_82599.c | ||
| ixgbe_dcb_82599.h | ||
| ixgbe_fdir.h | ||
| ixgbe_features.h | ||
| ixgbe_mbx.c | ||
| ixgbe_mbx.h | ||
| ixgbe_osdep.c | ||
| ixgbe_osdep.h | ||
| ixgbe_phy.c | ||
| ixgbe_phy.h | ||
| ixgbe_rss.h | ||
| ixgbe_sriov.h | ||
| ixgbe_type.h | ||
| ixgbe_vf.c | ||
| ixgbe_vf.h | ||
| ixgbe_x540.c | ||
| ixgbe_x540.h | ||
| ixgbe_x550.c | ||
| ixgbe_x550.h | ||