From patchwork Wed Sep 26 03:06:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "John Daley (johndale)" X-Patchwork-Id: 45350 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7DA4B5F24; Wed, 26 Sep 2018 05:07:07 +0200 (CEST) Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) by dpdk.org (Postfix) with ESMTP id 615875B2E for ; Wed, 26 Sep 2018 05:07:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=975; q=dns/txt; s=iport; t=1537931225; x=1539140825; h=from:to:cc:subject:date:message-id; bh=iKehc5rgN/tZPnvMEtN+2CIt3/EhRLUQhQ3AxrjS7yc=; b=B6P5NDluZb7rD0+fGasBa3JG5wHmDxKEI1up4w77EqEqgpOLeGbNp1Yx K1Yh+eZ5hgnXrBpZJHYjsJSRXDrlav1cWQKtYFI3lOcSR9GyuYw4n2jtP 87koV68/lX+M4kuU6zIG1z8IU0ZxTcUPrp/HAsJrnKEr6gGL9C3K59gAZ Q=; X-IronPort-AV: E=Sophos;i="5.54,304,1534809600"; d="scan'208";a="446988368" Received: from alln-core-9.cisco.com ([173.36.13.129]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2018 03:07:04 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-9.cisco.com (8.15.2/8.15.2) with ESMTP id w8Q374dE007902; Wed, 26 Sep 2018 03:07:04 GMT Received: by cisco.com (Postfix, from userid 392789) id 3455620F2001; Tue, 25 Sep 2018 20:07:04 -0700 (PDT) From: John Daley To: wenzhuo.lu@intel.com, jingjing.wu@intel.com, bernard.iremonger@intel.com Cc: olivier.matz@6wind.com, dev@dpdk.org, Hyong Youb Kim Date: Tue, 25 Sep 2018 20:06:17 -0700 Message-Id: <20180926030617.6702-1-johndale@cisco.com> X-Mailer: git-send-email 2.16.2 X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: alln-core-9.cisco.com Subject: [dpdk-dev] [PATCH] app/testpmd: check Rx VLAN offload flag to print VLAN TCI 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hyong Youb Kim Since the following commit, PKT_RX_VLAN indicates the presence of mbuf's vlan_tci, not PKT_RX_VLAN_STRIPPED. commit 380a7aab1ae2 ("mbuf: rename deprecated VLAN flags") Cc: olivier.matz@6wind.com Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley Reviewed-by: Ferruh Yigit --- app/test-pmd/rxonly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c index a93d80612..e8d226624 100644 --- a/app/test-pmd/rxonly.c +++ b/app/test-pmd/rxonly.c @@ -130,7 +130,7 @@ pkt_burst_receive(struct fwd_stream *fs) } if (ol_flags & PKT_RX_TIMESTAMP) printf(" - timestamp %"PRIu64" ", mb->timestamp); - if (ol_flags & PKT_RX_VLAN_STRIPPED) + if (ol_flags & PKT_RX_VLAN) printf(" - VLAN tci=0x%x", mb->vlan_tci); if (ol_flags & PKT_RX_QINQ_STRIPPED) printf(" - QinQ VLAN tci=0x%x, VLAN tci outer=0x%x",