net/mlx4: fix default RSS hash fields
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 26 Apr 2018 16:26:15 +0000 (18:26 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 2 May 2018 17:28:48 +0000 (19:28 +0200)
commit1d173da83ef2176b7ef107b76a4c5b80d47e1d00
tree76b65fc4661092475aab62ce565a755b85834995
parent84a684862f502f2d885bc5fa112da26265d5a0f4
net/mlx4: fix default RSS hash fields

Using special types value -1 with mlx4_conv_rss_types() is supposed to
return a supported set of Verbs RSS hash fields, that is, priv->hw_rss_sup
unmodified.

Due to the way this function is written and because it is also used to
initially populate priv->hw_rss_sup however, this special value works
properly only once and fails with ENOTSUP errors afterward.

This problem can be seen when re-creating default flows (e.g. by entering
and leaving isolated mode).

Fixes: 024e87bef40b ("net/mlx4: restore UDP RSS by probing capabilities")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4_flow.c