RDMA/irdma: optimize rx path by removing unnecessary copy
authorZhu Yanjun <yanjun.zhu@linux.dev>
Sat, 30 Oct 2021 10:42:26 +0000 (06:42 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 1 Nov 2021 17:39:33 +0000 (14:39 -0300)
commit9ed8110c9b298cf143a8abc6dab975547da72888
tree1aa41230eb7c7a483de85e7f8bb3304adb50ceff
parent4e446714fb89e93665173477bc70ce0494e9d5b1
RDMA/irdma: optimize rx path by removing unnecessary copy

In the function irdma_post_recv, the function irdma_copy_sg_list is
not needed since the struct irdma_sge and ib_sge have the similar
member variables. The struct irdma_sge can be replaced with the
struct ib_sge totally.

This can increase the rx performance of irdma.

Link: https://lore.kernel.org/r/20211030104226.253346-1-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/uk.c
drivers/infiniband/hw/irdma/user.h
drivers/infiniband/hw/irdma/verbs.c