app/testpmd: support action meter color
authorHaifei Luo <haifeil@nvidia.com>
Wed, 12 May 2021 10:49:33 +0000 (13:49 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 12 May 2021 12:06:27 +0000 (14:06 +0200)
commitc5c507100ea58e24f812401c77c66cdb9bceee36
tree72be45ce77f7ec9e1241d9b508f54892dbf3a106
parent35139e648ad103a21589bf28ac9d5909fb483b46
app/testpmd: support action meter color

Currently action RTE_FLOW_ACTION_TYPE_METER_COLOR is defined.
Add the CLI for this action:  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.

Signed-off-by: Haifei Luo <haifeil@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_flow.c
doc/guides/rel_notes/release_21_05.rst
doc/guides/testpmd_app_ug/testpmd_funcs.rst