cxgb4: Enable outer UDP checksum offload for T6
authorArjun Vynipadath <arjun@chelsio.com>
Thu, 28 Feb 2019 09:39:28 +0000 (15:09 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 18:26:03 +0000 (10:26 -0800)
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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

index 200b160345444274aa5c56d22bf4628c06c11506..1754ff79436074575875073ea8a74526e55137d4 100644 (file)
@@ -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;
                }