net/mlx5: fix RSS key length query
authorShahaf Shuler <shahafs@mellanox.com>
Mon, 26 Mar 2018 10:12:19 +0000 (13:12 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commite7041f5529d129eef57d6ac9405a510b1df69ae4
treee3c8f2e38506730bad9d4ae12f56b060d7d16738
parenta1572312f713f0b218063c6213499e36a8b47c86
net/mlx5: fix RSS key length query

The RSS key length returned by rte_eth_dev_info_get command was taken
from the
PMD private structure. This structure initialization was done only after
the port configuration.

Considering Mellanox device supports only 40B long RSS key, reporting
the fixed number instead.

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: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_ethdev.c