From: Luca Boccassi <bluca@debian.org>
To: Hyong Youb Kim <hyonkim@cisco.com>, stable@dpdk.org
Cc: johndale@cisco.com
Subject: Re: [dpdk-stable] [PATCH 16.11] net/enic: do not overwrite admin Tx queue limit
Date: Fri, 03 Aug 2018 10:05:31 +0100 [thread overview]
Message-ID: <1533287131.20916.63.camel@debian.org> (raw)
In-Reply-To: <20180803043304.12175-1-hyonkim@cisco.com>
On Thu, 2018-08-02 at 21:33 -0700, Hyong Youb Kim wrote:
> [ backported from upstream commit
> 2a7e3d54659cd12d337ad816dcf202eec1af1367 ]
>
> Currently, enic_alloc_wq (via rte_eth_tx_queue_setup) may overwrite
> the admin limit with a lower value. This is wrong as seen in the
> following sequence.
>
> 1. UCS admin-set Tx queue limit (config.wq_desc_count) = 4096
> 2. Set up tx queue with 512 descriptors
> The admin limit (config.wq_desc_count) becomes 512.
> 3. Stop ports and now set up Tx queue with 1024 descriptors.
> This fails because 1024 is greater than the admin limit (512).
>
> Do not modify the admin limit, and when queried, report the current
> number of descriptors instead of the admin limit. The rx queue setup
> (enic_alloc_rq) does not this problem.
>
> Fixes: fefed3d1e62c ("enic: new driver")
>
> Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
> Reviewed-by: John Daley <johndale@cisco.com>
> ---
> drivers/net/enic/enic_main.c | 30 ++++++++++++++----------------
> 1 file changed, 14 insertions(+), 16 deletions(-)
Thanks, applied and pushed to dpdk-stable/16.11.
--
Kind regards,
Luca Boccassi
prev parent reply other threads:[~2018-08-03 9:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 4:33 Hyong Youb Kim
2018-08-03 9:05 ` Luca Boccassi [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=1533287131.20916.63.camel@debian.org \
--to=bluca@debian.org \
--cc=hyonkim@cisco.com \
--cc=johndale@cisco.com \
--cc=stable@dpdk.org \
/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).