]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Set user priority for DCT
authorPatrisious Haddad <phaddad@nvidia.com>
Wed, 6 Oct 2021 09:31:53 +0000 (12:31 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 6 Oct 2021 19:39:52 +0000 (16:39 -0300)
commit1ab52ac1e9bc9391f592c9fa8340a6e3e9c36286
tree06fd542fdd9a3e3889d24b77454eace97e2f50d9
parente93c7d8e8c4cf80c6afe56e71c83c1cd31b4fce1
RDMA/mlx5: Set user priority for DCT

Currently, the driver doesn't set the PCP-based priority for DCT, hence
DCT response packets are transmitted without user priority.

Fix it by setting user provided priority in the eth_prio field in the DCT
context, which in turn sets the value in the transmitted packet.

Fixes: 776a3906b692 ("IB/mlx5: Add support for DC target QP")
Link: https://lore.kernel.org/r/5fd2d94a13f5742d8803c218927322257d53205c.1633512672.git.leonro@nvidia.com
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/qp.c