From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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: , X-List-Received-Date: Wed, 26 Sep 2018 03:07:05 -0000 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 --- 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", -- 2.16.2