RDMA/hns: Add support for filling GMV table
authorWeihang Li <liweihang@huawei.com>
Sat, 24 Oct 2020 03:07:16 +0000 (11:07 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 28 Oct 2020 16:40:42 +0000 (13:40 -0300)
commit32053e584e4a342be37a0932ffc1f9b13e914515
tree47dfac49d419644c8d526bd4401c97f78b3736cc
parentd6d91e46210f3adb7b6d4c667cb72bf847b5783a
RDMA/hns: Add support for filling GMV table

Add a interface to fill GMV(SGID/SMAC/VLAN) table for HIP09, all of above
source address information is stored as an entry in GMV table. The users
just need to provide the index to the hardware when POST SEND.

Link: https://lore.kernel.org/r/1603508836-33054-3-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h
drivers/infiniband/hw/hns/hns_roce_main.c