]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Don't rely on FW to set zeros in ECE response
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 2 Jun 2020 12:55:47 +0000 (15:55 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Jun 2020 18:45:02 +0000 (15:45 -0300)
commit36bc79216fc6c28b42272449adf3236047a1d148
tree3969875d42da00b316e37da8c7b7bd80a1640d4b
parent08a55654d76a77ba12f34cd542925da820ddcd57
RDMA/mlx5: Don't rely on FW to set zeros in ECE response

The FW returns zeros in case feature is not enabled, but it is better to
have the capability check and ensure that returned result is cleared.

Fixes: df5e48b9b8d4 ("RDMA/mlx5: Get ECE options from FW during create QP")
Link: https://lore.kernel.org/r/20200602125548.172654-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c