IB/uverbs: Extend uverbs_ioctl header with driver_id
Extending uverbs_ioctl header with driver_id and another reserved field. driver_id should be used in order to identify the driver. Since every driver could have its own parsing tree, this is necessary for strace support. Downstream patches take off the EXPERIMENTAL flag from the ioctl() IB support and thus we add some reserved fields for future usage. Reviewed-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
1f7ff9d5d3
commit
0ede73bc01
@@ -64,8 +64,30 @@ struct ib_uverbs_ioctl_hdr {
|
||||
__u16 object_id;
|
||||
__u16 method_id;
|
||||
__u16 num_attrs;
|
||||
__aligned_u64 reserved;
|
||||
__aligned_u64 reserved1;
|
||||
__u32 driver_id;
|
||||
__u32 reserved2;
|
||||
struct ib_uverbs_attr attrs[0];
|
||||
};
|
||||
|
||||
enum rdma_driver_id {
|
||||
RDMA_DRIVER_UNKNOWN,
|
||||
RDMA_DRIVER_MLX5,
|
||||
RDMA_DRIVER_MLX4,
|
||||
RDMA_DRIVER_CXGB3,
|
||||
RDMA_DRIVER_CXGB4,
|
||||
RDMA_DRIVER_MTHCA,
|
||||
RDMA_DRIVER_BNXT_RE,
|
||||
RDMA_DRIVER_OCRDMA,
|
||||
RDMA_DRIVER_NES,
|
||||
RDMA_DRIVER_I40IW,
|
||||
RDMA_DRIVER_VMW_PVRDMA,
|
||||
RDMA_DRIVER_QEDR,
|
||||
RDMA_DRIVER_HNS,
|
||||
RDMA_DRIVER_USNIC,
|
||||
RDMA_DRIVER_RXE,
|
||||
RDMA_DRIVER_HFI1,
|
||||
RDMA_DRIVER_QIB,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user