|
@@ -6117,6 +6117,7 @@ static int ixgbe_sw_init(struct ixgbe_adapter *adapter,
|
|
|
#ifdef CONFIG_IXGBE_DCB
|
|
|
ixgbe_init_dcb(adapter);
|
|
|
#endif
|
|
|
+ ixgbe_init_ipsec_offload(adapter);
|
|
|
|
|
|
/* default flow control settings */
|
|
|
hw->fc.requested_mode = ixgbe_fc_full;
|
|
@@ -10429,6 +10430,14 @@ skip_sriov:
|
|
|
if (hw->mac.type >= ixgbe_mac_82599EB)
|
|
|
netdev->features |= NETIF_F_SCTP_CRC;
|
|
|
|
|
|
+#ifdef CONFIG_XFRM_OFFLOAD
|
|
|
+#define IXGBE_ESP_FEATURES (NETIF_F_HW_ESP | \
|
|
|
+ NETIF_F_HW_ESP_TX_CSUM | \
|
|
|
+ NETIF_F_GSO_ESP)
|
|
|
+
|
|
|
+ if (adapter->ipsec)
|
|
|
+ netdev->features |= IXGBE_ESP_FEATURES;
|
|
|
+#endif
|
|
|
/* copy netdev features into list of user selectable features */
|
|
|
netdev->hw_features |= netdev->features |
|
|
|
NETIF_F_HW_VLAN_CTAG_FILTER |
|
|
@@ -10491,8 +10500,6 @@ skip_sriov:
|
|
|
NETIF_F_FCOE_MTU;
|
|
|
}
|
|
|
#endif /* IXGBE_FCOE */
|
|
|
- ixgbe_init_ipsec_offload(adapter);
|
|
|
-
|
|
|
if (adapter->flags2 & IXGBE_FLAG2_RSC_CAPABLE)
|
|
|
netdev->hw_features |= NETIF_F_LRO;
|
|
|
if (adapter->flags2 & IXGBE_FLAG2_RSC_ENABLED)
|