IB: Make init_ah_attr_grh_fields set sgid_attr
Use the sgid and other information from the path record to figure out the sgid_attrs. 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>
This commit is contained in:

committed by
Jason Gunthorpe

parent
f685c19529
commit
aa74f4878d
@@ -770,8 +770,10 @@ static void path_rec_completion(int status,
|
||||
struct rdma_ah_attr av;
|
||||
|
||||
if (!ib_init_ah_attr_from_path(priv->ca, priv->port,
|
||||
pathrec, &av))
|
||||
pathrec, &av)) {
|
||||
ah = ipoib_create_ah(dev, priv->pd, &av);
|
||||
rdma_destroy_ah_attr(&av);
|
||||
}
|
||||
}
|
||||
|
||||
spin_lock_irqsave(&priv->lock, flags);
|
||||
|
Reference in New Issue
Block a user