diff options
| author | Parav Pandit <parav@mellanox.com> | 2018-06-19 03:59:16 -0400 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-06-25 16:19:56 -0400 |
| commit | aa74f4878d61c83244ad8613082989b60a566ca4 (patch) | |
| tree | 2aa0fbab7e0ba530d060638a83a42e9b1269f123 /drivers/infiniband/core/cma.c | |
| parent | f685c19529f0e4d9738f52cbf65d1189c6551fd5 (diff) | |
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>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
| -rw-r--r-- | drivers/infiniband/core/cma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 40b2609e076b..367aa75ac338 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
| @@ -3508,6 +3508,8 @@ static int cma_sidr_rep_handler(struct ib_cm_id *cm_id, | |||
| 3508 | } | 3508 | } |
| 3509 | 3509 | ||
| 3510 | ret = id_priv->id.event_handler(&id_priv->id, &event); | 3510 | ret = id_priv->id.event_handler(&id_priv->id, &event); |
| 3511 | |||
| 3512 | rdma_destroy_ah_attr(&event.param.ud.ah_attr); | ||
| 3511 | if (ret) { | 3513 | if (ret) { |
| 3512 | /* Destroy the CM ID by returning a non-zero value. */ | 3514 | /* Destroy the CM ID by returning a non-zero value. */ |
| 3513 | id_priv->cm_id.ib = NULL; | 3515 | id_priv->cm_id.ib = NULL; |
