net/mlx5: block RSS action without Rx queue
authorDekel Peled <dekelp@mellanox.com>
Tue, 22 Jan 2019 08:22:24 +0000 (10:22 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 24 Jan 2019 13:53:10 +0000 (14:53 +0100)
commit15c80155874e6eef8e1023edab233d4bc6868ad9
tree6ebd79c5d6dfba76cafb0430e079221671762d3e
parentff160dbcba6274bfcb22bbb05155c80c011f996d
net/mlx5: block RSS action without Rx queue

This patch modifies function mlx5_flow_validate_action_rss(), to
prevent the setting of rule with rss action, but without specifying
any queues.
For example:
flow create 0 ingress pattern end actions rss queues end / end

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_flow.c