net/mlx5_core: Use port number when querying port ptys
authorMajd Dibbiny <majd@mellanox.com>
Thu, 4 Jun 2015 16:30:44 +0000 (19:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 23:41:01 +0000 (16:41 -0700)
commita05bdefa4081d43f9c86c3bb693d0492a21590da
tree48a10ed5efad39edebcfbda70ef0743523511c17
parente760152d08da78aa160e68ac90bf8f3f10aff462
net/mlx5_core: Use port number when querying port ptys

Until now, mlx5_query_port_ptys always queried port number one.

Added new argument in the function's prototype so we can also query
the second port. This will be needed  when thr helper will be invoked
from the IB driver on non FPP (Function-Per-Port) devices.

Signed-off-by: Majd Dibbiny <majd@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_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/driver.h