IB/mlx5: Refactor CQE compression response
authorYonatan Cohen <yonatanc@mellanox.com>
Sun, 27 May 2018 10:42:33 +0000 (13:42 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 29 May 2018 21:18:38 +0000 (15:18 -0600)
commit572f46bf947c3eeca8d16518e0fb70f9250b4416
treeb490bbb6dec7e3b7eabc3a5748747736ffa96f86
parentab741b2eed3e456cebd2240d4c9c6be003d5ae72
IB/mlx5: Refactor CQE compression response

Refactor CQE compression response to be fully set only
when it`s really supported. There is no change from user
perspective because anyway resp.cqe_comp_caps.max_num was
set to zero.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>W
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c