IB/core: Add generic function to extract IB speed from netdev
authorYuval Shaia <yuval.shaia@oracle.com>
Wed, 14 Jun 2017 20:13:34 +0000 (23:13 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 12:45:11 +0000 (08:45 -0400)
commitd41861942fc55c14b6280d9568a0d0112037f065
treec71935ab1feeed8a4a913b7a43b04e10e63427bc
parent44b0b7455f7a6c4bff3cda804719d2ed4494b4da
IB/core: Add generic function to extract IB speed from netdev

Logic of retrieving netdev speed from net_device and translating it to
IB speed is implemented in rxe, in usnic and in bnxt drivers.

Define new function which merges all.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Christian Benvenuti <benve@cisco.com>
Reviewed-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/roce_gid_mgmt.c
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/usnic/usnic_ib_verbs.c
drivers/infiniband/sw/rxe/rxe_verbs.c
include/rdma/ib_verbs.h