[v11,2/3] app/testpmd: add skip cman support for testpmd
Checks
Commit Message
added support for testpmd application to accept
skip_cman action while configuring policy action
Below is sample command given after configuring meter
profile for which congestion configuration is applied
for red and yellow color packets and bypassed for
green color packets in dpdk-testpmd application
add port meter policy 0 200 g_actions drop / skip_cman / end
y_actions drop / end r_actions drop / end
Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
---
app/test-pmd/cmdline_flow.c | 9 +++++++++
1 file changed, 9 insertions(+)
@@ -488,6 +488,7 @@ enum index {
ACTION_END,
ACTION_VOID,
ACTION_PASSTHRU,
+ ACTION_SKIP_CMAN,
ACTION_JUMP,
ACTION_JUMP_GROUP,
ACTION_MARK,
@@ -1896,6 +1897,7 @@ static const enum index next_action[] = {
ACTION_END,
ACTION_VOID,
ACTION_PASSTHRU,
+ ACTION_SKIP_CMAN,
ACTION_JUMP,
ACTION_MARK,
ACTION_FLAG,
@@ -5385,6 +5387,13 @@ static const struct token token_list[] = {
.next = NEXT(NEXT_ENTRY(ACTION_NEXT)),
.call = parse_vc,
},
+ [ACTION_SKIP_CMAN] = {
+ .name = "skip_cman",
+ .help = "bypass cman on received packets",
+ .priv = PRIV_ACTION(SKIP_CMAN, 0),
+ .next = NEXT(NEXT_ENTRY(ACTION_NEXT)),
+ .call = parse_vc,
+ },
[ACTION_JUMP] = {
.name = "jump",
.help = "redirect traffic to a given group",