RDMA/rxe: Fixes mr access supported list
Subsystems (2)
PATCH v2 1/1 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.
---
v2: Changed the target to for-next since the error is not currently in
for-rc. Replaced IB_ACCESS_RELAXED_ORDERING by IB_ACCESS_OPTIONAL per a suggestion by Jason Gunthorpe.
--- drivers/infiniband/sw/rxe/rxe_verbs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.h +2 -1
@@ -262,7 +262,8 @@ enum { | IB_ACCESS_MW_BIND |IB_ACCESS_ON_DEMAND |IB_ACCESS_FLUSH_GLOBAL - |IB_ACCESS_FLUSH_PERSISTENT , + |IB_ACCESS_FLUSH_PERSISTENT + |IB_ACCESS_OPTIONAL ,RXE_ACCESS_SUPPORTED_QP =RXE_ACCESS_SUPPORTED_MR ,RXE_ACCESS_SUPPORTED_MW =RXE_ACCESS_SUPPORTED_MR | IB_ZERO_BASED,
base-commit: 830f93f47068b1632cc127871fbf27e918efdf46
Signature · 1 line
2.39.2
Quoted 13 lines · Bob Pearson
A recent patch incorrectly did not include
IB_ACCESS_RELAXED_ORDERINGin 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 causedib_send_bwand 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_OPTIONALto the list of rxe supported flags.Fixes 02ed253770fb ("RDMA/rxe: Introduce rxe access supported flags")Signed-off-by Bob Pearson <[email protected]>
Quoted 7 lines
---
v2: Changed the target to for-next since the error is not currently in
for-rc. ReplacedIB_ACCESS_RELAXED_ORDERINGbyIB_ACCESS_OPTIONALper a suggestion by Jason Gunthorpe.--- drivers/infiniband/sw/rxe/rxe_verbs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to for-next
Thanks,
Jason