From ed6c95e5229755f18cb31f70d0bb47361a0dc42b Mon Sep 17 00:00:00 2001 From: Jan Hoffmann Date: Tue, 24 Mar 2026 15:24:54 +0100 Subject: [PATCH] Improve compatibility with 2.5G SFP modules Some modules might report a nominal bitrate of 2500 Mbd or 3200 Mbd instead of 3100 Mbd. Accept the entire range to make them work. --- rtlplayground.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtlplayground.c b/rtlplayground.c index d2727b2..2845447 100644 --- a/rtlplayground.c +++ b/rtlplayground.c @@ -997,7 +997,7 @@ static inline uint8_t sfp_rate_to_sds_config(register uint8_t rate) { if (rate == 0xd) return SDS_1000BX_FIBER; - if (rate == 0x1f) // Ethernet 2.5 GBit + if (rate >= 0x19 && rate <= 0x20) // Ethernet 2.5 GBit return SDS_HSG; if (rate > 0x65 && rate < 0x70) return SDS_10GR;