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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:47:53 +0000 (19:47 +0200)
commitae1b31453e6e59bc68f11ba6efb2effc3d3b6b1a
tree70094471fd42d4d36cd39ec6b70e845c7341b320
parent26c18cb8ca7231b51d1c96c02db650738438266d
net/mlx4_en: Avoid adding steering rules with invalid ring

[ Upstream commit 89c557687a32c294e9d25670a96e9287c09f2d5f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c