netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] r8169: add support for 16K jumbo frames on RTL8125B
@ 2025-02-28 17:30 Rui Salvaterra
  2025-02-28 20:23 ` Heiner Kallweit
  2025-03-06  1:59 ` Jakub Kicinski
  0 siblings, 2 replies; 7+ messages in thread
From: Rui Salvaterra @ 2025-02-28 17:30 UTC (permalink / raw)
  To: hkallweit1, nic_swsd; +Cc: netdev, Rui Salvaterra

It's supported, according to the specifications.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
---

It's very likely that other RTL8125x devices also support 16K jumbo frames, but
I only have RTL8125B ones to test with. Additionally, I've only tested up to 12K
(my switch's limit).

 drivers/net/ethernet/realtek/r8169_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index 5a5eba49c651..2d9fd2b70735 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -89,6 +89,7 @@
 #define JUMBO_6K	(6 * SZ_1K - VLAN_ETH_HLEN - ETH_FCS_LEN)
 #define JUMBO_7K	(7 * SZ_1K - VLAN_ETH_HLEN - ETH_FCS_LEN)
 #define JUMBO_9K	(9 * SZ_1K - VLAN_ETH_HLEN - ETH_FCS_LEN)
+#define JUMBO_16K	(16 * SZ_1K - VLAN_ETH_HLEN - ETH_FCS_LEN)
 
 static const struct {
 	const char *name;
@@ -5326,6 +5327,9 @@ static int rtl_jumbo_max(struct rtl8169_private *tp)
 	/* RTL8168c */
 	case RTL_GIGA_MAC_VER_18 ... RTL_GIGA_MAC_VER_24:
 		return JUMBO_6K;
+	/* RTL8125B */
+	case RTL_GIGA_MAC_VER_63:
+		return JUMBO_16K;
 	default:
 		return JUMBO_9K;
 	}
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-07  7:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 17:30 [PATCH] r8169: add support for 16K jumbo frames on RTL8125B Rui Salvaterra
2025-02-28 20:23 ` Heiner Kallweit
2025-03-01 11:45   ` Rui Salvaterra
2025-03-01 14:14     ` Heiner Kallweit
2025-03-01 19:46       ` Rui Salvaterra
2025-03-06  1:59 ` Jakub Kicinski
2025-03-07  7:09   ` Heiner Kallweit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).