diff options
| author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2026-04-01 08:21:19 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-04-02 11:28:18 -0700 |
| commit | afe840ddf15c9960e4c4522c95dea459f4fa055b (patch) | |
| tree | c69c5d90a5cfd42b88ac884754ff8b7463662cc0 /tools/perf/scripts/python/bin | |
| parent | 989a9c20f63e378e0bb8b05bf82560d7da945de4 (diff) | |
net: stmmac: fix .ndo_fix_features()
netdev features documentation requires that .ndo_fix_features() is
stateless: it shouldn't modify driver state. Yet, stmmac_fix_features()
does exactly that, changing whether GSO frames are processed by the
driver.
Move this code to stmmac_set_features() instead, which is the correct
place for it. We don't need to check whether TSO is supported; this
is already handled via the setup of netdev->hw_features, and we are
guaranteed that if netdev->hw_features indicates that a feature is
not supported, .ndo_set_features() won't be called with it set.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1w7pt9-0000000East-1YAO@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
