]> 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)
commit8412680cc7b961cd6475c73b3b489af9526890d2
tree2818953a95d24d778450443dac3d30bb8f3b75e0
parenta7dba567f54ab3c6130822fce17c50e44b5c45d9
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