OSDN Git Service

IB: Make ib_init_ah_from_mcmember set sgid_attr
authorParav Pandit <parav@mellanox.com>
Tue, 19 Jun 2018 07:59:15 +0000 (10:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Jun 2018 20:19:56 +0000 (14:19 -0600)
commitf685c19529f0e4d9738f52cbf65d1189c6551fd5
tree85b0fae908a0d79a189028c4fda4f5d23dbba781
parentb7403217656dcf6c51f09d0bca7a12db0de8934a
IB: Make ib_init_ah_from_mcmember set sgid_attr

This is really just a CM support function, normally a multicast address
does not have a specific SGID - but the RDMA CM usage model does restrict
things to the netdevice the CM id is bound to, at least for roce case.

Store the selected table entry in the sgid_attr for everything else to
use.

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