Skip to content

Commit dd28f4c

Browse files
Sean Andersonkuba-moo
authored andcommitted
net: xilinx: axienet: Enable NETIF_F_HW_CSUM for partial tx checksumming
Partial tx chechsumming is completely generic and does not depend on the L3/L4 protocol. Signal this to the net subsystem by enabling the more-generic offload feature (instead of restricting ourselves to TCP/UDP over IPv4 checksumming only like is necessary with full checksumming). Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b1e455c commit dd28f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,8 +2640,8 @@ static int axienet_probe(struct platform_device *pdev)
26402640
switch (value) {
26412641
case 1:
26422642
lp->features |= XAE_FEATURE_PARTIAL_TX_CSUM;
2643-
/* Can checksum TCP/UDP over IPv4. */
2644-
ndev->features |= NETIF_F_IP_CSUM;
2643+
/* Can checksum any contiguous range */
2644+
ndev->features |= NETIF_F_HW_CSUM;
26452645
break;
26462646
case 2:
26472647
lp->features |= XAE_FEATURE_FULL_TX_CSUM;

0 commit comments

Comments
 (0)