[PATCH] event/eth_tx: prefetch mbuf headers
Stephen Hemminger
stephen at networkplumber.org
Thu Jul 10 17:37:47 CEST 2025
On Fri, 28 Mar 2025 06:43:39 +0100
Mattias Rönnblom <mattias.ronnblom at ericsson.com> wrote:
> Prefetch mbuf headers, resulting in ~10% throughput improvement when
> the Ethernet RX and TX Adapters are hosted on the same core (likely
> ~2x in case a dedicated TX core is used).
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
> Tested-by: Peter Nilsson <peter.j.nilsson at ericsson.com>
Prefetching all the mbufs can be counter productive on a big burst.
VPP does something similar but more unrolled.
See https://fd.io/docs/vpp/v2101/gettingstarted/developers/vnet.html#single-dual-loops
More information about the dev
mailing list