]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Nov 2024 14:37:28 +0000 (15:37 +0100)
commitcc673c7151ac5879f489b41a2d299b0fa173f336
treef12ce80d09a9cccdaa0bfaa25a4fa0ccf6e60410
parent4e87a52133284afbd40fb522dbf96e258af52a98
net: vertexcom: mse102x: Fix tx_bytes calculation

[ Upstream commit e68da664d379f352d41d7955712c44e0a738e4ab ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/vertexcom/mse102x.c