RDMA/cma: Avoid GID lookups on iWARP devices
authorChuck Lever <chuck.lever@oracle.com>
Mon, 17 Jul 2023 15:12:32 +0000 (11:12 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 21 Jul 2023 19:00:18 +0000 (16:00 -0300)
commitf8ef1be816bf9a0c406c696368c2264a9597a994
treebc2a52156952fa1f5fc102696f0c824276cac39d
parent700c96497ba9acf1a3554a3cd3ba6c79db3cbcf7
RDMA/cma: Avoid GID lookups on iWARP devices

We would like to enable the use of siw on top of a VPN that is
constructed and managed via a tun device. That hasn't worked up
until now because ARPHRD_NONE devices (such as tun devices) have
no GID for the RDMA/core to look up.

But it turns out that the egress device has already been picked for
us -- no GID is necessary. addr_handler() just has to do the right
thing with it.

Link: https://lore.kernel.org/r/168960675257.3007.4737911174148394395.stgit@manet.1015granger.net
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cma.c