diff options
-rw-r--r-- | net/sunrpc/xprtrdma/verbs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index 60f3317c90ee..99752b5b7354 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c | |||
@@ -618,9 +618,10 @@ rpcrdma_ia_open(struct rpcrdma_xprt *xprt, struct sockaddr *addr, int memreg) | |||
618 | 618 | ||
619 | if (memreg == RPCRDMA_FRMR) { | 619 | if (memreg == RPCRDMA_FRMR) { |
620 | /* Requires both frmr reg and local dma lkey */ | 620 | /* Requires both frmr reg and local dma lkey */ |
621 | if ((devattr->device_cap_flags & | 621 | if (((devattr->device_cap_flags & |
622 | (IB_DEVICE_MEM_MGT_EXTENSIONS|IB_DEVICE_LOCAL_DMA_LKEY)) != | 622 | (IB_DEVICE_MEM_MGT_EXTENSIONS|IB_DEVICE_LOCAL_DMA_LKEY)) != |
623 | (IB_DEVICE_MEM_MGT_EXTENSIONS|IB_DEVICE_LOCAL_DMA_LKEY)) { | 623 | (IB_DEVICE_MEM_MGT_EXTENSIONS|IB_DEVICE_LOCAL_DMA_LKEY)) || |
624 | (devattr->max_fast_reg_page_list_len == 0)) { | ||
624 | dprintk("RPC: %s: FRMR registration " | 625 | dprintk("RPC: %s: FRMR registration " |
625 | "not supported by HCA\n", __func__); | 626 | "not supported by HCA\n", __func__); |
626 | memreg = RPCRDMA_MTHCAFMR; | 627 | memreg = RPCRDMA_MTHCAFMR; |