Skip to content

Commit

Permalink
net/mlx5: Introduce ifc bits for using software vhca id
Browse files Browse the repository at this point in the history
Introduce ifc related stuff to enable using software vhca id
functionality.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
Yishai Hadas authored and Saeed Mahameed committed Jul 13, 2022
1 parent 32ea277 commit 0372c54
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions include/linux/mlx5/mlx5_ifc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,14 @@ struct mlx5_ifc_cmd_hca_cap_2_bits {
u8 max_reformat_remove_size[0x8];
u8 max_reformat_remove_offset[0x8];

u8 reserved_at_c0[0x740];
u8 reserved_at_c0[0x160];

u8 reserved_at_220[0x1];
u8 sw_vhca_id_valid[0x1];
u8 sw_vhca_id[0xe];
u8 reserved_at_230[0x10];

u8 reserved_at_240[0x5c0];
};

enum mlx5_ifc_flow_destination_type {
Expand Down Expand Up @@ -3782,6 +3789,11 @@ struct mlx5_ifc_rmpc_bits {
struct mlx5_ifc_wq_bits wq;
};

enum {
VHCA_ID_TYPE_HW = 0,
VHCA_ID_TYPE_SW = 1,
};

struct mlx5_ifc_nic_vport_context_bits {
u8 reserved_at_0[0x5];
u8 min_wqe_inline_mode[0x3];
Expand All @@ -3798,8 +3810,8 @@ struct mlx5_ifc_nic_vport_context_bits {
u8 event_on_mc_address_change[0x1];
u8 event_on_uc_address_change[0x1];

u8 reserved_at_40[0xc];

u8 vhca_id_type[0x1];
u8 reserved_at_41[0xb];
u8 affiliation_criteria[0x4];
u8 affiliated_vhca_id[0x10];

Expand Down Expand Up @@ -7259,7 +7271,12 @@ struct mlx5_ifc_init_hca_in_bits {
u8 reserved_at_20[0x10];
u8 op_mod[0x10];

u8 reserved_at_40[0x40];
u8 reserved_at_40[0x20];

u8 reserved_at_60[0x2];
u8 sw_vhca_id[0xe];
u8 reserved_at_70[0x10];

u8 sw_owner_id[4][0x20];
};

Expand Down

0 comments on commit 0372c54

Please sign in to comment.