RDMA: Move uverbs_abi_ver into struct ib_device_ops

No reason for every driver to emit code to set this, just make it part of
the driver's existing static const ops structure.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Jason Gunthorpe
2019-06-05 14:39:25 -03:00
parent b9560a419b
commit 72c6ec18eb
20 changed files with 33 additions and 25 deletions

View File

@@ -2330,6 +2330,7 @@ struct iw_cm_conn_param;
*/
struct ib_device_ops {
enum rdma_driver_id driver_id;
u32 uverbs_abi_ver;
int (*post_send)(struct ib_qp *qp, const struct ib_send_wr *send_wr,
const struct ib_send_wr **bad_send_wr);
@@ -2650,7 +2651,6 @@ struct ib_device {
*/
const struct attribute_group *groups[3];
int uverbs_abi_ver;
u64 uverbs_cmd_mask;
u64 uverbs_ex_cmd_mask;