]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:27:06 +0000 (10:27 +0100)
commit08bd257f65a711416d3e598986f438597defb61a
tree0acf944a4914d3a68c816f7f134d80f319b1b901
parent3c5db53b2de80437296d88cb1860c0acdc37ba73
net/mlx5e: Don't try to modify CQ moderation if it is not supported

BugLink: http://bugs.launchpad.net/bugs/1557950
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>
(cherry picked from linux-next commit 7524a5d88b94afef8397a79f1e664af5b7052c22)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c