app/testpmd: remove warning on flex flow flush
PATCH 1/1 app/testpmd: remove warning on flex flow flush
Building DPDK without JSON, warnings get displayed when stopping testpmd without entering any flex flow rule.
--- app/test-pmd/cmd_flex_item.c | 2 ++ 1 file changed, 2 insertions(+)
app/test-pmd/cmd_flex_item.c +2 -0
@@ -415,6 +415,8 @@ port_flex_item_flush(portid_t port_id)uint16_t i;for (i =0 ; i <FLEX_MAX_PARSERS_NUM ; i++) { +if (flex_items[port_id][i] ==NULL ) +continue ;flex_item_destroy (port_id, i); flex_items[port_id][i] =NULL ; }
Signature · 1 line
2.23.0
Hello,
I posted a patch for that issue in
https://patchwork.dpdk.org/project/dpdk/patch/[email protected]/
Regards,
Gregory
Quoted 48 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Tuesday, November 2, 2021 20:39
To: [email protected]
Cc: Gregory Etelson <[email protected]>; [email protected]; NBU-Contact-Thomas Monjalon <[email protected]>; Xiaoyun Li <[email protected]>; Slava Ovsiienko <[email protected]>
Subject: [PATCH] app/testpmd: remove warning on flex flow flushExternal email: Use caution opening links or attachments
Building DPDK without JSON, warnings get displayed when stopping testpmd without entering any flex flow rule.
Fixes 59f3a8acbcdb ("app/testpmd: add flexitem commands")
Signed-off-by: David Marchand
<[email protected]>--- app/test-pmd/cmd_flex_item.c | 2 ++ 1 file changed, 2 insertions(+)app/test-pmd/cmd_flex_item.c +2
-0@@ -415,6 +415,8 @@ port_flex_item_flush(portid_t port_id) uint16_t i;for (i =0 ; i <FLEX_MAX_PARSERS_NUM ; i++) { +if (flex_items[port_id][i] ==NULL ) +continue ;flex_item_destroy (port_id, i);flex_items[port_id][i] = NULL; }--
2.23.0
Quoted 2 lines · Gregory Etelson
I posted a patch for that issue in
https://patchwork.dpdk.org/project/dpdk/patch/[email protected]/
Ok cool, withdrawing my patch.
Signature · 1 line
David Marchand