summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mscc/ocelot.c
diff options
context:
space:
mode:
authorKurt Kanzenbach <kurt@linutronix.de>2022-04-15 12:33:20 +0200
committerPaolo Abeni <pabeni@redhat.com>2022-04-19 09:49:38 +0200
commit0763120b090418a5257402754e22a34227ae5f12 (patch)
tree3f7a7c8fbcfa3c41cd365afc6cdc56cc108be3fb /drivers/net/ethernet/mscc/ocelot.c
parentcbe6c3a8f8f4315b96e46e1a1c70393c06d95a4c (diff)
net: dsa: hellcreek: Calculate checksums in tagger
In case the checksum calculation is offloaded to the DSA master network interface, it will include the switch trailing tag. As soon as the switch strips that tag on egress, the calculated checksum is wrong. Therefore, add the checksum calculation to the tagger (if required) before adding the switch tag. This way, the hellcreek code works with all DSA master interfaces regardless of their declared feature set. Fixes: 01ef09caad66 ("net: dsa: Add tag handling for Hirschmann Hellcreek switches") Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20220415103320.90657-1-kurt@linutronix.de Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot.c')
0 files changed, 0 insertions, 0 deletions