net/mlx5: fix flow creation on port start
authorShahaf Shuler <shahafs@mellanox.com>
Mon, 6 Nov 2017 14:00:25 +0000 (16:00 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Nov 2017 09:19:02 +0000 (10:19 +0100)
commit31b3e2b837013f764225a6f301d00f9704594f4f
tree2faf997a55475b5d608b96398e93409172d298d9
parentd296d7d00501d5153fc0b04c6d33ceffb424a81a
net/mlx5: fix flow creation on port start

While the PMD avoids from creating hash RXQ with no hash fields and
array of queues after the port was already started, it lacks such
protection when re-creating the flows after the port restarts.

This may lead to inconsistent behavior for flows depending if they were
created before or after the port start.

Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow")

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_rxq.c