]> git.baikalelectronics.ru Git - kernel.git/commit
IB/cma: Accept connection without a valid netdev on RoCE
authorHaggai Eran <haggaie@mellanox.com>
Tue, 6 Oct 2015 14:56:00 +0000 (17:56 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 6 Oct 2015 18:25:16 +0000 (14:25 -0400)
commitb7aba0130ec31b220766f15865bde96669f68229
tree09d2c8ca6eda6c96a59cb0cff430a1b2e38ba292
parent30e560b0e7ae6b8a783db1794f38df6ee75af348
IB/cma: Accept connection without a valid netdev on RoCE

The netdev checks recently added to RDMA CM expect a valid netdev to be
found for both InfiniBand and RoCE, but the code that find a netdev is
only implemented for InfiniBand.

Currently RoCE doesn't provide an API to find the netdev matching a
given set of parameters, so this patch just disables the netdev enforcement
for each incoming connections when the link layer is RoCE.

Fixes: 692c5adcece7 ("IB/cma: Add net_dev and private data checks to RDMA CM")
Reported-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c