[dpdk-dev] [PATCH v2] app/testpmd: fix missing set for current forward engine
Lijun Ou
oulijun at huawei.com
Wed Jul 1 09:43:26 CEST 2020
When set the forwarding mode of the pkt, it needs to update
the fwd_eng that it is the member of cur_fwd_config. Otherwise,
an error will occur when executing the set command and show
confg fwd.
the flows as follows:
1. ./tespmd -w xxx -l xx -n 4 -- i
2. set fwd mac
testpmd> set fwd mac
Set mac packet forwarding mode
3. show config fwd
testpmd> show config fwd
io packet forwarding - ports=1 - cores=1 - streams=8 -...
Logical Core 1 (socket 0) forwards packets on 8 streams:
When run the 1 ~ 3 step, it should show the packet forwarding is
mac.
Fixes: af75078fece3 ("first public release")
Cc: wenzhuo.lu at intel.com
Cc: beilei.xing at intel.com
Cc: bernard.iremonger at intel.com
Cc: stable at dpdk.org
Signed-off-by: Lijun Ou <oulijun at huawei.com>
---
v2:
-- fix the title
-- add fixes and Cc
---
app/test-pmd/config.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index a7112c9..ee0e904 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -3158,6 +3158,7 @@ set_pkt_forwarding_mode(const char *fwd_mode_name)
fwd_mode_name,
retry_enabled == 0 ? "" : " with retry");
cur_fwd_eng = fwd_eng;
+ cur_fwd_config.fwd_eng = fwd_eng;
return;
}
i++;
--
2.7.4
More information about the dev
mailing list