]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit43f475f8b8434796f735a035fb4aa53a9df82b53
treeec362a314441577a56cb88a1205f7b2fd5be1401
parent6e801f0411280d7a2efd134b8f84a5b0a635819c
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