RDMA/hns: Replace get_udp_sport with rdma_get_udp_sport
authorZhu Yanjun <yanjun.zhu@linux.dev>
Thu, 6 Jan 2022 18:03:57 +0000 (13:03 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 7 Jan 2022 23:34:55 +0000 (19:34 -0400)
commit93f8df548187f6aca50d3398a88cf5ebf130525e
treeaff78dd2e523732ac51917c5575dd67d0e88ca0d
parent18451db82ef7f943c60a7fce685f16172bda5106
RDMA/hns: Replace get_udp_sport with rdma_get_udp_sport

Several drivers have the same function xxx_get_udp_sport. So this
function is moved to ib_verbs.h.

Link: https://lore.kernel.org/r/20220106180359.2915060-3-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c