net/mlx5e: Don't allow more than max supported channels
authorAchiad Shochat <achiad@mellanox.com>
Tue, 3 Nov 2015 06:07:21 +0000 (08:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 15:41:50 +0000 (10:41 -0500)
commit3435ab59d3febe0c00af2a4d40a6df401effe3de
tree2e88a49fcd689e9eaf39fd5909a2540b1f1944e9
parent61d0e73e0a5ab5fc80f6cd9d54f5146e33288a8d
net/mlx5e: Don't allow more than max supported channels

Consider MLX5E_MAX_NUM_CHANNELS @ethtool set/get_channels

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c