aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2024-09-09 12:10:15 -0400
committerJakub Kicinski <[email protected]>2024-09-10 18:34:51 -0700
commit06c069ff2f7013f85bd071e8bfccc4808ac59da4 (patch)
treee1e111c2a43f02ca92fce5b6edd25d84f76c9c54
parentdd28f4c0e81f42ba998462db0d117d93af5b7cb8 (diff)
net: xilinx: axienet: Set RXCSUM in features
When it is supported by hardware, we enable receive checksum offload unconditionally. Update features to reflect this. Signed-off-by: Sean Anderson <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_axienet_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index 37f19101fcf4..86f17c44ae90 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -2655,9 +2655,11 @@ static int axienet_probe(struct platform_device *pdev)
switch (value) {
case 1:
lp->features |= XAE_FEATURE_PARTIAL_RX_CSUM;
+ ndev->features |= NETIF_F_RXCSUM;
break;
case 2:
lp->features |= XAE_FEATURE_FULL_RX_CSUM;
+ ndev->features |= NETIF_F_RXCSUM;
break;
}
}