MCPcopy Create free account
hub / github.com/F-Stack/f-stack / policer_action_string

Function policer_action_string

dpdk/examples/ip_pipeline/cli.c:4717–4726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4715}
4716
4717static const char *
4718policer_action_string(enum rte_table_action_policer action) {
4719 switch (action) {
4720 case RTE_TABLE_ACTION_POLICER_COLOR_GREEN: return "G";
4721 case RTE_TABLE_ACTION_POLICER_COLOR_YELLOW: return "Y";
4722 case RTE_TABLE_ACTION_POLICER_COLOR_RED: return "R";
4723 case RTE_TABLE_ACTION_POLICER_DROP: return "D";
4724 default: return "?";
4725 }
4726}
4727
4728static int
4729table_rule_show(const char *pipeline_name,

Callers 1

table_rule_showFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected