OSDN Git Service

RDMA/rxe: Compute the maximum sges and inline size based on the WQE size
authorRao Shoaib <rao.shoaib@oracle.com>
Tue, 14 Jan 2020 00:41:20 +0000 (16:41 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 15 Jan 2020 20:36:41 +0000 (16:36 -0400)
commit363824f92a9259b025f05ab038eb47224377f9e9
tree6f6c67951e10e687ab545e22f91dd97b2bd1d425
parent4e8d683f11767dc6cd8eaac6b599928f343b4cdb
RDMA/rxe: Compute the maximum sges and inline size based on the WQE size

The SGE buffer size and max_inline data should be derived from the size of
the WQE. Each value individually sets the WQE size, so compute the actual
sizes based on the actual WQE size and configure the QP with the maximums.

Also fix the missing return of the actual maximum capability to the caller.

Link: https://lore.kernel.org/r/1578962480-17814-3-git-send-email-rao.shoaib@oracle.com
Signed-off-by: Rao Shoaib <rao.shoaib@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_qp.c