diff options
author | Sunil Goutham <sgoutham@marvell.com> | 2020-09-01 15:01:42 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-01 15:37:35 -0700 |
commit | dc1a9bf2c8169d9f607502162af1858a73a18cb8 (patch) | |
tree | 55b59e3a10c0a7b3e93c6c19f3bf6b953f0f43fa /drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | |
parent | net: dsa: mv88e6xxx: Fix W=1 warning with !CONFIG_OF (diff) | |
download | linux-dev-dc1a9bf2c8169d9f607502162af1858a73a18cb8.tar.xz linux-dev-dc1a9bf2c8169d9f607502162af1858a73a18cb8.zip |
octeontx2-pf: Add UDP segmentation offload support
Defines UDP segmentation algorithm in hardware and supports
offloading UDP segmentation.
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c index f5f874a2b53e..aac2845c1fb1 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c @@ -1501,6 +1501,9 @@ int otx2_open(struct net_device *netdev) if (err) goto err_disable_napi; + /* Setup segmentation algorithms, if failed, clear offload capability */ + otx2_setup_segmentation(pf); + /* Initialize RSS */ err = otx2_rss_init(pf); if (err) @@ -2091,7 +2094,8 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id) netdev->hw_features = (NETIF_F_RXCSUM | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_RXHASH | - NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6); + NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6 | + NETIF_F_GSO_UDP_L4); netdev->features |= netdev->hw_features; netdev->hw_features |= NETIF_F_LOOPBACK | NETIF_F_RXALL; |