From d5354e89e541bdc6e21a327c852ca578d9a0ea94 Mon Sep 17 00:00:00 2001 From: Yanglong Wu Date: Mon, 5 Feb 2018 17:56:19 +0800 Subject: [PATCH] app/testpmd: fix port DCB configuration The port_conf for the DCB configuration should inherit the same configuration of the port. Fixes: 0074d02fca21 ("app/testpmd: convert to new Rx offloads API") Signed-off-by: Yanglong Wu Acked-by: Shahaf Shuler --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index d896d469a1..46dc22c944 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2349,6 +2349,9 @@ init_port_dcb_config(portid_t pid, /* Enter DCB configuration status */ dcb_config = 1; + port_conf.rxmode = rte_port->dev_conf.rxmode; + port_conf.txmode = rte_port->dev_conf.txmode; + /*set configuration of DCB in vt mode and DCB in non-vt mode*/ retval = get_eth_dcb_conf(&port_conf, dcb_mode, num_tcs, pfc_en); if (retval < 0) -- 2.20.1