summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
diff options
context:
space:
mode:
authorEran Ben Elisha2017-01-17 18:19:18 +0100
committerDavid S. Miller2017-01-18 20:58:23 +0100
commite91ef71dfe834e11b57411f1715cd2e2bb4401f1 (patch)
tree410990b9cd3d23e6faf1f9f8fdc0f1b0fcbc8e42 /drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
parentnet: ethtool: Initialize buffer when querying device channel settings (diff)
downloadkernel-qcow2-linux-e91ef71dfe834e11b57411f1715cd2e2bb4401f1.tar.gz
kernel-qcow2-linux-e91ef71dfe834e11b57411f1715cd2e2bb4401f1.tar.xz
kernel-qcow2-linux-e91ef71dfe834e11b57411f1715cd2e2bb4401f1.zip
net/mlx4_en: Remove unnecessary checks when setting num channels
Boundaries checks for the number of RX, TX, other and combined channels should be checked by the caller and not in the driver. In addition, remove wrong memset on get channels as it overrides the cmd field in the requester struct. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c')
0 files changed, 0 insertions, 0 deletions