summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@linux.dev>2024-09-09 19:10:15 +0300
committerJakub Kicinski <kuba@kernel.org>2024-09-11 04:34:51 +0300
commit06c069ff2f7013f85bd071e8bfccc4808ac59da4 (patch)
treee1e111c2a43f02ca92fce5b6edd25d84f76c9c54 /drivers/net/ethernet
parentdd28f4c0e81f42ba998462db0d117d93af5b7cb8 (diff)
downloadlinux-06c069ff2f7013f85bd071e8bfccc4808ac59da4.tar.xz
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 <sean.anderson@linux.dev> Link: https://patch.msgid.link/20240909161016.1149119-4-sean.anderson@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet')
-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;
}
}