On Fri, Feb 25, 2022 at 07:25:55PM +0800, Wenpeng Liang wrote: > From: Chengchang Tang <tangchengchang@xxxxxxxxxx> > > The current mailbox functions have too many parameters, making the code > difficult to maintain. So construct a new structure mbox_msg to pass the > information needed by mailbox. > > Signed-off-by: Chengchang Tang <tangchengchang@xxxxxxxxxx> > Signed-off-by: Wenpeng Liang <liangwenpeng@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_cmd.c | 73 ++++++------ > drivers/infiniband/hw/hns/hns_roce_cmd.h | 2 +- > drivers/infiniband/hw/hns/hns_roce_cq.c | 9 +- > drivers/infiniband/hw/hns/hns_roce_device.h | 14 ++- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 111 +++++++++--------- > .../infiniband/hw/hns/hns_roce_hw_v2_dfx.c | 4 +- > drivers/infiniband/hw/hns/hns_roce_mr.c | 13 +- > drivers/infiniband/hw/hns/hns_roce_srq.c | 6 +- > 8 files changed, 120 insertions(+), 112 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>