]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix bug with vlan strip in promsic mode
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 14 Apr 2010 23:04:23 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2010 23:11:34 +0000 (16:11 -0700)
commit8d570e9ccefbd7756f30e52de3b41242e4f8afa9
treecc8c13c6e78f001225d8c6f9a6eaa7cabb3ca666
parent790416cc154d6102f9df96ddab07c1547f233d2e
ixgbe: fix bug with vlan strip in promsic mode

The ixgbe driver was setting up 82598 hardware correctly, so that
when promiscuous mode was enabled hardware stripping was turned
off.  But on 82599 the logic to disable/enable hardware stripping
is different, and the code was not updated correctly when the
hardware vlan stripping was enabled as default.

This change comprises the creation of two new helper functions
and calling them from the right locations to disable and enable
hardware stripping of vlan tags at appropriate times.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c