diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2021-07-22 00:56:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-22 09:14:49 +0300 |
commit | 37120f23ac8998c250573ea3247ff77426551f69 (patch) | |
tree | bd298fea6a13fb1ab90d715038de3f3aa728247b /scripts/clang-tools/gen_compile_commands.py | |
parent | 21cf377a9c40658777ecbd6242be449a19a84e44 (diff) | |
download | linux-37120f23ac8998c250573ea3247ff77426551f69.tar.xz |
net: dsa: tag_ksz: dont let the hardware process the layer 4 checksum
If the checksum calculation is offloaded to the network device (e.g due to
NETIF_F_HW_CSUM inherited from the DSA master device), the calculated
layer 4 checksum is incorrect. This is since the DSA tag which is placed
after the layer 4 data is considered as being part of the daa and thus
errorneously included into the checksum calculation.
To avoid this, always calculate the layer 4 checksum in software.
Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions