[dpdk-dev] net/mlx5: fix missing capability for RSS

Message ID 20180122205214.194935-1-shahafs@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Shahaf Shuler Jan. 22, 2018, 8:52 p.m. UTC
  The PMD was not reporting the supported RSS capabilities.

Fixes: 2f97422e7759 ("mlx5: support RSS hash update and get")
Cc: stable@dpdk.org

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

Comments

Yongseok Koh Jan. 22, 2018, 11:49 p.m. UTC | #1
> On Jan 22, 2018, at 12:52 PM, Shahaf Shuler <shahafs@mellanox.com> wrote:
> 
> The PMD was not reporting the supported RSS capabilities.
> 
> Fixes: 2f97422e7759 ("mlx5: support RSS hash update and get")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
> ---
Acked-by: Yongseok Koh <yskoh@mellanox.com>
 
Thanks
  
Shahaf Shuler Jan. 25, 2018, 3:45 p.m. UTC | #2
Tuesday, January 23, 2018 1:50 AM, Yongseok Koh:
> > On Jan 22, 2018, at 12:52 PM, Shahaf Shuler <shahafs@mellanox.com>
> wrote:
> >
> > The PMD was not reporting the supported RSS capabilities.
> >
> > Fixes: 2f97422e7759 ("mlx5: support RSS hash update and get")
> > 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.

> 
> Thanks
  

Patch

diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
index 6624888c9..c886aefea 100644
--- a/drivers/net/mlx5/mlx5_ethdev.c
+++ b/drivers/net/mlx5/mlx5_ethdev.c
@@ -692,6 +692,7 @@  mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info)
 		priv->reta_idx_n : config->ind_table_max_size;
 	info->hash_key_size = priv->rss_conf.rss_key_len;
 	info->speed_capa = priv->link_speed_capa;
+	info->flow_type_rss_offloads = ~MLX5_RSS_HF_MASK;
 	priv_unlock(priv);
 }