]> git.droids-corp.org - dpdk.git/commit
net/mlx5: relax headroom assertion
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Tue, 28 Dec 2021 09:20:43 +0000 (11:20 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 9 Jan 2022 12:06:38 +0000 (13:06 +0100)
commit637582afcc886fc53c1dc7a3686cc771abad2cfd
treeacc10e202b1045d6d1cc66861acc403c8b35a15e
parentbe8cda4932eb256caaca90090fe0c6d9c756f852
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: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c