OSDN Git Service

IB/core: Introduce and use sgid_attr in CM requests
authorParav Pandit <parav@mellanox.com>
Mon, 16 Jul 2018 08:50:11 +0000 (11:50 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Jul 2018 15:47:47 +0000 (09:47 -0600)
commitcee104334c98dd04e9dd4d9a4fa4784f7f6aada9
tree161dad5624ed86258e0609f49c2022c42222f4ee
parentd238ca09810a02e9224c698094afda0e8003f419
IB/core: Introduce and use sgid_attr in CM requests

For RoCE, when CM requests are received for RC and UD connections,
netdevice of the incoming request is unavailable. Because of that CM
requests are always forwarded to init_net namespace.

Now that we have the GID attribute available, introduce SGID attribute in
incoming CM requests and refer to the netdevice of it.  This is similar to
existing SGID attribute field in outgoing CM requests for RC and UD
transports.

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/cm.c
drivers/infiniband/core/cma.c
include/rdma/ib_cm.h