IB/cm: Keep track of the sgid_attr that created the cm id
Hold reference to the the sgid_attr which is used in a cm_id until the cm_id is destroyed. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
aa74f4878d
commit
4ed13a5f2d
@@ -58,6 +58,7 @@
|
||||
* @bound_dev_if: An optional device interface index.
|
||||
* @transport: The transport type used.
|
||||
* @net: Network namespace containing the bound_dev_if net_dev.
|
||||
* @sgid_attr: GID attribute to use for identified SGID
|
||||
*/
|
||||
struct rdma_dev_addr {
|
||||
unsigned char src_dev_addr[MAX_ADDR_LEN];
|
||||
@@ -67,6 +68,7 @@ struct rdma_dev_addr {
|
||||
int bound_dev_if;
|
||||
enum rdma_transport_type transport;
|
||||
struct net *net;
|
||||
const struct ib_gid_attr *sgid_attr;
|
||||
enum rdma_network_type network;
|
||||
int hoplimit;
|
||||
};
|
||||
|
Reference in New Issue
Block a user