From: NĂ©lio Laranjeiro Date: Fri, 14 Oct 2016 07:30:14 +0000 (+0200) Subject: net/mlx5: fix hash key size retrieval X-Git-Tag: spdx-start~5481 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5ddbf77ef5092490a793d1b7e334489a5bfd20e7;p=dpdk.git net/mlx5: fix hash key size retrieval Return RSS key size in struct rte_eth_dev_info. Fixes: 0f6f219e7919 ("app/testpmd: fix RSS hash key size") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c index c76e754b04..592d5c10e1 100644 --- a/drivers/net/mlx5/mlx5_ethdev.c +++ b/drivers/net/mlx5/mlx5_ethdev.c @@ -600,6 +600,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 |