summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHyong Youb Kim <hyonkim@cisco.com>2018-09-25 20:06:17 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:48 +0200
commit597177163b851ae365f5c0113c448fae83370f99 (patch)
tree413d272ab92891f3b476862190667ef7d9d39141 /app
parent3378383dceab2ac8048aa1c52682a3da8a19f651 (diff)
downloaddpdk-597177163b851ae365f5c0113c448fae83370f99.zip
dpdk-597177163b851ae365f5c0113c448fae83370f99.tar.gz
dpdk-597177163b851ae365f5c0113c448fae83370f99.tar.xz
app/testpmd: check Rx VLAN offload flag to print VLAN TCI
Since the following commit, PKT_RX_VLAN indicates the presence of mbuf's vlan_tci, not PKT_RX_VLAN_STRIPPED. Fixes: 380a7aab1ae2 ("mbuf: rename deprecated VLAN flags") Cc: stable@dpdk.org Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com> Reviewed-by: John Daley <johndale@cisco.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/rxonly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c
index a93d806..e8d2266 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",