IB/mlx5: Enable ECN capable bits for UD RoCE v2 QPs
authorMajd Dibbiny <majd@mellanox.com>
Thu, 22 Mar 2018 13:34:03 +0000 (15:34 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Mar 2018 20:43:10 +0000 (14:43 -0600)
commitea8af0d2f2b5b16da4553205ddaf225e0a057e03
tree507ef20033e7aeb079169e090bb67375391dc0cf
parentbe23fb9a2c1d33037c1499a04e93bb0c03cf73d6
IB/mlx5: Enable ECN capable bits for UD RoCE v2 QPs

When working with RC QPs, the FW sets the ECN capable bits for all
the RoCE v2 packets. On the other hand, for UD QPs, the driver needs
to set the the ECN capable bits in the Address Handler since the HW
generates each packet according to the Address Handler and not
the QP context.

If ECN is not enabled in NIC or switch, these bits are ignored.

Fixes: 2811ba51b049 ("IB/mlx5: Add RoCE fields to Address Vector")
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/ah.c