RDMA/mlx5: Do not generate the uabi specs unconditionally
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 12 Nov 2018 20:59:49 +0000 (22:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 22 Nov 2018 18:57:31 +0000 (11:57 -0700)
commitdfb631a187b9b04c066df60e28adf05334112ca6
tree1fcae49d7f217e70467aab13ec8e375b62ba4a7c
parentfc6526fba130dcbd496b96a9abf75a9382da95da
RDMA/mlx5: Do not generate the uabi specs unconditionally

For DM there is no reason not to add the spec for the START_OFFSET, if DM
is not supported then ib_dev.alloc_dm is already set to NULL which ensures
we do not call the method.

For IPSEC, the core code should be setting ib_dev.create_flow_action_esp
to NULL to disable it, not relying on wonky manipulation of the specs.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/hw/mlx5/main.c