[PATCH] net/mlx5: relax headroom assertion
Raslan Darawsheh
rasland at nvidia.com
Thu Jan 13 09:59:41 CET 2022
Hi,
> -----Original Message-----
> From: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Sent: Tuesday, December 28, 2021 11:21 AM
> To: dev at dpdk.org
> Cc: Slava Ovsiienko <viacheslavo at nvidia.com>; stable at dpdk.org; Matan
> Azrad <matan at nvidia.com>
> Subject: [PATCH] net/mlx5: relax headroom assertion
>
> A debug assertion in Single-Packet Receive Queue (SPRQ) mode required all
> Rx mbufs to have a 128 byte headroom, based on the assumption that
> rte_pktmbuf_init() sets it.
> However, rte_pktmbuf_init() may set a smaller headroom if the dataroom is
> insufficient, e.g. this is a natural case for split buffer segments. The
> headroom can also be larger.
> Only check the headroom size when vectored Rx routines are used because
> they rely on it. Relax the assertion to require sufficient headroom size, not an
> exact one.
>
> Fixes: a0a45e8af723 ("net/mlx5: configure Rx queue for buffer split")
> Cc: viacheslavo at nvidia.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
Patch rebased and applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list