net: xilinx: axienet: Set RXCSUM in features
authorSean Anderson <sean.anderson@linux.dev>
Mon, 9 Sep 2024 16:10:15 +0000 (12:10 -0400)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Sep 2024 01:34:51 +0000 (18:34 -0700)
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>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index 37f19101fcf4962087e6fb46ac4a72889a74a6a7..86f17c44ae90372c29e504e1afe96e7ae7ee14b9 100644 (file)
@@ -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;
                }
        }