diff options
| author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2026-09-17 23:53:38 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-22 18:51:17 -0700 |
| commit | c4ac6e94eb9423126bda907a7f2933284f7450ff (patch) | |
| tree | adcf59e32d15ba4c55236d78fbbf2a182d655fb4 /tools/lib/python/kdoc/python_version.py | |
| parent | b8a26d46c0a4254f8bfe143681adb9d18d020299 (diff) | |
| download | linux-next-c4ac6e94eb9423126bda907a7f2933284f7450ff.tar.gz linux-next-c4ac6e94eb9423126bda907a7f2933284f7450ff.zip | |
net: stmmac: selftests: Account for alignment shift on dwmac1000 for Jumbo test
On dwmac1000, we currently only support single-descriptor frames. The
Jumbo test started failing when NET_IP_ALIGN was added to align the IP
header, as this tests tries to send the biggest possible frame.
On dwmac1000 the DMA transfer is aligned on 4-bytes, so adding a 2-byte
shift at the start-of-buffer address means it takes a whole extra 4-byte
DMA burst to receive the Jumbo packet, causing it to spill over the next
descriptor.
This doesn't seem to happen on dwmac4 and xgmac that appear to correctly
handle unaligned xfers (only tested on dwmac4)
Let's account for that in the Jumbo test, reduce the size of our big
packet by the align size.
Fixes: 23680bf5f8c6 ("net: stmmac: restore NET_IP_ALIGN in the RX DMA offset")
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20260917215339.2022523-8-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
