DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes
@ 2021-03-19  9:46 Igor Russkikh
  2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 1/2] qede: reduce trace verbosity level Igor Russkikh
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Igor Russkikh @ 2021-03-19  9:46 UTC (permalink / raw)
  To: dev; +Cc: Rasesh Mody, Devendra Singh Rawat, Igor Russkikh

Two small fixes after customer feedback.

v2: improved abit log message

Igor Russkikh (2):
  qede: reduce trace verbosity level
  qede: make driver accept bigger rss tables

 drivers/net/qede/base/ecore_int.c | 2 +-
 drivers/net/qede/qede_ethdev.c    | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [dpdk-dev] [PATCH v2 1/2] qede: reduce trace verbosity level
  2021-03-19  9:46 [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Igor Russkikh
@ 2021-03-19  9:46 ` Igor Russkikh
  2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 2/2] qede: make driver accept bigger rss tables Igor Russkikh
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Igor Russkikh @ 2021-03-19  9:46 UTC (permalink / raw)
  To: dev; +Cc: Rasesh Mody, Devendra Singh Rawat, Igor Russkikh, stable

On some hardware units it was found this trace is flooding the output,
making any dpdk interactive usage kind of problematic.

It is only informational, without any consequences handling, so reducing
it to verbose from explicit notice level.

CC: stable@dpdk.org
Acked-by: Devendra Singh Rawat <dsinghrawat@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
---
 drivers/net/qede/base/ecore_int.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/qede/base/ecore_int.c b/drivers/net/qede/base/ecore_int.c
index 4207b1853..2c4aac941 100644
--- a/drivers/net/qede/base/ecore_int.c
+++ b/drivers/net/qede/base/ecore_int.c
@@ -928,7 +928,7 @@ static void ecore_int_attn_print(struct ecore_hwfn *p_hwfn,
 				 bool b_clear)
 {
 	/* @DPDK */
-	DP_NOTICE(p_hwfn->p_dev, false, "[block_id %d type %d]\n", id, type);
+	DP_VERBOSE(p_hwfn, ECORE_MSG_INTR, "[block_id %d type %d]\n", id, type);
 }
 
 /**
-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [dpdk-dev] [PATCH v2 2/2] qede: make driver accept bigger rss tables
  2021-03-19  9:46 [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Igor Russkikh
  2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 1/2] qede: reduce trace verbosity level Igor Russkikh
@ 2021-03-19  9:46 ` Igor Russkikh
  2021-03-20 13:14   ` Jerin Jacob
  2021-03-21 10:32 ` [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Rasesh Mody
  2021-03-22  5:26 ` Devendra Singh Rawat
  3 siblings, 1 reply; 8+ messages in thread
From: Igor Russkikh @ 2021-03-19  9:46 UTC (permalink / raw)
  To: dev; +Cc: Rasesh Mody, Devendra Singh Rawat, Igor Russkikh, stable

We found some dpdk applications blindly pass fixed side rss hash tables,
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
tables we just crop it with notice trace message.

CC: stable@dpdk.org
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
---
 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH v2 2/2] qede: make driver accept bigger rss tables
  2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 2/2] qede: make driver accept bigger rss tables Igor Russkikh
@ 2021-03-20 13:14   ` Jerin Jacob
  0 siblings, 0 replies; 8+ messages in thread
From: Jerin Jacob @ 2021-03-20 13:14 UTC (permalink / raw)
  To: Igor Russkikh; +Cc: dpdk-dev, Rasesh Mody, Devendra Singh Rawat, dpdk stable

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
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes
  2021-03-19  9:46 [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Igor Russkikh
  2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 1/2] qede: reduce trace verbosity level Igor Russkikh
  2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 2/2] qede: make driver accept bigger rss tables Igor Russkikh
@ 2021-03-21 10:32 ` Rasesh Mody
  2021-03-22  5:26 ` Devendra Singh Rawat
  3 siblings, 0 replies; 8+ messages in thread
From: Rasesh Mody @ 2021-03-21 10:32 UTC (permalink / raw)
  To: Igor Russkikh, dev, Jerin Jacob; +Cc: Devendra Singh Rawat, Igor Russkikh

> From: Igor Russkikh <irusskikh@marvell.com>
> Sent: Friday, March 19, 2021 3:17 PM
> 
> Two small fixes after customer feedback.
> 
> v2: improved abit log message
> 
> Igor Russkikh (2):
>   qede: reduce trace verbosity level
>   qede: make driver accept bigger rss tables
> 
>  drivers/net/qede/base/ecore_int.c | 2 +-
>  drivers/net/qede/qede_ethdev.c    | 6 ++++--
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> --
> 2.25.1

For the series,

Acked-by: Rasesh Mody <rmody@marvell.com>
 
Thanks,
Rasesh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes
  2021-03-19  9:46 [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Igor Russkikh
                   ` (2 preceding siblings ...)
  2021-03-21 10:32 ` [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Rasesh Mody
@ 2021-03-22  5:26 ` Devendra Singh Rawat
  2021-03-22 14:54   ` Jerin Jacob
  3 siblings, 1 reply; 8+ messages in thread
From: Devendra Singh Rawat @ 2021-03-22  5:26 UTC (permalink / raw)
  To: Igor Russkikh, dev; +Cc: Rasesh Mody, Igor Russkikh



> -----Original Message-----
> From: Igor Russkikh <irusskikh@marvell.com>
> Sent: Friday, March 19, 2021 3:17 PM
> To: dev@dpdk.org
> Cc: Rasesh Mody <rmody@marvell.com>; Devendra Singh Rawat
> <dsinghrawat@marvell.com>; Igor Russkikh <irusskikh@marvell.com>
> Subject: [PATCH v2 0/2] qede: 2020-02 minor fixes
> 
> Two small fixes after customer feedback.
> 
> v2: improved abit log message
> 
> Igor Russkikh (2):
>   qede: reduce trace verbosity level
>   qede: make driver accept bigger rss tables
> 
>  drivers/net/qede/base/ecore_int.c | 2 +-
>  drivers/net/qede/qede_ethdev.c    | 6 ++++--
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> --
> 2.25.1

Patch Series ACKed,
Acked-by: Devendra Singh Rawat <dsinghrawat@marvell.com>

Thanks,
Devendra

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes
  2021-03-22  5:26 ` Devendra Singh Rawat
@ 2021-03-22 14:54   ` Jerin Jacob
  2021-03-22 15:48     ` [dpdk-dev] [EXT] " Igor Russkikh
  0 siblings, 1 reply; 8+ messages in thread
From: Jerin Jacob @ 2021-03-22 14:54 UTC (permalink / raw)
  To: Devendra Singh Rawat, Ferruh Yigit; +Cc: Igor Russkikh, dev, Rasesh Mody

On Mon, Mar 22, 2021 at 10:56 AM Devendra Singh Rawat
<dsinghrawat@marvell.com> wrote:
>
>
>
> > -----Original Message-----
> > From: Igor Russkikh <irusskikh@marvell.com>
> > Sent: Friday, March 19, 2021 3:17 PM
> > To: dev@dpdk.org
> > Cc: Rasesh Mody <rmody@marvell.com>; Devendra Singh Rawat
> > <dsinghrawat@marvell.com>; Igor Russkikh <irusskikh@marvell.com>
> > Subject: [PATCH v2 0/2] qede: 2020-02 minor fixes
> >
> > Two small fixes after customer feedback.
> >
> > v2: improved abit log message
> >
> > Igor Russkikh (2):
> >   qede: reduce trace verbosity level
> >   qede: make driver accept bigger rss tables
> >
> >  drivers/net/qede/base/ecore_int.c | 2 +-
> >  drivers/net/qede/qede_ethdev.c    | 6 ++++--
> >  2 files changed, 5 insertions(+), 3 deletions(-)
> >
> > --
> > 2.25.1
>
> Patch Series ACKed,
> Acked-by: Devendra Singh Rawat <dsinghrawat@marvell.com>

Fixed the check-git-log.sh issues and Applied to
dpdk-next-net-mrvl/for-main. Thanks


>
> Thanks,
> Devendra

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [dpdk-dev] [EXT] Re:  [PATCH v2 0/2] qede: 2020-02 minor fixes
  2021-03-22 14:54   ` Jerin Jacob
@ 2021-03-22 15:48     ` Igor Russkikh
  0 siblings, 0 replies; 8+ messages in thread
From: Igor Russkikh @ 2021-03-22 15:48 UTC (permalink / raw)
  To: Jerin Jacob, Devendra Singh Rawat, Ferruh Yigit; +Cc: dev, Rasesh Mody



>> Patch Series ACKed,
>> Acked-by: Devendra Singh Rawat <dsinghrawat@marvell.com>
> 
> Fixed the check-git-log.sh issues and Applied to
> dpdk-next-net-mrvl/for-main. Thanks

Thanks, Jerin, for taking care of that!

Igor

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-22 15:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19  9:46 [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Igor Russkikh
2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 1/2] qede: reduce trace verbosity level Igor Russkikh
2021-03-19  9:46 ` [dpdk-dev] [PATCH v2 2/2] qede: make driver accept bigger rss tables Igor Russkikh
2021-03-20 13:14   ` Jerin Jacob
2021-03-21 10:32 ` [dpdk-dev] [PATCH v2 0/2] qede: 2020-02 minor fixes Rasesh Mody
2021-03-22  5:26 ` Devendra Singh Rawat
2021-03-22 14:54   ` Jerin Jacob
2021-03-22 15:48     ` [dpdk-dev] [EXT] " Igor Russkikh

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).