]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rxe: Remove redundant num_sge fields
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 13 Sep 2022 22:27:17 +0000 (17:27 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 27 Sep 2022 13:15:24 +0000 (10:15 -0300)
commitee06d2287d856b9ac612fb74c01707482c296ecf
treec959dd1b2203a5f555a988ff478f1e052614fdce
parent6fc0509ac26855db172a2aba8649e067346a457a
RDMA/rxe: Remove redundant num_sge fields

In include/uapi/rdma/rdma_user_rxe.h there are redundant copies of num_sge
in the rxe_send_wr, rxe_recv_wqe, and rxe_dma_info. Only the ones in
rxe_dma_info are actually used by the rxe kernel driver.

The userspace would set these values, but the kernel never read them.

This change has no affect on the current ABI and new or old versions of
rdma-core operate correctly with new or old versions of the kernel rxe
driver.

Link: https://lore.kernel.org/r/20220913222716.18335-1-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_verbs.c
include/uapi/rdma/rdma_user_rxe.h