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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent dd28f4c commit 06c069f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)