From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E56C95593 for ; Mon, 5 Feb 2018 10:59:24 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2018 01:59:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,464,1511856000"; d="scan'208";a="15062260" Received: from wuyanglong.sh.intel.com ([10.67.110.174]) by orsmga007.jf.intel.com with ESMTP; 05 Feb 2018 01:59:22 -0800 From: Yanglong Wu To: dev@dpdk.org Cc: shahafs@mellanox.com, wenzhuo.lu@intel.com, Yanglong Wu Date: Mon, 5 Feb 2018 17:56:19 +0800 Message-Id: <20180205095619.9401-1-yanglong.wu@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180205084820.5387-1-yanglong.wu@intel.com> References: <20180205084820.5387-1-yanglong.wu@intel.com> Subject: [dpdk-dev] [PATCH v4] app/testpmd: fix port DCB configuration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2018 09:59:25 -0000 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 --- 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(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 5dc8ccac5..da1d9bd3a 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -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) -- 2.11.0