IB/mlx5: Support IB device's callback for getting the link layer
authorAchiad Shochat <achiad@mellanox.com>
Wed, 23 Dec 2015 16:47:16 +0000 (18:47 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 17:07:36 +0000 (12:07 -0500)
commitebd61f68e1c79eab022c550f95cb8bf37cc925cb
tree7c67dcc2f1757d501de1bda135ed16c11b22897f
parent59f65f495d0defb62032422d1adec841fc657213
IB/mlx5: Support IB device's callback for getting the link layer

Make the existing mlx5_ib_port_link_layer() signature match
the ib device callback signature (add port_num parameter).
Refactor it to use a sub function so that the link layer could
be queried also before the ibdev is created.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c