net/mlx5: fix RSS flow configuration crash
authorMoti Haimovsky <motih@mellanox.com>
Thu, 2 Aug 2018 08:41:07 +0000 (11:41 +0300)
committerShahaf Shuler <shahafs@mellanox.com>
Thu, 2 Aug 2018 11:22:35 +0000 (13:22 +0200)
commitdd6eaddff7ded951486929458877f43fc2873c5b
tree9aa6a56189644ac5e77c8268d01e12e5675eaf39
parent09e0fd260e2e414134154b6e0e955c8424b51c0a
net/mlx5: fix RSS flow configuration crash

This commit fixes a segmentation fault observed when configuring
mlx5 with RSS flow rule containing invalid queues indices such as
negative numbers, queue numbers bigger than the number Rx queues the
PMD or has no queues at all.

Fixes: 592f05b29a25 ("net/mlx5: add RSS flow action")

Signed-off-by: Moti Haimovsky <motih@mellanox.com>
drivers/net/mlx5/mlx5_flow.c