]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
igc: Enable NETIF_F_HW_TC flag
authorSasha Neftin <sasha.neftin@intel.com>
Tue, 3 Mar 2020 00:28:08 +0000 (02:28 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Apr 2020 17:19:24 +0000 (10:19 -0700)
This assignment of the feature NETIF_F_HW_TC
occurs prior to the initial setup of the local
hw_features variable.

This ensures that NETIF_F_HW_TC are marked
as user changeable, and also enables it by
default when the driver loads.

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 896b314035c9098c5a3f655ef208311bd0d351f8..800268da0834e23eb7f058017fd97a3d03d679df 100644 (file)
@@ -4903,6 +4903,7 @@ static int igc_probe(struct pci_dev *pdev,
        netdev->features |= NETIF_F_RXCSUM;
        netdev->features |= NETIF_F_HW_CSUM;
        netdev->features |= NETIF_F_SCTP_CRC;
+       netdev->features |= NETIF_F_HW_TC;
 
 #define IGC_GSO_PARTIAL_FEATURES (NETIF_F_GSO_GRE | \
                                  NETIF_F_GSO_GRE_CSUM | \