summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2018-03-26 13:12:19 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2018-03-30 14:08:44 +0200
commite7041f5529d129eef57d6ac9405a510b1df69ae4 (patch)
treee3c8f2e38506730bad9d4ae12f56b060d7d16738
parenta1572312f713f0b218063c6213499e36a8b47c86 (diff)
downloaddpdk-e7041f5529d129eef57d6ac9405a510b1df69ae4.zip
dpdk-e7041f5529d129eef57d6ac9405a510b1df69ae4.tar.gz
dpdk-e7041f5529d129eef57d6ac9405a510b1df69ae4.tar.xz
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>
-rw-r--r--drivers/net/mlx5/mlx5_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index 365101a..b6f5101 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -428,7 +428,7 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)
info->if_index = if_nametoindex(ifname);
info->reta_size = priv->reta_idx_n ?
priv->reta_idx_n : config->ind_table_max_size;
- info->hash_key_size = priv->rss_conf.rss_key_len;
+ info->hash_key_size = rss_hash_default_key_len;
info->speed_capa = priv->link_speed_capa;
info->flow_type_rss_offloads = ~MLX5_RSS_HF_MASK;
}