DPDK patches and discussions
 help / color / mirror / Atom feed
From: Raslan Darawsheh <rasland@nvidia.com>
To: Alexander Kozyrev <akozyrev@nvidia.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: Matan Azrad <matan@nvidia.com>,
	Slava Ovsiienko <viacheslavo@nvidia.com>,
	 "stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: fix threshold for mbuf replenishment in MPRQ
Date: Wed, 14 Jul 2021 11:57:17 +0000	[thread overview]
Message-ID: <DM4PR12MB5054C948D858CE96B3E20F02CF139@DM4PR12MB5054.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20210713152112.393741-1-akozyrev@nvidia.com>

Hi,

> -----Original Message-----
> From: Alexander Kozyrev <akozyrev@nvidia.com>
> Sent: Tuesday, July 13, 2021 6:21 PM
> To: dev@dpdk.org
> Cc: Raslan Darawsheh <rasland@nvidia.com>; Matan Azrad
> <matan@nvidia.com>; Slava Ovsiienko <viacheslavo@nvidia.com>;
> stable@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@dpdk.org
> 
> Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@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@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

      reply	other threads:[~2021-07-14 11:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-12 14:29 [dpdk-dev] [PATCH] " Alexander Kozyrev
2021-07-13 15:21 ` [dpdk-dev] [PATCH v2] " Alexander Kozyrev
2021-07-14 11:57   ` Raslan Darawsheh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM4PR12MB5054C948D858CE96B3E20F02CF139@DM4PR12MB5054.namprd12.prod.outlook.com \
    --to=rasland@nvidia.com \
    --cc=akozyrev@nvidia.com \
    --cc=dev@dpdk.org \
    --cc=matan@nvidia.com \
    --cc=stable@dpdk.org \
    --cc=viacheslavo@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).