[PATCH openEuler-5.10 3/9] RDMA/hns: Refactor mtr_init_buf_cfg()