net: ethernet: cortina: Fix max RX frame define
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 9 Nov 2023 09:03:12 +0000 (10:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Nov 2023 04:58:19 +0000 (20:58 -0800)
Enumerator 3 is 1548 bytes according to the datasheet.
Not 1542.

Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20231109-gemini-largeframe-fix-v4-1-6e611528db08@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cortina/gemini.c
drivers/net/ethernet/cortina/gemini.h

index 5423fe2..562b091 100644 (file)
@@ -432,8 +432,8 @@ static const struct gmac_max_framelen gmac_maxlens[] = {
                .val = CONFIG0_MAXLEN_1536,
        },
        {
-               .max_l3_len = 1542,
-               .val = CONFIG0_MAXLEN_1542,
+               .max_l3_len = 1548,
+               .val = CONFIG0_MAXLEN_1548,
        },
        {
                .max_l3_len = 9212,
index 9fdf77d..99efb11 100644 (file)
@@ -787,7 +787,7 @@ union gmac_config0 {
 #define  CONFIG0_MAXLEN_1536   0
 #define  CONFIG0_MAXLEN_1518   1
 #define  CONFIG0_MAXLEN_1522   2
-#define  CONFIG0_MAXLEN_1542   3
+#define  CONFIG0_MAXLEN_1548   3
 #define  CONFIG0_MAXLEN_9k     4       /* 9212 */
 #define  CONFIG0_MAXLEN_10k    5       /* 10236 */
 #define  CONFIG0_MAXLEN_1518__6        6