Re: [PATCH net v7 1/4] net: hsr: keep GRO disabled on HSR/PRP ports
From: Paolo Abeni
Date: Mon Nov 23 2026 - 07:27:49 EST
On 10/9/26 22:13, Xin Xie wrote:
HSR/PRP add tags and sequence numbers per wire frame. GRO can mergeI don't agree with the goal of this patch. The kernel allows a very large
plain interlink traffic before those fields are added, and userspace
can re-enable GRO after the port is attached.
Mark slave A/B and interlink devices with a kernel role bit. Filter
software GRO and configurable GRO_HW requests before ndo_fix_features()
without changing wanted_features. Filtering before the driver keeps
feature dependencies intact; fixed-on or driver-required GRO_HW is
left enabled.
Apply the policy before registering the RX handler and reject attach
if software GRO remains enabled. On failure or detach, unlink the
upper before clearing the role and recomputing features, restoring
the user's last request.
GSO skbs may still arrive. A later patch segments valid GSO before
HSR/PRP processing.
Fixes: 5055cccfc2d1 ("net: hsr: Provide RedBox support (HSR-SAN)")
Signed-off-by: Xin Xie <xiexinet@xxxxxxxxx>
number of bad configuration. Explicitly preventing one of them may
lead to regressions and leaves the lower device in an inconsistent
state.
Please drop this patch.
/P