From: Jerin Jacob <jerinjacobk@gmail.com>
To: Igor Russkikh <irusskikh@marvell.com>
Cc: dpdk-dev <dev@dpdk.org>, Rasesh Mody <rmody@marvell.com>,
Devendra Singh Rawat <dsinghrawat@marvell.com>,
dpdk stable <stable@dpdk.org>
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2 2/2] qede: make driver accept bigger rss tables
Date: Sat, 20 Mar 2021 18:44:53 +0530 [thread overview]
Message-ID: <CALBAE1ME-wn=iOz2dc3UW_vpMbPYAQdz6=QJCfGpL7epORsecw@mail.gmail.com> (raw)
In-Reply-To: <20210319094656.5576-3-irusskikh@marvell.com>
On Fri, Mar 19, 2021 at 3:17 PM Igor Russkikh <irusskikh@marvell.com> wrote:
>
> We found some dpdk applications blindly pass fixed side rss hash tables,
Could you rewrite the git commit by removing "We".
> and do not check driver/device capabilities.
>
> Moreover, many other drivers do not do such a strong check as well.
>
> So here we fix it, making qede accept any size rss_key. For larger key
Could you rewrite the git commit by removing "we".
> tables we just crop it with notice trace message.
>
> CC: stable@dpdk.org
> Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Waiting for Ack to merge this.
> ---
> drivers/net/qede/qede_ethdev.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
> index ab5f5b106..bfd38a977 100644
> --- a/drivers/net/qede/qede_ethdev.c
> +++ b/drivers/net/qede/qede_ethdev.c
> @@ -2139,8 +2139,10 @@ int qede_rss_hash_update(struct rte_eth_dev *eth_dev,
> /* RSS hash key */
> if (key) {
> if (len > (ECORE_RSS_KEY_SIZE * sizeof(uint32_t))) {
> - DP_ERR(edev, "RSS key length exceeds limit\n");
> - return -EINVAL;
> + len = ECORE_RSS_KEY_SIZE * sizeof(uint32_t);
> + DP_NOTICE(edev, false,
> + "RSS key length too big, trimmed to %d\n",
> + len);
> }
> DP_INFO(edev, "Applying user supplied hash key\n");
> rss_params.update_rss_key = 1;
> --
> 2.25.1
>
prev parent reply other threads:[~2021-03-20 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210319094656.5576-1-irusskikh@marvell.com>
2021-03-19 9:46 ` [dpdk-stable] [PATCH v2 1/2] qede: reduce trace verbosity level Igor Russkikh
2021-03-19 9:46 ` [dpdk-stable] [PATCH v2 2/2] qede: make driver accept bigger rss tables Igor Russkikh
2021-03-20 13:14 ` Jerin Jacob [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='CALBAE1ME-wn=iOz2dc3UW_vpMbPYAQdz6=QJCfGpL7epORsecw@mail.gmail.com' \
--to=jerinjacobk@gmail.com \
--cc=dev@dpdk.org \
--cc=dsinghrawat@marvell.com \
--cc=irusskikh@marvell.com \
--cc=rmody@marvell.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).