]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
alx: add feature flag for rx checksumming
authorTobias Regnery <tobias.regnery@gmail.com>
Mon, 9 Jan 2017 12:15:55 +0000 (13:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 19:52:54 +0000 (14:52 -0500)
The code to handle rx checksumming was in the driver since its introduction
but for reasons unknown the feature flag was left out. Now it is possible
to enable this feature with ethtool.

Tested on my AR8161 ethernet card, there are no regressions observed in
netperf if this feature is enabled.

Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c

index c66195d00ed4079a24d87fd4eae0bd9d8c8feb18..4c80e0689db9b5085c5996e65fac15331c3ad3fa 100644 (file)
@@ -1816,6 +1816,7 @@ static int alx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        netdev->hw_features = NETIF_F_SG |
                              NETIF_F_HW_CSUM |
+                             NETIF_F_RXCSUM |
                              NETIF_F_TSO |
                              NETIF_F_TSO6;