]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbevf: convert to ndo_fix_features
authorJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:54:07 +0000 (23:54 +0800)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:54:07 +0000 (23:54 +0800)
commitca76c811e551ca11f176ebd36c7f8e4a57a5c65a
tree556924c50649076d9fb3da3ec4891b7124c1ca74
parent70ddbd79c4a4c1273b8346e29a05a6bcbcefdf23
ixgbevf: convert to ndo_fix_features

Private rx_csum flags are now duplicate of netdev->features & NETIF_F_RXCSUM.
Removing this needs deeper surgery.

Since ixgbevf doesn't change hardware state on RX csum enable/disable
its reset is avoided.

Things noticed:
 - HW VLAN acceleration probably can be toggled, but it's left as is
 - the resets on RX csum offload change can probably be avoided
 - there is A LOT of copy-and-pasted code here

(backported from commit 471a76ded87d3375a3449dfa3d1cec567edd0c50)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbevf/ethtool.c
drivers/net/ixgbevf/ixgbevf_main.c