mbox series

[v4,0/2] RDMA/rxe: rxe should use same buffer size for SGE's and inline data

Message ID 1579199412-15741-1-git-send-email-rao.shoaib@oracle.com (mailing list archive)
Headers show
Series RDMA/rxe: rxe should use same buffer size for SGE's and inline data | expand

Message

Shoaib Rao Jan. 16, 2020, 6:30 p.m. UTC
From: Rao Shoaib <rao.shoaib@oracle.com>

Incorportaed suggestions from Jason. There are two patches.
Patch #1 introduces max WQE size as suggested by Jason
Patch #2 allocates resources requested and makes sure that the buffer size
         is same for SG entries and inline data, maximum of the two values
         requested is used.

Rao Shoaib (2):
  RDMA/rxe: use RXE_MAX_WQE_SIZE to enforce limits
  RDMA/rxe: SGE buffer and max_inline data must have same size

 drivers/infiniband/sw/rxe/rxe_param.h |  7 ++++++-
 drivers/infiniband/sw/rxe/rxe_qp.c    | 28 ++++++++++++++++------------
 2 files changed, 22 insertions(+), 13 deletions(-)

Comments

Jason Gunthorpe Jan. 16, 2020, 7:20 p.m. UTC | #1
On Thu, Jan 16, 2020 at 10:30:10AM -0800, rao Shoaib wrote:
> From: Rao Shoaib <rao.shoaib@oracle.com>
> 
> Incorportaed suggestions from Jason. There are two patches.
> Patch #1 introduces max WQE size as suggested by Jason
> Patch #2 allocates resources requested and makes sure that the buffer size
>          is same for SG entries and inline data, maximum of the two values
>          requested is used.
> 
> Rao Shoaib (2):
>   RDMA/rxe: use RXE_MAX_WQE_SIZE to enforce limits
>   RDMA/rxe: SGE buffer and max_inline data must have same size

I already took v3, with modifications

Jason