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)
commit92cd667c0e8a67de024134be0a6f0bdb320606a8
tree3969875d42da00b316e37da8c7b7bd80a1640d4b
parent6512f11d386c7cf83a48e71cfd7c7c1b0003c151
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: 3e09a427ae7a ("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