-
- Downloads
RDMA: Remove uverbs_ex_cmd_mask values that are linked to functions
Since a while now the uverbs layer checks if the driver implements a function before allowing the ucmd to proceed. This largely obsoletes the cmd_mask stuff, but there is some tricky bits in drivers preventing it from being removed. Remove the easy elements of uverbs_ex_cmd_mask by pre-setting them in the core code. These are triggered soley based on the related ops function pointer. query_device_ex is not triggered based on an op, but all drivers already implement something compatible with the extension, so enable it globally too. Link: https://lore.kernel.org/r/2-v1-caa70ba3d1ab+1436e-ucmd_mask_jgg@nvidia.com Signed-off-by:Jason Gunthorpe <jgg@nvidia.com>
Showing
- drivers/infiniband/core/device.c 11 additions, 0 deletionsdrivers/infiniband/core/device.c
- drivers/infiniband/core/uverbs_cmd.c 1 addition, 1 deletiondrivers/infiniband/core/uverbs_cmd.c
- drivers/infiniband/hw/efa/efa_main.c 0 additions, 3 deletionsdrivers/infiniband/hw/efa/efa_main.c
- drivers/infiniband/hw/hns/hns_roce_hw_v1.c 0 additions, 7 deletionsdrivers/infiniband/hw/hns/hns_roce_hw_v1.c
- drivers/infiniband/hw/hns/hns_roce_main.c 0 additions, 2 deletionsdrivers/infiniband/hw/hns/hns_roce_main.c
- drivers/infiniband/hw/mlx4/main.c 1 addition, 13 deletionsdrivers/infiniband/hw/mlx4/main.c
- drivers/infiniband/hw/mlx5/main.c 2 additions, 12 deletionsdrivers/infiniband/hw/mlx5/main.c
Loading
Please register or sign in to comment