aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/broadcom/tg3.c
diff options
context:
space:
mode:
authorCasper Andersson <casper.casan@gmail.com>2022-08-25 10:49:55 +0200
committerJakub Kicinski <kuba@kernel.org>2022-08-26 17:25:28 -0700
commit7498a457ecf7ff2c4d379360aa8f24566bb1543e (patch)
tree87ce3e2484df99fb3e1f6705aef94423d5e61135 /drivers/net/ethernet/broadcom/tg3.c
parentMerge tag 'for-net-2022-08-25' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth (diff)
downloadwireguard-linux-7498a457ecf7ff2c4d379360aa8f24566bb1543e.tar.xz
wireguard-linux-7498a457ecf7ff2c4d379360aa8f24566bb1543e.zip
net: sparx5: fix handling uneven length packets in manual extraction
Packets that are not of length divisible by 4 (e.g. 77, 78, 79) would have the checksum included up to next multiple of 4 (a 77 bytes packet would have 3 bytes of ethernet checksum included). The check for the value expects it in host (Little) endian. Fixes: f3cad2611a77 ("net: sparx5: add hostmode with phylink support") Signed-off-by: Casper Andersson <casper.casan@gmail.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Link: https://lore.kernel.org/r/20220825084955.684637-1-casper.casan@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions