[PATCH v2 3/3] net/af_packet: support jumbo frames
Stephen Hemminger
stephen at networkplumber.org
Wed Mar 11 00:31:58 CET 2026
On Mon, 9 Mar 2026 17:10:21 +0100
Xavier Guillaume <xavier.guillaume at ovhcloud.com> wrote:
> Derive max_rx_pktlen and max_mtu from the actual TPACKET ring
> frame size rather than the static RTE_ETHER_MAX_LEN (1518).
> This allows jumbo frame support when the user specifies a
> larger framesz devarg at vdev creation time, for example:
>
> --vdev=net_af_packet0,iface=eth0,framesz=9216
>
> The advertised capabilities now accurately reflect what the
> configured ring can handle, avoiding both false limitations
> with large frames and false promises with small ones.
>
> Signed-off-by: Xavier Guillaume <xavier.guillaume at ovhcloud.com>
I wonder if TPACKET header could go in mbuf headroom.
And also, could the copy on receive be avoided?
More information about the dev
mailing list