diff options
author | Arjun Vynipadath <arjun@chelsio.com> | 2019-02-28 12:39:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-28 21:26:03 +0300 |
commit | 64f40cdd07e19b509302d5cb53878ed9d9fa3b5b (patch) | |
tree | 8cddca51a77d23060c25acad7f6f2d78df1b1ac7 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | 012475e3c59cbe488779e86565807a73ff115f4b (diff) | |
download | linux-64f40cdd07e19b509302d5cb53878ed9d9fa3b5b.tar.xz |
cxgb4: Enable outer UDP checksum offload for T6
T6 adapters support outer UDP checksum offload for
encapsulated packets, hence enabling netdev feature flag
NETIF_F_GSO_UDP_TUNNEL_CSUM.
Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 200b16034544..1754ff794360 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -5719,9 +5719,11 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent) NETIF_F_IPV6_CSUM | NETIF_F_RXCSUM | NETIF_F_GSO_UDP_TUNNEL | + NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_TSO | NETIF_F_TSO6; netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | + NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_HW_TLS_RECORD; } |