diff options
| author | Shannon Nelson <[email protected]> | 2018-03-16 18:09:07 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2018-03-23 22:04:24 +0000 |
| commit | 70da6824c3db2b0ab3088a5451eda6aa2302c51f (patch) | |
| tree | c12bc7c6a8d018c8a3a53f2fafb2aa086d696e42 /drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | |
| parent | ixgbe: no need for esp trailer if GSO (diff) | |
| download | kernel-70da6824c3db2b0ab3088a5451eda6aa2302c51f.tar.gz kernel-70da6824c3db2b0ab3088a5451eda6aa2302c51f.zip | |
ixgbe: enable TSO with IPsec offload
Fix things up to support TSO offload in conjunction
with IPsec hw offload. This raises throughput with
IPsec offload on to nearly line rate.
Signed-off-by: Shannon Nelson <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c index 5ddea43a21c2..68af127987bc 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c @@ -929,8 +929,13 @@ void ixgbe_init_ipsec_offload(struct ixgbe_adapter *adapter) ixgbe_ipsec_clear_hw_tables(adapter); adapter->netdev->xfrmdev_ops = &ixgbe_xfrmdev_ops; - adapter->netdev->features |= NETIF_F_HW_ESP; - adapter->netdev->hw_enc_features |= NETIF_F_HW_ESP; + +#define IXGBE_ESP_FEATURES (NETIF_F_HW_ESP | \ + NETIF_F_HW_ESP_TX_CSUM | \ + NETIF_F_GSO_ESP) + + adapter->netdev->features |= IXGBE_ESP_FEATURES; + adapter->netdev->hw_enc_features |= IXGBE_ESP_FEATURES; return; |
