[dpdk-dev,v4] app/testpmd: fix port DCB configuration
Checks
Commit Message
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>
---
v2:
changing patch accoding to review
---
v3:
changing patch accoding to comments
---
v4:
changing patch accoding to comments
---
app/test-pmd/testpmd.c | 3 +++
1 file changed, 3 insertions(+)
Comments
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yanglong Wu
> Sent: Monday, February 5, 2018 5:56 PM
> To: dev@dpdk.org
> Cc: shahafs@mellanox.com; Lu, Wenzhuo; Wu, Yanglong
> Subject: [dpdk-dev] [PATCH v4] 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 <yanglong.wu@intel.com>
>
> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Applied to dpdk-next-net-intel, thanks!
/Helin
@@ -2324,6 +2324,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)