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)
commitb8cab5dab15ff5c2acc3faefdde28919b0341c11
tree09d2c8ca6eda6c96a59cb0cff430a1b2e38ba292
parentf022fa88ce6abc83c6e678a890df5c1e4b0eaf89
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: 4c21b5bcef73 ("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