DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/mlx5: fix RSS key configuration
@ 2017-12-26  7:40 Shahaf Shuler
  2017-12-27  6:13 ` [dpdk-dev] [dpdk-stable] " Shahaf Shuler
  0 siblings, 1 reply; 2+ messages in thread
From: Shahaf Shuler @ 2017-12-26  7:40 UTC (permalink / raw)
  To: nelio.laranjeiro, yskoh, adrien.mazarguil; +Cc: dev, stable

The trigger for PMD to use the application RSS configuration should be
based on the validity of rss_key and not the rss_key_len. Otherwise
segmentation fault can occur if application provide valid RSS key length
but without any RSS key.

Fixes: 29c1d8bb3e79 ("net/mlx5: handle a single RSS hash key for all protocols")
Cc: nelio.laranjeiro@6wind.com
Cc: stable@dpdk.org

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
---
 drivers/net/mlx5/mlx5_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index ca9ad0fef..282ef241e 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -550,7 +550,7 @@ dev_configure(struct rte_eth_dev *dev)
 	unsigned int j;
 	unsigned int reta_idx_n;
 	const uint8_t use_app_rss_key =
-		!!dev->data->dev_conf.rx_adv_conf.rss_conf.rss_key_len;
+		!!dev->data->dev_conf.rx_adv_conf.rss_conf.rss_key;
 
 	if (use_app_rss_key &&
 	    (dev->data->dev_conf.rx_adv_conf.rss_conf.rss_key_len !=
-- 
2.12.0

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

* Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix RSS key configuration
  2017-12-26  7:40 [dpdk-dev] [PATCH] net/mlx5: fix RSS key configuration Shahaf Shuler
@ 2017-12-27  6:13 ` Shahaf Shuler
  0 siblings, 0 replies; 2+ messages in thread
From: Shahaf Shuler @ 2017-12-27  6:13 UTC (permalink / raw)
  To: Shahaf Shuler, Nélio Laranjeiro, Yongseok Koh, Adrien Mazarguil
  Cc: dev, stable

Tuesday, December 26, 2017 9:41 AM, Shahaf Shuler:
> The trigger for PMD to use the application RSS configuration should be based
> on the validity of rss_key and not the rss_key_len. Otherwise segmentation
> fault can occur if application provide valid RSS key length but without any RSS
> key.
> 
> Fixes: 29c1d8bb3e79 ("net/mlx5: handle a single RSS hash key for all
> protocols")
> Cc: nelio.laranjeiro@6wind.com
> Cc: stable@dpdk.org
> 
> Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
> Acked-by: Yongseok Koh <yskoh@mellanox.com>

Applied to next-net-mlx, thanks. 

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

end of thread, other threads:[~2017-12-27  6:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-26  7:40 [dpdk-dev] [PATCH] net/mlx5: fix RSS key configuration Shahaf Shuler
2017-12-27  6:13 ` [dpdk-dev] [dpdk-stable] " Shahaf Shuler

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