OSDN Git Service

RDMA/rxe: Move the definitions for rxe_av.network_type to uAPI
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 15 Oct 2020 23:42:18 +0000 (20:42 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 16 Oct 2020 16:54:10 +0000 (13:54 -0300)
commite0d696d201dd5d31813787d9b61a42fc459eee89
treef80b048b4b3e121addf04433c1f824d7dc5eb42b
parente0477b34d9d11c1a7b1f80bfdbcdc8952ce2adb7
RDMA/rxe: Move the definitions for rxe_av.network_type to uAPI

RXE was wrongly using an internal kernel enum as part of its uAPI, split
this out into a dedicated uAPI enum just for RXE. It only uses the IPv4
and IPv6 values.

This was exposed by changing the internal kernel enum definition which
broke RXE.

Fixes: 1c15b4f2a42f ("RDMA/core: Modify enum ib_gid_type and enum rdma_network_type")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_net.c
include/uapi/rdma/rdma_user_rxe.h