|
@@ -526,7 +526,7 @@ done:
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * This function creates ah from the incoming packet.
|
|
|
+ * This function initializes address handle attributes from the incoming packet.
|
|
|
* Incoming packet has dgid of the receiver node on which this code is
|
|
|
* getting executed and, sgid contains the GID of the sender.
|
|
|
*
|
|
@@ -535,9 +535,9 @@ done:
|
|
|
* GID whom to respond to.
|
|
|
*
|
|
|
*/
|
|
|
-int ib_init_ah_from_wc(struct ib_device *device, u8 port_num,
|
|
|
- const struct ib_wc *wc, const struct ib_grh *grh,
|
|
|
- struct rdma_ah_attr *ah_attr)
|
|
|
+int ib_init_ah_attr_from_wc(struct ib_device *device, u8 port_num,
|
|
|
+ const struct ib_wc *wc, const struct ib_grh *grh,
|
|
|
+ struct rdma_ah_attr *ah_attr)
|
|
|
{
|
|
|
u32 flow_class;
|
|
|
u16 gid_index;
|
|
@@ -611,7 +611,7 @@ int ib_init_ah_from_wc(struct ib_device *device, u8 port_num,
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(ib_init_ah_from_wc);
|
|
|
+EXPORT_SYMBOL(ib_init_ah_attr_from_wc);
|
|
|
|
|
|
struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc,
|
|
|
const struct ib_grh *grh, u8 port_num)
|
|
@@ -619,7 +619,7 @@ struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc,
|
|
|
struct rdma_ah_attr ah_attr;
|
|
|
int ret;
|
|
|
|
|
|
- ret = ib_init_ah_from_wc(pd->device, port_num, wc, grh, &ah_attr);
|
|
|
+ ret = ib_init_ah_attr_from_wc(pd->device, port_num, wc, grh, &ah_attr);
|
|
|
if (ret)
|
|
|
return ERR_PTR(ret);
|
|
|
|