app/testpmd: fix port DCB configuration
authorYanglong Wu <yanglong.wu@intel.com>
Mon, 5 Feb 2018 09:56:19 +0000 (17:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 6 Feb 2018 18:08:13 +0000 (19:08 +0100)
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 <yanglong.wu@intel.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
app/test-pmd/testpmd.c

index d896d46..46dc22c 100644 (file)
@@ -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)