IB/core: Use rdma_ah_attr accessor functions
Modify core and driver components to use accessor functions introduced to access individual fields of rdma_ah_attr Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Don Hiatt <don.hiatt@intel.com> Reviewed-by: Sean Hefty <sean.hefty@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

کامیت شده توسط
Doug Ledford

والد
2224c47ace
کامیت
d8966fcd4c
@@ -82,9 +82,9 @@ static void update_sm_ah(struct mthca_dev *dev,
|
||||
return;
|
||||
|
||||
memset(&ah_attr, 0, sizeof ah_attr);
|
||||
ah_attr.dlid = lid;
|
||||
ah_attr.sl = sl;
|
||||
ah_attr.port_num = port_num;
|
||||
rdma_ah_set_dlid(&ah_attr, lid);
|
||||
rdma_ah_set_sl(&ah_attr, sl);
|
||||
rdma_ah_set_port_num(&ah_attr, port_num);
|
||||
|
||||
new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
|
||||
&ah_attr);
|
||||
|
مرجع در شماره جدید
Block a user