/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | act.c | 76 struct flow_action *flow_action, in mlx5e_tc_act_init_parse_state() argument 82 parse_state->flow_action = flow_action; in mlx5e_tc_act_init_parse_state() 87 struct flow_action *flow_action, int from, int to, in mlx5e_tc_act_post_parse() argument 98 flow_action_for_each(i, act, flow_action) { in mlx5e_tc_act_post_parse()
|
H A D | act.h | 16 struct flow_action *flow_action; member 110 struct flow_action *flow_action, 115 struct flow_action *flow_action, int from, int to,
|
/openbmc/linux/include/net/ |
H A D | flow_offload.h | 334 struct flow_action { struct 339 static inline bool flow_action_has_entries(const struct flow_action *action) in flow_action_has_entries() argument 350 static inline bool flow_offload_has_one_action(const struct flow_action *action) in flow_offload_has_one_action() 355 static inline bool flow_action_is_last_entry(const struct flow_action *action, in flow_action_is_last_entry() 367 flow_action_mixed_hw_stats_check(const struct flow_action *action, in flow_action_mixed_hw_stats_check() 388 flow_action_first_entry_get(const struct flow_action *action) in flow_action_first_entry_get() 395 __flow_action_hw_stats_check(const struct flow_action *action, in __flow_action_hw_stats_check() 425 flow_action_hw_stats_check(const struct flow_action *action, in flow_action_hw_stats_check() 433 flow_action_basic_hw_stats_check(const struct flow_action *action, in flow_action_basic_hw_stats_check() 441 struct flow_action action; [all …]
|
H A D | pkt_cls.h | 573 int tc_setup_offload_action(struct flow_action *flow_action, 576 void tc_cleanup_offload_action(struct flow_action *flow_action); 577 int tc_setup_action(struct flow_action *flow_action,
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_flower.h | 127 struct flow_action *actions, 130 struct flow_action *actions,
|
H A D | cxgb4_tc_matchall.c | 11 static int cxgb4_policer_validate(const struct flow_action *action, in cxgb4_policer_validate() 55 struct flow_action *actions = &cls->rule->action; in cxgb4_matchall_egress_validate()
|
H A D | cxgb4_tc_flower.c | 492 struct flow_action *actions, in cxgb4_process_flow_actions() 683 struct flow_action *actions, in cxgb4_validate_flow_actions()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flower.c | 18 static int mlxsw_sp_policer_validate(const struct flow_action *action, in mlxsw_sp_policer_validate() 61 struct flow_action *flow_action, in mlxsw_sp_flower_parse_actions() argument 70 if (!flow_action_has_entries(flow_action)) in mlxsw_sp_flower_parse_actions() 72 if (!flow_action_mixed_hw_stats_check(flow_action, extack)) in mlxsw_sp_flower_parse_actions() 75 act = flow_action_first_entry_get(flow_action); in mlxsw_sp_flower_parse_actions() 88 flow_action_for_each(i, act, flow_action) { in mlxsw_sp_flower_parse_actions() 244 err = mlxsw_sp_policer_validate(flow_action, act, extack); in mlxsw_sp_flower_parse_actions()
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flower.c | 63 struct flow_action *flow_action, in prestera_flower_parse_actions() argument 71 if (!flow_action_has_entries(flow_action)) in prestera_flower_parse_actions() 74 if (!flow_action_mixed_hw_stats_check(flow_action, extack)) in prestera_flower_parse_actions() 77 act = flow_action_first_entry_get(flow_action); in prestera_flower_parse_actions() 92 flow_action_for_each(i, act, flow_action) { in prestera_flower_parse_actions()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tc.c | 2060 struct flow_action *flow_action = &rule->action; in flow_requires_tunnel_mapping() local 2067 flow_action_for_each(i, act, flow_action) { in flow_requires_tunnel_mapping() 3373 is_flow_action_modify_ip_header(struct flow_action *flow_action) in is_flow_action_modify_ip_header() argument 3384 flow_action_for_each(i, act, flow_action) { in is_flow_action_modify_ip_header() 3417 struct flow_action *flow_action, in modify_header_match_supported() argument 3436 modify_ip_header = is_flow_action_modify_ip_header(flow_action); in modify_header_match_supported() 3471 struct flow_action *flow_action, in actions_match_supported() argument 3478 !modify_header_match_supported(priv, &parse_attr->spec, flow_action, actions, in actions_match_supported() 3898 struct flow_action *flow_action) in parse_tc_actions() argument 3915 flow_action_for_each(i, act, flow_action) { in parse_tc_actions() [all …]
|
/openbmc/linux/net/sched/ |
H A D | act_ct.c | 70 tcf_ct_flow_table_flow_action_get_next(struct flow_action *flow_action) in tcf_ct_flow_table_flow_action_get_next() argument 72 int i = flow_action->num_entries++; in tcf_ct_flow_table_flow_action_get_next() 74 return &flow_action->entries[i]; in tcf_ct_flow_table_flow_action_get_next() 77 static void tcf_ct_add_mangle_action(struct flow_action *action, in tcf_ct_add_mangle_action() 100 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_ipv4() 115 tcf_ct_add_ipv6_addr_mangle_action(struct flow_action *action, in tcf_ct_add_ipv6_addr_mangle_action() 130 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_ipv6() 145 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_tcp() 163 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_udp() 181 struct flow_action *action) in tcf_ct_flow_table_add_action_meta() [all …]
|
H A D | cls_api.c | 3715 void tc_cleanup_offload_action(struct flow_action *flow_action) in tc_cleanup_offload_action() argument 3720 flow_action_for_each(i, entry, flow_action) { in tc_cleanup_offload_action() 3746 int tc_setup_action(struct flow_action *flow_action, in tc_setup_action() argument 3765 entry = &flow_action->entries[j]; in tc_setup_action() 3791 tc_cleanup_offload_action(flow_action); in tc_setup_action() 3799 int tc_setup_offload_action(struct flow_action *flow_action, in tc_setup_offload_action() argument 3811 return tc_setup_action(flow_action, exts->actions, miss_cookie_base, in tc_setup_offload_action()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | helper.c | 52 u16 vlan_id, u32 flow_action) in esw_egress_acl_vlan_create() argument 71 flow_act.action = flow_action; in esw_egress_acl_vlan_create()
|
H A D | helper.h | 17 u16 vlan_id, u32 flow_action);
|
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_police.h | 37 int ocelot_policer_validate(const struct flow_action *action,
|
H A D | ocelot_police.c | 161 int ocelot_policer_validate(const struct flow_action *action, in ocelot_policer_validate()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_tc.c | 173 struct flow_action *actions, in otx2_tc_validate_flow() 194 static int otx2_policer_validate(const struct flow_action *action, in otx2_policer_validate() 232 struct flow_action *actions = &cls->rule->action; in otx2_tc_egress_matchall_install() 357 struct flow_action *flow_action, in otx2_tc_parse_actions() argument 373 if (!flow_action_has_entries(flow_action)) { in otx2_tc_parse_actions() 378 flow_action_for_each(i, act, flow_action) { in otx2_tc_parse_actions() 415 err = otx2_policer_validate(flow_action, act, extack); in otx2_tc_parse_actions() 1219 struct flow_action *actions = &cls->rule->action; in otx2_tc_ingress_matchall_install()
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_police.c | 72 const struct flow_action *action, in lan966x_police_validate() 133 struct flow_action *action, in lan966x_police_port_add()
|
H A D | lan966x_tc_flower.c | 260 struct flow_action *act = &rule->action; in lan966x_tc_flower_action_check()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 1667 struct flow_action *flow_action, in qede_parse_actions() argument 1673 if (!flow_action_has_entries(flow_action)) { in qede_parse_actions() 1678 if (!flow_action_basic_hw_stats_check(flow_action, extack)) in qede_parse_actions() 1681 flow_action_for_each(i, act, flow_action) { in qede_parse_actions() 1942 struct flow_action *flow_action, in qede_flow_spec_validate() argument 1966 if (qede_parse_actions(edev, flow_action, NULL)) in qede_flow_spec_validate()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_ct.c | 282 struct flow_action *flow_action = &rule->action; in mlx5_tc_ct_rule_to_tuple_nat() local 287 flow_action_for_each(i, act, flow_action) { in mlx5_tc_ct_rule_to_tuple_nat() 538 struct flow_action *flow_action = &flow_rule->action; in mlx5_tc_ct_get_ct_metadata_action() local 542 flow_action_for_each(i, act, flow_action) { in mlx5_tc_ct_get_ct_metadata_action() 671 struct flow_action *flow_action = &flow_rule->action; in mlx5_tc_ct_entry_create_nat() local 677 flow_action_for_each(i, act, flow_action) { in mlx5_tc_ct_entry_create_nat()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_tc.c | 283 struct flow_action *flow_action, in bnxt_tc_parse_actions() argument 299 if (!flow_action_has_entries(flow_action)) { in bnxt_tc_parse_actions() 304 if (!flow_action_basic_hw_stats_check(flow_action, extack)) in bnxt_tc_parse_actions() 307 flow_action_for_each(i, act, flow_action) { in bnxt_tc_parse_actions()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.c | 1838 struct flow_action *flow_action = &rule->action; in ice_parse_tc_flower_actions() local 1845 if (!flow_action_has_entries(flow_action)) in ice_parse_tc_flower_actions() 1848 flow_action_for_each(i, act, flow_action) { in ice_parse_tc_flower_actions()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | action.c | 1221 static bool nfp_fl_check_mangle_start(struct flow_action *flow_act, in nfp_fl_check_mangle_start() 1239 static bool nfp_fl_check_mangle_end(struct flow_action *flow_act, in nfp_fl_check_mangle_end()
|
/openbmc/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_flower.c | 303 static int sja1105_policer_validate(const struct flow_action *action, in sja1105_policer_validate()
|