diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-04-07 01:24:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-08 05:36:12 +0200 |
commit | ab6dc30da55d262c54ae12e47e4a2e4372e39fbf (patch) | |
tree | fb77f6babbe4014502160bd8ddae2993ca6a1180 /drivers/net/mlx4/mlx4.h | |
parent | ipv4: Fix "Set rt->rt_iif more sanely on output routes." (diff) | |
download | linux-ab6dc30da55d262c54ae12e47e4a2e4372e39fbf.tar.xz linux-ab6dc30da55d262c54ae12e47e4a2e4372e39fbf.zip |
mlx4: Sensing link type at device initialization
When bringing the port up, performing a SENSE_PORT command
To try and check to which physical link type (IB or Ethernet) the physical
port is connected.
In case there is no valid link partner, the port will come up as its
supported default.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/mlx4/mlx4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index c1e0e5f1bcdb..dd7d745fbab4 100644 --- a/drivers/net/mlx4/mlx4.h +++ b/drivers/net/mlx4/mlx4.h @@ -431,6 +431,8 @@ void mlx4_srq_event(struct mlx4_dev *dev, u32 srqn, int event_type); void mlx4_handle_catas_err(struct mlx4_dev *dev); +int mlx4_SENSE_PORT(struct mlx4_dev *dev, int port, + enum mlx4_port_type *type); void mlx4_do_sense_ports(struct mlx4_dev *dev, enum mlx4_port_type *stype, enum mlx4_port_type *defaults); |