rtase: Fix Rx descriptor CRC error bit definition
authorJustin Lai <justinlai0215@realtek.com>
Wed, 13 Aug 2025 07:16:31 +0000 (15:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Aug 2025 00:53:12 +0000 (17:53 -0700)
The CRC error bit is located at bit 17 in the Rx descriptor, but the
driver was incorrectly using bit 16. Fix it.

Fixes: a36e9f5cfe9e ("rtase: Add support for a pci table in this module")
Signed-off-by: Justin Lai <justinlai0215@realtek.com>
Link: https://patch.msgid.link/20250813071631.7566-1-justinlai0215@realtek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/rtase/rtase.h

index 20decdeb9fdbb7fb43db48e7ed27160b0de1ccec..b9209eb6ea7350e27121b4111b3bd33cadf559d9 100644 (file)
@@ -241,7 +241,7 @@ union rtase_rx_desc {
 #define RTASE_RX_RES        BIT(20)
 #define RTASE_RX_RUNT       BIT(19)
 #define RTASE_RX_RWT        BIT(18)
-#define RTASE_RX_CRC        BIT(16)
+#define RTASE_RX_CRC        BIT(17)
 #define RTASE_RX_V6F        BIT(31)
 #define RTASE_RX_V4F        BIT(30)
 #define RTASE_RX_UDPT       BIT(29)