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>
This commit is contained in:
committed by
Jakub Kicinski
parent
dd28f4c0e8
commit
06c069ff2f
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user