igc: Add scatter gather support
authorSasha Neftin <sasha.neftin@intel.com>
Thu, 31 Oct 2019 06:06:07 +0000 (08:06 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 31 Dec 2019 19:17:25 +0000 (11:17 -0800)
Scatter gather is used to do DMA data transfers of data that is written to
noncontiguous areas of memory.
This patch enables scatter gather support.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c

index 9700527..75dcaa8 100644 (file)
@@ -4433,6 +4433,7 @@ static int igc_probe(struct pci_dev *pdev,
                goto err_sw_init;
 
        /* Add supported features to the features list*/
+       netdev->features |= NETIF_F_SG;
        netdev->features |= NETIF_F_RXCSUM;
        netdev->features |= NETIF_F_HW_CSUM;
        netdev->features |= NETIF_F_SCTP_CRC;