RDMA/rxe: Remove rxe_link_layer()
authorKamal Heib <kamalheib1@gmail.com>
Sun, 5 Jul 2020 10:43:13 +0000 (13:43 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 16 Jul 2020 16:57:21 +0000 (13:57 -0300)
commit420bd9e2d93e4a4121d5bdf3a051b0ddefa9c1cc
treea3fd720bb6ad464f5f5ed2824fe4b447345c1672
parent293d8440a0bdd246d523802f62fb1d16c238a485
RDMA/rxe: Remove rxe_link_layer()

Instead of returning IB_LINK_LAYER_ETHERNET from rxe_link_layer, return it
directly from get_link_layer callback and remove rxe_link_layer().

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20200705104313.283034-5-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_loc.h
drivers/infiniband/sw/rxe/rxe_net.c
drivers/infiniband/sw/rxe/rxe_verbs.c