Home
last modified time | relevance | path

Searched refs:rule_spec (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge_mcast.c63 struct mlx5_flow_spec *rule_spec; in mlx5_esw_bridge_mdb_flow_create() local
68 rule_spec = kvzalloc(sizeof(*rule_spec), GFP_KERNEL); in mlx5_esw_bridge_mdb_flow_create()
69 if (!rule_spec) in mlx5_esw_bridge_mdb_flow_create()
74 kvfree(rule_spec); in mlx5_esw_bridge_mdb_flow_create()
86 rule_spec->flow_context.flags |= FLOW_CONTEXT_UPLINK_HAIRPIN_EN; in mlx5_esw_bridge_mdb_flow_create()
87 rule_spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS; in mlx5_esw_bridge_mdb_flow_create()
88 dmac_v = MLX5_ADDR_OF(fte_match_param, rule_spec->match_value, outer_headers.dmac_47_16); in mlx5_esw_bridge_mdb_flow_create()
90 dmac_c = MLX5_ADDR_OF(fte_match_param, rule_spec->match_criteria, outer_headers.dmac_47_16); in mlx5_esw_bridge_mdb_flow_create()
95 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_mdb_flow_create()
97 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mdb_flow_create()
[all …]
Dbridge.c583 struct mlx5_flow_spec *rule_spec; in mlx5_esw_bridge_ingress_flow_with_esw_create() local
587 rule_spec = kvzalloc(sizeof(*rule_spec), GFP_KERNEL); in mlx5_esw_bridge_ingress_flow_with_esw_create()
588 if (!rule_spec) in mlx5_esw_bridge_ingress_flow_with_esw_create()
591 rule_spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS | MLX5_MATCH_MISC_PARAMETERS_2; in mlx5_esw_bridge_ingress_flow_with_esw_create()
593 smac_v = MLX5_ADDR_OF(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_flow_with_esw_create()
596 smac_c = MLX5_ADDR_OF(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create()
600 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create()
602 MLX5_SET(fte_match_param, rule_spec->match_value, misc_parameters_2.metadata_reg_c_0, in mlx5_esw_bridge_ingress_flow_with_esw_create()
612 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create()
614 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_flow_with_esw_create()
[all …]