OSDN Git Service

RDMA/rxe: Fix small problem in network_type patch
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 16 Oct 2020 21:13:44 +0000 (16:13 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 26 Oct 2020 22:12:17 +0000 (19:12 -0300)
commitedebc8407b8891ec0ea9ca4089f3d3343a5e50dd
tree3484a623dd3eecb24716bf0d9181daff942a033c
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
RDMA/rxe: Fix small problem in network_type patch

The patch referenced below has a typo that results in using the wrong L2
header size for outbound traffic. (V4 <-> V6).

It also breaks kernel-side RC traffic because they use AVs that use
RDMA_NETWORK_XXX enums instead of RXE_NETWORK_TYPE_XXX enums. Fix this by
transcoding between these enum types.

Fixes: e0d696d201dd ("RDMA/rxe: Move the definitions for rxe_av.network_type to uAPI")
Link: https://lore.kernel.org/r/20201016211343.22906-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_av.c
drivers/infiniband/sw/rxe/rxe_net.c