net/mlx5: fix RSS flow rule with non existing queues
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Mon, 3 Apr 2017 11:25:15 +0000 (13:25 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:03 +0000 (19:03 +0200)
commit246855f9ad1fbe1db4097dd3a8421250040a2be8
tree1f93c990bdad3b9bc9655f2da91bfba3ced0fa5a
parente02fae15578365e90cf68a3f5a95ff7e0d358e5e
net/mlx5: fix RSS flow rule with non existing queues

RSS flow rule validation accepts any queue even non existing ones which
causes a segmentation fault at creation time.

Fixes: 3d821d6fea40 ("net/mlx5: support RSS action flow rule")

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