net/mlx5: fix flow rule creation if ports are stopped
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Tue, 31 Jan 2017 16:02:48 +0000 (17:02 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:48 +0000 (12:25 +0100)
commit05d7777b6fd49fd14cf302d0953057b345d4f8b7
tree8098978080a713207d3d64b4f45d815dc66ebe07
parent6194f53bb3c5d3953cdf24a15a02598212b04dd6
net/mlx5: fix flow rule creation if ports are stopped

Adding a flow when the port is stopped ends in an inconsistent situation
where the queue can receive traffic when it should not.
Record new rules and apply them as soon as the port is started.

Fixes: 2097d0d1e2cc ("net/mlx5: support basic flow items and actions")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_flow.c