]> git.baikalelectronics.ru Git - kernel.git/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)
commit254eb17ffcf34c276fb402627d488986f1caa56a
tree9db52c22fd17ed0c99a235efdfc31b0defd5ac46
parent2c37d72aa874f0af346e8647373db65a6f0616de
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