]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Consider netdevice for RoCE ports
authorParav Pandit <parav@mellanox.com>
Mon, 16 Jul 2018 08:50:12 +0000 (11:50 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Jul 2018 15:47:47 +0000 (09:47 -0600)
commit5871831920ba14fb8b15241b1e836b22ab9fc0bb
treedd2be54e2fe5b568f550a94d23fe888387cc2ca0
parentdfc8ef432bb6787942756f4344c4a1bfe66bbdf9
RDMA/cma: Consider netdevice for RoCE ports

When netdevice is not found for a request, and if it for RoCE port,
currently it allows matching the listener as long as port number matches
by ignoring the netdevice.

Now that we always prefer to have netdevice associated with RoCE, when
netdevice is not found, don't consider RoCE ports.

In other words, a NULL netdevice with RoCE is not acceptable. Therefore,
remove this confusing RoCE port ignorance check.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c