diff options
author | Arjun Vynipadath <arjun@chelsio.com> | 2019-02-28 04:39:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-28 13:26:03 -0500 |
commit | 64f40cdd07e19b509302d5cb53878ed9d9fa3b5b (patch) | |
tree | 8cddca51a77d23060c25acad7f6f2d78df1b1ac7 | |
parent | 012475e3c59cbe488779e86565807a73ff115f4b (diff) |
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>
-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) | |||
5719 | NETIF_F_IPV6_CSUM | | 5719 | NETIF_F_IPV6_CSUM | |
5720 | NETIF_F_RXCSUM | | 5720 | NETIF_F_RXCSUM | |
5721 | NETIF_F_GSO_UDP_TUNNEL | | 5721 | NETIF_F_GSO_UDP_TUNNEL | |
5722 | NETIF_F_GSO_UDP_TUNNEL_CSUM | | ||
5722 | NETIF_F_TSO | NETIF_F_TSO6; | 5723 | NETIF_F_TSO | NETIF_F_TSO6; |
5723 | 5724 | ||
5724 | netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | | 5725 | netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | |
5726 | NETIF_F_GSO_UDP_TUNNEL_CSUM | | ||
5725 | NETIF_F_HW_TLS_RECORD; | 5727 | NETIF_F_HW_TLS_RECORD; |
5726 | } | 5728 | } |
5727 | 5729 | ||