[dpdk-dev] [PATCH v2] net/mlx5: fix threshold for mbuf replenishment in MPRQ

Raslan Darawsheh rasland at nvidia.com
Wed Jul 14 13:57:17 CEST 2021


Hi,

> -----Original Message-----
> From: Alexander Kozyrev <akozyrev at nvidia.com>
> Sent: Tuesday, July 13, 2021 6:21 PM
> To: dev at dpdk.org
> Cc: Raslan Darawsheh <rasland at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>;
> stable at dpdk.org
> Subject: [PATCH v2] net/mlx5: fix threshold for mbuf replenishment in MPRQ
> 
> The replenishment scheme for the vectorized MPRQ Rx burst aims
> to improve the cache locality by allocating new mbufs only when
> there are almost no mbufs left: one burst gap between allocated
> and consumed indexes.
> 
> This gap is not big enough to accommodate a corner case when we
> have a very aggressive CQE compression with multiple regular CQEs
> at the beginning and 64 zipped CQEs at the end.
> 
> Need to keep in mind this case and extend the replenishment
> threshold by MLX5_VPMD_RX_MAX_BURST (64) to avoid mbuf overflow.
> 
> Fixes: 5fc2e5c27d6 ("net/mlx5: fix mbuf overflow in vectorized MPRQ")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Alexander Kozyrev <akozyrev at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> ---
> 
> v2: increased the replenishment gap to MLX5_VPMD_RX_MAX_BURST
> v1:
> https://patchwork.dpdk.org/project/dpdk/patch/20210712142910.314572-1-
> akozyrev at nvidia.com/
> 
>  drivers/net/mlx5/mlx5_rxtx_vec.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list