net/mlx5: fix RSS key configuration
authorShahaf Shuler <shahafs@mellanox.com>
Tue, 26 Dec 2017 07:40:41 +0000 (09:40 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit21e3a9747fd67f0581842d4070b4e34a4885cbbe
tree04ba1bd7d0f4a4139a7af699761637fc80203263
parent48642ec5cade871e7f46fdefa800bc02e7e7b6ba
net/mlx5: fix RSS key configuration

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: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_ethdev.c