Skip to content

Commit ee678e5

Browse files
Bob Pearsonjgunthorpe
authored andcommitted
RDMA/rxe: Fixes mr access supported list
A recent patch incorrectly did not include IB_ACCESS_RELAXED_ORDERING in the list of supported access flags for the rxe driver. The driver actually does nothing related to relaxed ordering but it causes no problems to include it as supported but with no effect. This change caused ib_send_bw and friends to not run correctly. The correct approach is for the driver to allow any of the optional access flags and otherwise ignore them. This patch adds IB_ACCESS_OPTIONAL to the list of rxe supported flags. Fixes: 02ed253 ("RDMA/rxe: Introduce rxe access supported flags") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bob Pearson <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 830f93f commit ee678e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/infiniband/sw/rxe/rxe_verbs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ enum {
262262
| IB_ACCESS_MW_BIND
263263
| IB_ACCESS_ON_DEMAND
264264
| IB_ACCESS_FLUSH_GLOBAL
265-
| IB_ACCESS_FLUSH_PERSISTENT,
265+
| IB_ACCESS_FLUSH_PERSISTENT
266+
| IB_ACCESS_OPTIONAL,
266267
RXE_ACCESS_SUPPORTED_QP = RXE_ACCESS_SUPPORTED_MR,
267268
RXE_ACCESS_SUPPORTED_MW = RXE_ACCESS_SUPPORTED_MR
268269
| IB_ZERO_BASED,

0 commit comments

Comments
 (0)