]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/hns: Redefine the member of hns_roce_cq struct
authorYixian Liu <liuyixian@huawei.com>
Mon, 18 Nov 2019 02:34:51 +0000 (10:34 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Nov 2019 14:31:48 +0000 (10:31 -0400)
commit18a96d25ce84a365fbe9ddcb887ade80eb3a6017
tree77f05bd285e2c4e5d49bdbd2927cd1f856ba798e
parente2b2744a06d35ba44f32c86e0579d986931187b3
RDMA/hns: Redefine the member of hns_roce_cq struct

There is no need to package buf and mtt into hns_roce_cq_buf, which will
make code more complex, just delete this struct and move buf and mtt into
hns_roce_cq. Furthermore, we add size member for hns_roce_buf to avoid
repeatly calculating where needed it.

Link: https://lore.kernel.org/r/1574044493-46984-3-git-send-email-liweihang@hisilicon.com
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c