aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vfs.py
diff options
context:
space:
mode:
authorRomain Gantois <[email protected]>2024-01-16 13:19:17 +0100
committerDavid S. Miller <[email protected]>2024-01-17 10:03:29 +0000
commitc2945c435c999c63e47f337bc7c13c98c21d0bcc (patch)
treec7089bd0e89bd9d9662c01124b8525eca3e1077b /scripts/gdb/linux/vfs.py
parente9ce7ededf14af3396312f02d1622f4889d676ca (diff)
net: stmmac: Prevent DSA tags from breaking COE
Some DSA tagging protocols change the EtherType field in the MAC header e.g. DSA_TAG_PROTO_(DSA/EDSA/BRCM/MTK/RTL4C_A/SJA1105). On TX these tagged frames are ignored by the checksum offload engine and IP header checker of some stmmac cores. On RX, the stmmac driver wrongly assumes that checksums have been computed for these tagged packets, and sets CHECKSUM_UNNECESSARY. Add an additional check in the stmmac TX and RX hotpaths so that COE is deactivated for packets with ethertypes that will not trigger the COE and IP header checks. Fixes: 6b2c6e4a938f ("net: stmmac: propagate feature flags to vlan") Cc: <[email protected]> Reported-by: Richard Tresidder <[email protected]> Link: https://lore.kernel.org/netdev/[email protected]/ Reported-by: Romain Gantois <[email protected]> Link: https://lore.kernel.org/netdev/[email protected]/ Reviewed-by: Vladimir Oltean <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Romain Gantois <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vfs.py')
0 files changed, 0 insertions, 0 deletions