]> Pileus Git - ~andy/linux/commit
ixgbe: Enable FCoE FSO and CRC offloads based on CAPABLE instead of ENABLED flag
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 25 May 2012 06:38:18 +0000 (06:38 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 20 Jul 2012 01:21:22 +0000 (18:21 -0700)
commita58915c7ecba89bef0914664ecf87c2156c68630
tree9db52c22fd17ed0c99a235efdfc31b0defd5ac46
parentef89e0a24ea97fc9209074a19cf60e63bba18c22
ixgbe: Enable FCoE FSO and CRC offloads based on CAPABLE instead of ENABLED flag

Instead of only setting the FCOE segmentation offload and CRC offload flags
if we enable FCoE, we could just set them always since there are no
modifications needed to the hardware or adapter FCoE structure in order to
use these features.

The advantage to this is that if FCoE enablement fails, for example because
SR-IOV was enabled on 82599, we will still have use of the FCoE
segmentation offload and Tx/Rx CRC offloads which should still help to
improve the FCoE performance.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c