net/mlx5: Add destination e-switch owner
The destination e-switch owner allows a rule in namespace of one e-switch owner to point to a vport that is natively associated with another e-switch owner. Signed-off-by: Shahar Klein <shahark@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
65360e5451
commit
b17f7fc10f
@@ -90,8 +90,12 @@ struct mlx5_flow_destination {
|
||||
union {
|
||||
u32 tir_num;
|
||||
struct mlx5_flow_table *ft;
|
||||
u32 vport_num;
|
||||
struct mlx5_fc *counter;
|
||||
struct {
|
||||
u16 num;
|
||||
u16 vhca_id;
|
||||
bool vhca_id_valid;
|
||||
} vport;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1148,8 +1148,9 @@ enum mlx5_flow_destination_type {
|
||||
struct mlx5_ifc_dest_format_struct_bits {
|
||||
u8 destination_type[0x8];
|
||||
u8 destination_id[0x18];
|
||||
|
||||
u8 reserved_at_20[0x20];
|
||||
u8 destination_eswitch_owner_vhca_id_valid[0x1];
|
||||
u8 reserved_at_21[0xf];
|
||||
u8 destination_eswitch_owner_vhca_id[0x10];
|
||||
};
|
||||
|
||||
struct mlx5_ifc_flow_counter_list_bits {
|
||||
|
||||
Reference in New Issue
Block a user