[V2,6/7] app/testpmd: add forwarding config in start port
Checks
Commit Message
Most operations in testpmd that need to update the forwarding streams
in testpmd call fwd_config_setup(). In some scenarios, eg, dev_configure
is called again, the forwarding streams may not be updated. As a result,
the actual forwarding streams cannot be queried by "show config fwd" cmd.
The procedure is as follows:
set nbcore 4
port stop all
port config 0 dcb vt off 4 pfc on
port start all
show config fwd
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
---
app/test-pmd/testpmd.c | 6 ++++++
1 file changed, 6 insertions(+)
@@ -2678,6 +2678,12 @@ start_port(portid_t pid)
}
}
}
+ /*
+ * In some scenarios, eg, dev_configure is called again, the forwarding
+ * streams may not be updated. As a result, the actual forwarding
+ * streams cannot be queried by "show config fwd" command.
+ */
+ fwd_config_setup();
printf("Done\n");
return 0;