net/mlx5e: Don't try to modify CQ moderation if it is not supported
authorGal Pressman <galp@mellanox.com>
Tue, 1 Mar 2016 22:13:37 +0000 (00:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:27:45 +0000 (08:27 +0200)
commit3b763fc8f05e755a0c1baa1ba6c2daaf87fa5ac5
tree9b5a7ee79d4616fe1bc0d3d170e4fc8e2dfc2559
parent4ab4d8c00baf7f8fd0859599e3e72bb68d7daf42
net/mlx5e: Don't try to modify CQ moderation if it is not supported

[ Upstream commit 7524a5d88b94afef8397a79f1e664af5b7052c22 ]

If CQ moderation is not supported by the device, print a warning on
netdevice load, and return error when trying to modify/query cq
moderation via ethtool.

Fixes: f62b8bb8f2d3 ('net/mlx5: Extend mlx5_core to support ConnectX-4
Ethernet functionality')
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c