]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/infiniband/hw/mlx5/qp.c
IB/mlx5: Add PCI write end padding support
authorNoa Osherovich <noaos@mellanox.com>
Sun, 29 Oct 2017 11:59:45 +0000 (13:59 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 10 Nov 2017 18:50:27 +0000 (13:50 -0500)
commitb1383aa64121778d9419cc982e387e27d9e96c64
tree811e73586e520114039b8121383a170e30f3b19d
parente1d2e88733695038754d3303b180f8005a02b6f1
IB/mlx5: Add PCI write end padding support

Add the PCI write end padding flag to device_cap_flags enum and set it
during mlx5_ib_query_device so it will be reported to user-space.

During WQ/QP creation, set that capability for WQ/QP if user requested
it and HW supports it.

PCI write end padding modification is not supported for now. There's no
such flag for a QP but for a WQ, create and modify use the same flag.
Return an error if PCI write end padding flag is set during modify_wq.

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c