igc: Add 64 bit DMA access support
authorSasha Neftin <sasha.neftin@intel.com>
Wed, 13 Nov 2019 09:27:29 +0000 (11:27 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 31 Dec 2019 19:17:25 +0000 (11:17 -0800)
On relevant platforms ndo_start_xmit can handle socket buffer
fragments in high memory

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 d3a45d3cbcd92a9bb2f21e1a3c1b67363a1be9aa..b85009837cdff97af776fe2302d464b29709ab10 100644 (file)
@@ -4445,6 +4445,9 @@ static int igc_probe(struct pci_dev *pdev,
        netdev->hw_features |= NETIF_F_NTUPLE;
        netdev->hw_features |= netdev->features;
 
+       if (pci_using_dac)
+               netdev->features |= NETIF_F_HIGHDMA;
+
        /* MTU range: 68 - 9216 */
        netdev->min_mtu = ETH_MIN_MTU;
        netdev->max_mtu = MAX_STD_JUMBO_FRAME_SIZE;