Skip to content

Commit 06c069f

Browse files
Sean Andersonkuba-moo
authored andcommitted
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>
1 parent dd28f4c commit 06c069f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2655,9 +2655,11 @@ static int axienet_probe(struct platform_device *pdev)
26552655
switch (value) {
26562656
case 1:
26572657
lp->features |= XAE_FEATURE_PARTIAL_RX_CSUM;
2658+
ndev->features |= NETIF_F_RXCSUM;
26582659
break;
26592660
case 2:
26602661
lp->features |= XAE_FEATURE_FULL_RX_CSUM;
2662+
ndev->features |= NETIF_F_RXCSUM;
26612663
break;
26622664
}
26632665
}

0 commit comments

Comments
 (0)