net/mlx4_en: Avoid adding steering rules with invalid ring
authorTalat Batheesh <talatb@mellanox.com>
Tue, 9 May 2017 11:45:23 +0000 (14:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 May 2017 15:22:46 +0000 (11:22 -0400)
commit89c557687a32c294e9d25670a96e9287c09f2d5f
treee7f6943dc6504f915e8066caaa15fc129e1c7a27
parent505a9249c23988768983aaa0766ce54e0dbe037d
net/mlx4_en: Avoid adding steering rules with invalid ring

Inserting steering rules with illegal ring is an invalid operation,
block it.

Fixes: 820672812f82 ('net/mlx4_en: Manage flow steering rules with ethtool')
Signed-off-by: Talat Batheesh <talatb@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c