Home
last modified time | relevance | path

Searched refs:fl_act (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpolice.c117 struct flow_offload_action *fl_act, in tc_act_police_offload() argument
124 err = police_act_validate(act, fl_act->extack); in tc_act_police_offload()
141 NL_SET_ERR_MSG_MOD(fl_act->extack, "Failed to get flow meter"); in tc_act_police_offload()
151 struct flow_offload_action *fl_act) in tc_act_police_destroy() argument
156 params.index = fl_act->index; in tc_act_police_destroy()
159 NL_SET_ERR_MSG_MOD(fl_act->extack, "Failed to get flow meter"); in tc_act_police_destroy()
171 struct flow_offload_action *fl_act) in tc_act_police_stats() argument
177 params.index = fl_act->index; in tc_act_police_stats()
180 NL_SET_ERR_MSG_MOD(fl_act->extack, "Failed to get flow meter"); in tc_act_police_stats()
185 flow_stats_update(&fl_act->stats, bytes, packets, drops, lastuse, in tc_act_police_stats()
H A Dact.h60 struct flow_offload_action *fl_act,
64 struct flow_offload_action *fl_act);
67 struct flow_offload_action *fl_act);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dtc.c535 struct flow_offload_action *fl_act) in mlx5e_rep_indr_replace_act() argument
549 if (!flow_offload_has_one_action(&fl_act->action)) in mlx5e_rep_indr_replace_act()
557 flow_action_for_each(i, action, &fl_act->action) { in mlx5e_rep_indr_replace_act()
565 if (!act->offload_action(priv, fl_act, action)) in mlx5e_rep_indr_replace_act()
574 struct flow_offload_action *fl_act) in mlx5e_rep_indr_destroy_act() argument
586 act = mlx5e_tc_act_get(fl_act->id, ns_type); in mlx5e_rep_indr_destroy_act()
590 return act->destroy_action(priv, fl_act); in mlx5e_rep_indr_destroy_act()
595 struct flow_offload_action *fl_act) in mlx5e_rep_indr_stats_act() argument
608 act = mlx5e_tc_act_get(fl_act->id, ns_type); in mlx5e_rep_indr_stats_act()
610 return mlx5e_tc_fill_action_stats(priv, fl_act); in mlx5e_rep_indr_stats_act()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dqos_conf.c694 nfp_act_install_actions(struct nfp_app *app, struct flow_offload_action *fl_act, in nfp_act_install_actions() argument
697 struct flow_action_entry *paction = &fl_act->action.entries[0]; in nfp_act_install_actions()
698 u32 action_num = fl_act->action.num_entries; in nfp_act_install_actions()
718 err = nfp_policer_validate(&fl_act->action, action, extack, false); in nfp_act_install_actions()
752 nfp_act_remove_actions(struct nfp_app *app, struct flow_offload_action *fl_act, in nfp_act_remove_actions() argument
762 if (fl_act->id != FLOW_ACTION_POLICE) { in nfp_act_remove_actions()
768 meter_id = fl_act->index; in nfp_act_remove_actions()
828 nfp_act_stats_actions(struct nfp_app *app, struct flow_offload_action *fl_act, in nfp_act_stats_actions() argument
836 if (fl_act->id != FLOW_ACTION_POLICE) { in nfp_act_stats_actions()
843 meter_entry = nfp_flower_search_meter_entry(app, fl_act->index); in nfp_act_stats_actions()
[all …]
H A Dmain.h720 struct flow_offload_action *fl_act);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dact_stats.c168 struct flow_offload_action *fl_act) in mlx5e_tc_act_stats_fill_stats() argument
176 item = rhashtable_lookup(ht, &fl_act->cookie, act_counters_ht_params); in mlx5e_tc_act_stats_fill_stats()
186 flow_stats_update(&fl_act->stats, in mlx5e_tc_act_stats_fill_stats()
H A Dact_stats.h25 struct flow_offload_action *fl_act);
/openbmc/linux/net/sched/
H A Dact_api.c203 static int tcf_action_offload_cmd_ex(struct flow_offload_action *fl_act, in tcf_action_offload_cmd_ex() argument
209 fl_act, NULL, NULL); in tcf_action_offload_cmd_ex()
219 static int tcf_action_offload_cmd_cb_ex(struct flow_offload_action *fl_act, in tcf_action_offload_cmd_cb_ex() argument
226 err = cb(NULL, NULL, cb_priv, TC_SETUP_ACT, NULL, fl_act, NULL); in tcf_action_offload_cmd_cb_ex()
236 static int tcf_action_offload_cmd(struct flow_offload_action *fl_act, in tcf_action_offload_cmd() argument
241 return cb ? tcf_action_offload_cmd_cb_ex(fl_act, hw_count, in tcf_action_offload_cmd()
243 tcf_action_offload_cmd_ex(fl_act, hw_count); in tcf_action_offload_cmd()
303 struct flow_offload_action fl_act = {}; in tcf_action_update_hw_stats() local
306 err = offload_action_init(&fl_act, action, FLOW_ACT_STATS, NULL); in tcf_action_update_hw_stats()
310 err = tcf_action_offload_cmd(&fl_act, NULL, NULL, NULL); in tcf_action_update_hw_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.h200 struct flow_offload_action *fl_act);
H A Den_tc.c4808 struct flow_offload_action *fl_act) in mlx5e_tc_fill_action_stats() argument
4810 return mlx5e_tc_act_stats_fill_stats(get_act_stats_handle(priv), fl_act); in mlx5e_tc_fill_action_stats()