f29fa2c59b
Add the create/del policy CLIs to support actions per color. The CLIs are: Create: add port meter policy (port_id) (policy_id) g_actions (actions) y_actions (actions) r_actions (actions) Delete: del port meter policy (port_id) (policy_id) Examples: testpmd> add port meter policy 0 1 g_actions rss / end y_actions end r_actions drop / end testpmd> del port meter policy 0 1 Signed-off-by: Haifei Luo <haifeil@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
27 lines
1.0 KiB
C
27 lines
1.0 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2017 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _CMDLINE_MTR_H_
|
|
#define _CMDLINE_MTR_H_
|
|
#include <rte_mtr.h>
|
|
|
|
/* Traffic Metering and Policing */
|
|
extern cmdline_parse_inst_t cmd_show_port_meter_cap;
|
|
extern cmdline_parse_inst_t cmd_add_port_meter_profile_srtcm;
|
|
extern cmdline_parse_inst_t cmd_add_port_meter_profile_trtcm;
|
|
extern cmdline_parse_inst_t cmd_add_port_meter_profile_trtcm_rfc4115;
|
|
extern cmdline_parse_inst_t cmd_del_port_meter_profile;
|
|
extern cmdline_parse_inst_t cmd_create_port_meter;
|
|
extern cmdline_parse_inst_t cmd_enable_port_meter;
|
|
extern cmdline_parse_inst_t cmd_disable_port_meter;
|
|
extern cmdline_parse_inst_t cmd_del_port_meter;
|
|
extern cmdline_parse_inst_t cmd_del_port_meter_policy;
|
|
extern cmdline_parse_inst_t cmd_set_port_meter_profile;
|
|
extern cmdline_parse_inst_t cmd_set_port_meter_dscp_table;
|
|
extern cmdline_parse_inst_t cmd_set_port_meter_stats_mask;
|
|
extern cmdline_parse_inst_t cmd_show_port_meter_stats;
|
|
void print_mtr_err_msg(struct rte_mtr_error *error);
|
|
|
|
#endif /* _CMDLINE_MTR_H_ */
|