From: Huisong Li Date: Wed, 28 Apr 2021 06:40:45 +0000 (+0800) Subject: app/testpmd: add forwarding configuration to DCB config X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4b6b06d2ebecf1b33acb1725f4f53c35ce3e77d5;p=dpdk.git app/testpmd: add forwarding configuration to DCB config This patch adds fwd_config_setup() at the end of cmd_config_dcb_parsed() to update "cur_fwd_config", so that the actual forwarding streams can be queried by the "show config fwd" cmd. Signed-off-by: Huisong Li Signed-off-by: Lijun Ou Acked-by: Xiaoyun Li --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 3dc9c30019..0268b18f95 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -3315,13 +3315,13 @@ cmd_config_dcb_parsed(void *parsed_result, ret = init_port_dcb_config(port_id, DCB_ENABLED, (enum rte_eth_nb_tcs)res->num_tcs, pfc_en); - - if (ret != 0) { printf("Cannot initialize network ports.\n"); return; } + fwd_config_setup(); + cmd_reconfig_device_queue(port_id, 1, 1); }