[PATCH openEuler-5.10 06/21] RDMA/hns: Encapsulate the qp db as a function