RDMA/mlx5: Directly compute the PAS list for raw QP RQ's
authorJason Gunthorpe <jgg@nvidia.com>
Sun, 15 Nov 2020 11:43:07 +0000 (13:43 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 16 Nov 2020 20:53:29 +0000 (16:53 -0400)
commit7579dcdf737d76a28243add75dc78babf09e29fa
tree67848caa2f03db342d7aff46cd1874e4914f0068
parentad480ea5d6ea605bf63d23f5f91447d5cac3c95e
RDMA/mlx5: Directly compute the PAS list for raw QP RQ's

The RQ WQ created when making a raw ethernet QP copies the PAS list from
a dummy QPC command created earlier in the flow. The WQC and QPC PAS lists
are not fully compatible as the page_offset is a different size.

Create the RQ WQ's PAS list directly and do not try to copy it from
another command structure.

Like the prior patch, this also means that badly aligned buffers were not
correctly rejected.

Link: https://lore.kernel.org/r/20201115114311.136250-4-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c