diff options
author | Wei Fang <wei.fang@nxp.com> | 2024-12-19 13:47:54 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-23 09:54:33 -0800 |
commit | 69797ff888d3dbab035a0d2516b554285b094e3c (patch) | |
tree | 913310fa7247a3df742c5655dbfcd68428283ac9 /tools/testing/selftests/net/lib/py/utils.py | |
parent | 93c5d5a0ddf8ad39661a087edb45286a0a55f7e6 (diff) | |
download | linux-69797ff888d3dbab035a0d2516b554285b094e3c.tar.gz linux-69797ff888d3dbab035a0d2516b554285b094e3c.tar.bz2 linux-69797ff888d3dbab035a0d2516b554285b094e3c.zip |
net: enetc: add LSO support for i.MX95 ENETC PF
ENETC rev 4.1 supports large send offload (LSO), segmenting large TCP
and UDP transmit units into multiple Ethernet frames. To support LSO,
software needs to fill some auxiliary information in Tx BD, such as LSO
header length, frame length, LSO maximum segment size, etc.
At 1Gbps link rate, TCP segmentation was tested using iperf3, and the
CPU performance before and after applying the patch was compared through
the top command. It can be seen that LSO saves a significant amount of
CPU cycles compared to software TSO.
Before applying the patch:
%Cpu(s): 0.1 us, 4.1 sy, 0.0 ni, 85.7 id, 0.0 wa, 0.5 hi, 9.7 si
After applying the patch:
%Cpu(s): 0.1 us, 2.3 sy, 0.0 ni, 94.5 id, 0.0 wa, 0.4 hi, 2.6 si
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://patch.msgid.link/20241219054755.1615626-4-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions