]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Refactor frwr_is_supported
authorChuck Lever <chuck.lever@oracle.com>
Fri, 3 Jan 2020 16:56:48 +0000 (11:56 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:32 +0000 (10:54 -0500)
commit29b142e6c3542da427e1458c8d34cba796ebbb50
tree2818953a95d24d778450443dac3d30bb8f3b75e0
parent4dc15541aff26dca72586354b4f514bc95877be0
xprtrdma: Refactor frwr_is_supported

Refactor: Perform the "is supported" check in rpcrdma_ep_create()
instead of in rpcrdma_ia_open(). frwr_open() is where most of the
logic to query device attributes is already located.

The current code displays a redundant error message when the device
does not support FRWR. As an additional clean-up, this patch removes
the extra message.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h