Merge tag 'mlx5-updates-2018-05-17' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux into for-next
mlx5-updates-2018-05-17 mlx5 core dirver updates for both net-next and rdma-next branches. From Christophe JAILLET, first three patche to use kvfree where needed. From: Or Gerlitz <ogerlitz@mellanox.com> Next six patches from Roi and Co adds support for merged sriov e-switch which comes to serve cases where both PFs, VFs set on them and both uplinks are to be used in single v-switch SW model. When merged e-switch is supported, the per-port e-switch is logically merged into one e-switch that spans both physical ports and all the VFs. This model allows to offload TC eswitch rules between VFs belonging to different PFs (and hence have different eswitch affinity), it also sets the some of the foundations needed for uplink LAG support. * tag 'mlx5-updates-2018-05-17' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux: net/mlx5e: Explicitly set source e-switch in offloaded TC rules net/mlx5: Add source e-switch owner net/mlx5e: Explicitly set destination e-switch in FDB rules net/mlx5: Add destination e-switch owner net/mlx5: Properly handle a vport destination when setting FTE net/mlx5: Add merged e-switch cap IB/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()' net/mlx5: Eswitch, Use 'kvfree()' for memory allocated by 'kvzalloc()' net/mlx5: Vport, Use 'kvfree()' for memory allocated by 'kvzalloc()'
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
@@ -418,7 +418,7 @@ struct mlx5_ifc_fte_match_set_misc_bits {
|
||||
u8 reserved_at_0[0x8];
|
||||
u8 source_sqn[0x18];
|
||||
|
||||
u8 reserved_at_20[0x10];
|
||||
u8 source_eswitch_owner_vhca_id[0x10];
|
||||
u8 source_port[0x10];
|
||||
|
||||
u8 outer_second_prio[0x3];
|
||||
@@ -586,7 +586,8 @@ struct mlx5_ifc_e_switch_cap_bits {
|
||||
u8 vport_svlan_insert[0x1];
|
||||
u8 vport_cvlan_insert_if_not_exist[0x1];
|
||||
u8 vport_cvlan_insert_overwrite[0x1];
|
||||
u8 reserved_at_5[0x19];
|
||||
u8 reserved_at_5[0x18];
|
||||
u8 merged_eswitch[0x1];
|
||||
u8 nic_vport_node_guid_modify[0x1];
|
||||
u8 nic_vport_port_guid_modify[0x1];
|
||||
|
||||
@@ -1178,8 +1179,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 {
|
||||
@@ -7028,7 +7030,9 @@ struct mlx5_ifc_create_flow_group_in_bits {
|
||||
u8 reserved_at_a0[0x8];
|
||||
u8 table_id[0x18];
|
||||
|
||||
u8 reserved_at_c0[0x20];
|
||||
u8 source_eswitch_owner_vhca_id_valid[0x1];
|
||||
|
||||
u8 reserved_at_c1[0x1f];
|
||||
|
||||
u8 start_flow_index[0x20];
|
||||
|
||||
|
Reference in New Issue
Block a user