[PATCH kernel-4.19 04/13] RDMA/hns: optimize the duplicated code for qpc setting flow