net/mlx4: fix queue index check on flow rules
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Tue, 31 Oct 2017 10:31:07 +0000 (11:31 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 1 Nov 2017 21:17:06 +0000 (22:17 +0100)
commite21bdfaa2c6737bc8173f0b273f53b602c79c2e7
treed3de2c98d7a09a1248705c0f025eb7cb80e0b74a
parenta9b3568e73c197a2e87223d62b666adbcefe6c1b
net/mlx4: fix queue index check on flow rules

Users are not prevented from creating flow rules targeting nonexistent
queues, which silently makes such rules drop-like.

While it can be thought as a feature, reporting an error instead is
actually far more useful in order to catch common mistakes.

Fixes: 078b8b452e6b ("net/mlx4: add RSS flow rule action support")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_flow.c