]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/core: Don't depend device ODP capabilities on kconfig option
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 8 Jan 2019 14:07:24 +0000 (16:07 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 8 Jan 2019 23:41:38 +0000 (16:41 -0700)
commite502b8b011294c293064ef1baeb04235ccc05439
treeef54a48a50067724192d3aaf2edd7659839fe502
parent96f87ee1811306d0c8cf94b8c37b0e4f725b01d1
RDMA/core: Don't depend device ODP capabilities on kconfig option

Device capability bits are exposing what specific device supports from HW
perspective. Those bits are not dependent on kernel configurations and
RDMA/core should ensure that proper interfaces to users will be disabled
if CONFIG_INFINIBAND_ON_DEMAND_PAGING is not set.

Fixes: f4056bfd8ccf ("IB/core: Add on demand paging caps to ib_uverbs_ex_query_device")
Fixes: 8cdd312cfed7 ("IB/mlx5: Implement the ODP capability query verb")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/hw/mlx5/main.c