Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit is tagged with two Fixes: tags (fd3c7d080df5 for RTL8157 and ad2a55b63b41 for RTL8159), so it will be picked up for… -- r8152: add rtl8157_change_mtu() for RTL8157 and RTL8159 This commit adds rtl8157_change_mtu() for RTL8157 and RTL8159. The new helper programs PLA_MTPS from the configured MTU: max_pkt_size / 64, with a 10K minimum and a cap of 0xff. Before this, these chips used the fixed MTPS_JUMBO from rtl8156_change_mtu(). rtl8156_up() now calls tp->rtl_ops.change_mtu(), so each chip uses its own helper.
> RTL8157 and RTL8159 used rtl8156_change_mtu(), which programs a fixed > MTPS_JUMBO. Per the datasheet they need an MTPS scaled from the > configured MTU instead: max_pkt_size / 64, at least 10K and capped > at 0xff.
[Severity: Low] This patch has two Fixes: tags, so it will likely be picked up for stable. Could the commit message say what actually goes wrong on RTL8157 and RTL8159 with the old fixed MTPS_JUMBO (12 * 1024 / 64 = 0xc0)? The only reason given is the datasheet. The message names no symptom and no affected MTU range. It also doesn't say whether the problem was seen on hardware or found by reading the datasheet. It may also be worth stating that this changes the value for normal MTUs, not only for jumbo frames. In rtl8157_change_mtu(), the default MTU of 1500 gives: max_pkt_size = mtu_to_size(1500) = 1500 + 18 + 4 = 1522 ocp_data = max_t(u32, 1522, 10 * 1024) / 64 = 0xa0 So at the default MTU, PLA_MTPS drops from 12K to 10K. The new value stays below the old 0xc0 until the MTU reaches roughly 12266. Above that it is larger than before, and it hits the 0xff cap for MTUs near max_mtu. Without the user-visible impact, a stable backporter can't easily tell two cases apart. Does the bug only affect frames above 12K? Or is lowering MTPS for standard MTUs also intended and safe to backport?
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40realtek.com