]> git.hungrycats.org Git - linux/commit
net: vertexcom: mse102x: Fix tx_bytes calculation
authorStefan Wahren <wahrenst@gmx.net>
Fri, 8 Nov 2024 11:43:43 +0000 (12:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Nov 2024 21:41:17 +0000 (13:41 -0800)
commite68da664d379f352d41d7955712c44e0a738e4ab
treecb96242d0108bee569b746b9879f585f92c8af7c
parenteb72e7fcc83987d5d5595b43222f23b295d5de7f
net: vertexcom: mse102x: Fix tx_bytes calculation

The tx_bytes should consider the actual size of the Ethernet frames
without the SPI encapsulation. But we still need to take care of
Ethernet padding.

Fixes: 2f207cbf0dd4 ("net: vertexcom: Add MSE102x SPI support")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://patch.msgid.link/20241108114343.6174-3-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/vertexcom/mse102x.c