OSDN Git Service

ixgbe: restore normal RSS after last macvlan offload is removed
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 15 Aug 2017 15:59:54 +0000 (08:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 16:36:31 +0000 (09:36 -0700)
commitf5a71caa1763cc8fd1b108234689d6a7e4fe9d2f
tree51f9291e55343c808242d35fd91297a44abc439c
parent2e033eace7557a4b67ba1cb2746bd87d6ca2620b
ixgbe: restore normal RSS after last macvlan offload is removed

Just like when the last VF is removed, we need to restore normal
operations after the last macvlan offload is removed, else we
get stuck in single queue operations.

To test:
ethtool -l eth1   # note the number of queues in use, ~= cpus

ethtool -K eth1 l2-fwd-offload on
ip link add mv1 link eth1 type macvlan mode bridge
ip link set dev mv1 up
ip link del mv1

ethtool -l eth1   # are we back to the same # of queues, or stuck on 1?

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c