Re: [dpdk-dev] [PATCH v3] app/testpmd: add CLI for action meter color
From: Ferruh Yigit <hidden>
Date: 2021-05-12 08:34:11
On 5/12/2021 8:02 AM, Haifei Luo wrote:
Currently action RTE_FLOW_ACTION_TYPE_METER_COLOR is defined.
Add the CLI for this aciton: color type (types)
There are three types: green, yellow and red.
Example for the new policy meter CLIs:
add port meter policy 0 1 g_actions color type green / end y_actions
color type yellow / end r_actions color type red / end
In the above command, the action type is RTE_FLOW_ACTION_TYPE_METER_COLOR,
the meter policy action list: green -> green, yellow -> yellow, red -> red.
V2: rebase the latest code.
V3: update the document.
Signed-off-by: Haifei Luo <redacted>
Acked-by: Ori Kam <redacted>
---
app/test-pmd/cmdline_flow.c | 85 +++++++++++++++++++++++++++++
doc/guides/rel_notes/release_21_05.rst | 3 +
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 4 ++
3 files changed, 92 insertions(+)Thanks Haifei for the documentation update, Can you also add a sample for the color in the 'testpmd_funcs.rst', in section "Flow rules management"? If you check through end of the section you will see same samples sub-sections for various flow rules, since meter color action is new I think it would be helpful to have the sample. You already have one in the commit log but may be good to have it in the documentation too.