net/mlx5_core: Add more query port helpers
authorMajd Dibbiny <majd@mellanox.com>
Thu, 4 Jun 2015 16:30:45 +0000 (19:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 23:41:02 +0000 (16:41 -0700)
commita124d13ef59e09941fc0924fd7c29ae6d7cd77a3
treeec362a314441577a56cb88a1205f7b2fd5be1401
parenta05bdefa4081d43f9c86c3bb693d0492a21590da
net/mlx5_core: Add more query port helpers

Add the following helpers:

1. mlx5_query_port_proto_oper -- queries the port speed port mask
2. mlx5_query_port_link_width_oper - queries the port link with bitmask
3. mlx5_query_port_vl_hw_cap - queries the Virtual Lanes supported on this port

These helpers will be used from the IB driver when working in ISSI > 0 mode.

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/port.c
include/linux/mlx5/driver.h