All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: fix hash key size retrieval
@ 2016-10-14  7:30 Nelio Laranjeiro
  2016-10-14  8:20 ` Adrien Mazarguil
  0 siblings, 1 reply; 3+ messages in thread
From: Nelio Laranjeiro @ 2016-10-14  7:30 UTC (permalink / raw)
  To: dev; +Cc: Adrien Mazarguil

Return RSS key size in struct rte_eth_dev_info.

Fixes: 0f6f219e7919 ("app/testpmd: fix RSS hash key size")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
---
 drivers/net/mlx5/mlx5_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index c1c2d26..b8b3ea9 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -601,6 +601,9 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)
 	 * size if it is not fixed.
 	 * The API should be updated to solve this problem. */
 	info->reta_size = priv->ind_table_max_size;
+	info->hash_key_size = ((*priv->rss_conf) ?
+			       (*priv->rss_conf)[0]->rss_key_len :
+			       0);
 	info->speed_capa =
 			ETH_LINK_SPEED_1G |
 			ETH_LINK_SPEED_10G |
-- 
2.1.4

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

* Re: [PATCH] net/mlx5: fix hash key size retrieval
  2016-10-14  7:30 [PATCH] net/mlx5: fix hash key size retrieval Nelio Laranjeiro
@ 2016-10-14  8:20 ` Adrien Mazarguil
  2016-10-19  9:26   ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Adrien Mazarguil @ 2016-10-14  8:20 UTC (permalink / raw)
  To: Nelio Laranjeiro; +Cc: dev

On Fri, Oct 14, 2016 at 09:30:14AM +0200, Nelio Laranjeiro wrote:
> Return RSS key size in struct rte_eth_dev_info.
> 
> Fixes: 0f6f219e7919 ("app/testpmd: fix RSS hash key size")
> 
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>

Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>

> ---
>  drivers/net/mlx5/mlx5_ethdev.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
> index c1c2d26..b8b3ea9 100644
> --- a/drivers/net/mlx5/mlx5_ethdev.c
> +++ b/drivers/net/mlx5/mlx5_ethdev.c
> @@ -601,6 +601,9 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)
>  	 * size if it is not fixed.
>  	 * The API should be updated to solve this problem. */
>  	info->reta_size = priv->ind_table_max_size;
> +	info->hash_key_size = ((*priv->rss_conf) ?
> +			       (*priv->rss_conf)[0]->rss_key_len :
> +			       0);
>  	info->speed_capa =
>  			ETH_LINK_SPEED_1G |
>  			ETH_LINK_SPEED_10G |
> -- 
> 2.1.4
> 

-- 
Adrien Mazarguil
6WIND

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

* Re: [PATCH] net/mlx5: fix hash key size retrieval
  2016-10-14  8:20 ` Adrien Mazarguil
@ 2016-10-19  9:26   ` Bruce Richardson
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2016-10-19  9:26 UTC (permalink / raw)
  To: Adrien Mazarguil; +Cc: Nelio Laranjeiro, dev

On Fri, Oct 14, 2016 at 10:20:32AM +0200, Adrien Mazarguil wrote:
> On Fri, Oct 14, 2016 at 09:30:14AM +0200, Nelio Laranjeiro wrote:
> > Return RSS key size in struct rte_eth_dev_info.
> > 
> > Fixes: 0f6f219e7919 ("app/testpmd: fix RSS hash key size")
> > 
> > Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
> 
> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
> 
Applied to dpdk-next-net/rel_16_11

/Bruce

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

end of thread, other threads:[~2016-10-19  9:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-14  7:30 [PATCH] net/mlx5: fix hash key size retrieval Nelio Laranjeiro
2016-10-14  8:20 ` Adrien Mazarguil
2016-10-19  9:26   ` Bruce Richardson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.