summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2014-03-19 18:11:49 +0200
committerDavid S. Miller <davem@davemloft.net>2014-03-20 16:18:29 -0400
commit82373701be26b893eaf7372db0af84235a51998a (patch)
tree3159467efb4de693e07c5e1c8bd1d08eb37faa7d /drivers/net/ethernet/mellanox
parent8798998c2cdbc0df3c64e8845c1502ed93ef1ebd (diff)
downloadlinux-82373701be26b893eaf7372db0af84235a51998a.tar.bz2
IB/mlx4_ib: Adapt code to use caps.num_ports instead of a constant
Some code in the mlx4 IB driver stack assumed MLX4_MAX_PORTS ports. Instead, we should only loop until the number of actual ports in i the device, which is stored in dev->caps.num_ports. Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
0 files changed, 0 insertions, 0 deletions