
From: Junxian Huang <huangjunxian6@hisilicon.com> driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICJYA1 ---------------------------------------------------------------------- Fix wrong function name in the description of rdma_register_poe_channel(). Add constraint description about concurreny call. Fixes: 21cacb516f20 ("RDMA/hns: Support write with notify") Fixes: 96df01574e0c ("RDMA/hns: Support configuring POE channels and creating POE CQs") Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by: Donghua Huang <huangdonghua3@h-partners.com> --- drivers/infiniband/hw/hns/hns_roce_ext.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_ext.h b/drivers/infiniband/hw/hns/hns_roce_ext.h index 603e51cbf29a..c5148e0116d1 100644 --- a/drivers/infiniband/hw/hns/hns_roce_ext.h +++ b/drivers/infiniband/hw/hns/hns_roce_ext.h @@ -8,15 +8,27 @@ #include <linux/types.h> /** - * rdma_register_notify_addr - Register an POE channel for this RDMA device. + * rdma_register_poe_channel - Register an POE channel for this RDMA device. * @channel - POE channel index. * @poe_addr - POE channel address. * * If the current POE device is not associated with CQ, then it will be * allowed to be re-registered. Otherwise, re-registration or * de-registration will report an EBUSY error. + * + * This function is not allowed to be called concurrently. */ int rdma_register_poe_channel(struct ib_device *ib_dev, u8 channel, u64 poe_addr); + +/** + * rdma_unregister_poe_channel - Unregister an POE channel for this RDMA device. + * @channel - POE channel index. + * + * If the current POE device is still associated with CQ, de-registration + * will report an EBUSY error. + * + * This function is not allowed to be called concurrently. + */ int rdma_unregister_poe_channel(struct ib_device *ib_dev, u8 channel); /** @@ -58,9 +70,17 @@ struct rdma_notify_mem { * * If notify_mem has already been registered, re-registration * will not be allowed. + * + * This function is not allowed to be called concurrently. */ int rdma_register_notify_addr(struct ib_device *ib_dev, size_t num, struct rdma_notify_mem *notify_mem); +/** + * rdma_unregister_notify_addr - Unregister the memory regions for write with + * notify operation. + * + * This function is not allowed to be called concurrently. + */ int rdma_unregister_notify_addr(struct ib_device *ib_dev); #endif -- 2.33.0