From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yanglong Wu Subject: [PATCH v2] app/testpmd:vlan filter fail Date: Mon, 5 Feb 2018 10:33:57 +0800 Message-ID: <20180205023357.104418-1-yanglong.wu@intel.com> References: <20180202050950.64400-1-yanglong.wu@intel.com> Cc: shahafs@mellanox.com, wenzhuo.lu@intel.com, Yanglong Wu To: dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2093B1B16C for ; Mon, 5 Feb 2018 03:36:13 +0100 (CET) In-Reply-To: <20180202050950.64400-1-yanglong.wu@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This bug is caused by miss port configuration. The port_conf for the DCB configuration should inherit the same configuration of the port. Fix:0074d02fc(convert to new Rx offloads API) Signed-off-by: Yanglong Wu --- v2: changing patch accoding to the review --- 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