]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91df746716e95bc36ac4a495f6e8e4b2ced2fd22
tree1aa41230eb7c7a483de85e7f8bb3304adb50ceff
parent3059651c6b5c12cbd814a7597fb67b753218550e
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