[PATCH] net/af_packet: add explicit flush for Tx
Stephen Hemminger
stephen at networkplumber.org
Sun Oct 13 03:15:48 CEST 2024
On Thu, 15 Aug 2024 13:56:53 +0200
<vignesh.purushotham.srinivas at ericsson.com> wrote:
> From: Vignesh PS <vignesh.purushotham.srinivas at ericsson.com>
>
> af_packet PMD uses system calls to transmit packets. Separate the
> transmit function into two different calls so its possible to avoid
> syscalls during transmit.
>
> Signed-off-by: Vignesh PS <vignesh.purushotham.srinivas at ericsson.com>
The way to avoid syscalls is for the application to call tx_burst with
more than one packet. This patch makes the AF_PACKET PMD behave different
than other PMD's; that is a bad idea.
If this optimization is really necessary it should be setup and tuned
via existing eth_tx_conf like tx_threshold.
The wording of the description is awkward and not written in user focused
imperative language; also has spelling errors.
More information about the dev
mailing list