Home
last modified time | relevance | path

Searched refs:flow_action (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dact.c76 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()
Dact.h16 struct flow_action *flow_action; member
110 struct flow_action *flow_action,
115 struct flow_action *flow_action, int from, int to,
/Linux-v6.6/include/net/
Dflow_offload.h334 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 …]
Dpkt_cls.h573 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,
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.h127 struct flow_action *actions,
130 struct flow_action *actions,
Dcxgb4_tc_matchall.c11 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()
Dcxgb4_tc_flower.c492 struct flow_action *actions, in cxgb4_process_flow_actions()
683 struct flow_action *actions, in cxgb4_validate_flow_actions()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c18 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()
/Linux-v6.6/drivers/net/ethernet/marvell/prestera/
Dprestera_flower.c63 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()
/Linux-v6.6/net/sched/
Dact_ct.c63 tcf_ct_flow_table_flow_action_get_next(struct flow_action *flow_action) in tcf_ct_flow_table_flow_action_get_next() argument
65 int i = flow_action->num_entries++; in tcf_ct_flow_table_flow_action_get_next()
67 return &flow_action->entries[i]; in tcf_ct_flow_table_flow_action_get_next()
70 static void tcf_ct_add_mangle_action(struct flow_action *action, in tcf_ct_add_mangle_action()
93 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_ipv4()
108 tcf_ct_add_ipv6_addr_mangle_action(struct flow_action *action, in tcf_ct_add_ipv6_addr_mangle_action()
123 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_ipv6()
138 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_tcp()
156 struct flow_action *action) in tcf_ct_flow_table_add_action_nat_udp()
174 struct flow_action *action) in tcf_ct_flow_table_add_action_meta()
[all …]
Dcls_api.c3708 void tc_cleanup_offload_action(struct flow_action *flow_action) in tc_cleanup_offload_action() argument
3713 flow_action_for_each(i, entry, flow_action) { in tc_cleanup_offload_action()
3739 int tc_setup_action(struct flow_action *flow_action, in tc_setup_action() argument
3758 entry = &flow_action->entries[j]; in tc_setup_action()
3784 tc_cleanup_offload_action(flow_action); in tc_setup_action()
3792 int tc_setup_offload_action(struct flow_action *flow_action, in tc_setup_offload_action() argument
3804 return tc_setup_action(flow_action, exts->actions, miss_cookie_base, in tc_setup_offload_action()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c2056 struct flow_action *flow_action = &rule->action; in flow_requires_tunnel_mapping() local
2063 flow_action_for_each(i, act, flow_action) { in flow_requires_tunnel_mapping()
3365 is_flow_action_modify_ip_header(struct flow_action *flow_action) in is_flow_action_modify_ip_header() argument
3376 flow_action_for_each(i, act, flow_action) { in is_flow_action_modify_ip_header()
3409 struct flow_action *flow_action, in modify_header_match_supported() argument
3428 modify_ip_header = is_flow_action_modify_ip_header(flow_action); in modify_header_match_supported()
3463 struct flow_action *flow_action, in actions_match_supported() argument
3470 !modify_header_match_supported(priv, &parse_attr->spec, flow_action, actions, in actions_match_supported()
3874 struct flow_action *flow_action) in parse_tc_actions() argument
3891 flow_action_for_each(i, act, flow_action) { in parse_tc_actions()
[all …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Dhelper.h17 u16 vlan_id, u32 flow_action);
Dhelper.c52 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()
/Linux-v6.6/drivers/net/ethernet/mscc/
Docelot_police.h37 int ocelot_policer_validate(const struct flow_action *action,
Docelot_police.c161 int ocelot_policer_validate(const struct flow_action *action, in ocelot_policer_validate()
/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c170 struct flow_action *actions, in otx2_tc_validate_flow()
191 static int otx2_policer_validate(const struct flow_action *action, in otx2_policer_validate()
229 struct flow_action *actions = &cls->rule->action; in otx2_tc_egress_matchall_install()
338 struct flow_action *flow_action, in otx2_tc_parse_actions() argument
354 if (!flow_action_has_entries(flow_action)) { in otx2_tc_parse_actions()
359 flow_action_for_each(i, act, flow_action) { in otx2_tc_parse_actions()
396 err = otx2_policer_validate(flow_action, act, extack); in otx2_tc_parse_actions()
1188 struct flow_action *actions = &cls->rule->action; in otx2_tc_ingress_matchall_install()
/Linux-v6.6/drivers/net/ethernet/microchip/lan966x/
Dlan966x_police.c72 const struct flow_action *action, in lan966x_police_validate()
133 struct flow_action *action, in lan966x_police_port_add()
Dlan966x_tc_flower.c260 struct flow_action *act = &rule->action; in lan966x_tc_flower_action_check()
/Linux-v6.6/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1667 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()
1939 struct flow_action *flow_action, in qede_flow_spec_validate() argument
1963 if (qede_parse_actions(edev, flow_action, NULL)) in qede_flow_spec_validate()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.c282 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()
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c283 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()
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c1760 struct flow_action *flow_action = &rule->action; in ice_parse_tc_flower_actions() local
1767 if (!flow_action_has_entries(flow_action)) in ice_parse_tc_flower_actions()
1770 flow_action_for_each(i, act, flow_action) { in ice_parse_tc_flower_actions()
/Linux-v6.6/drivers/net/dsa/sja1105/
Dsja1105_flower.c303 static int sja1105_policer_validate(const struct flow_action *action, in sja1105_policer_validate()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/flower/
Daction.c1221 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()

12