Skip to contentSkip to conversation

alx: add feature flag for rx checksumming

PATCH Applied Tobias Regnery 2 participants 2 messages Jan 9, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alx: add feature flag for rx checksumming

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.

---
 drivers/net/ethernet/atheros/alx/main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/atheros/alx/main.c +1 -0
index c66195d00ed4..4c80e0689db9 100644
@@ -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;
 
Signature · 1 line
2.9.3
maintainer Applied
#1 lore raw

From: Tobias Regnery <[email protected]>
Date: Mon, 9 Jan 2017 13:15:55 +0100

Quoted 8 lines

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.

Applied, thanks.