ixgbe: Fix bit definitions and add support for testing for ipsec support
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 5 Jun 2018 15:11:14 +0000 (11:11 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 11 Jun 2018 15:50:51 +0000 (08:50 -0700)
commit421d954c4f1e9afd55bc65398bfc64ceba38df21
tree4a3c18b69719f0600c30c8812f007d3893e6bbc6
parente9f655ee97f14b4f5eba7b6b5a56a7c298573e67
ixgbe: Fix bit definitions and add support for testing for ipsec support

This patch addresses two issues. First it adds the correct bit definitions
for the SECTXSTAT and SECRXSTAT registers. Then it makes use of those
definitions to test for if IPsec has been disabled on the part and if so we
do not enable it.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Reported-by: Andre Tomt <andre@tomt.net>
Acked-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_ipsec.c
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h