]> git.droids-corp.org - dpdk.git/commit
app/testpmd: fix flex item flush
authorGregory Etelson <getelson@nvidia.com>
Tue, 26 Oct 2021 15:20:00 +0000 (18:20 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Nov 2021 21:19:38 +0000 (22:19 +0100)
commit2d3d840135081e360234656711f1b7caef840662
treec7b0979191b7994677cdcc656d93bf3ed365e82a
parent5e973b3fa1bb6a8e682a8bfab6142809db69dcc3
app/testpmd: fix flex item flush

Testpmd provides 2 sets of flex item create and destroy functions
One for hosts with JSON library. These functions parse
flex item configuration stored in JSON file and create or destroy
flex item object. The second functions set is for hosts without JSON
library for compilation compatibility.

On hosts without JSON library, current implementation issues
"no JSON library" notification on port close.
The notification was triggered by port destructors that include
flex items flush routine.

The patch introduces single implementation for testpmd
flex item destroy.

Fixes: 59f3a8acbcdb ("app/testpmd: add flex item commands")
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Reviewed-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
app/test-pmd/cmd_flex_item.c