From: Hyong Youb Kim Date: Wed, 26 Sep 2018 03:06:17 +0000 (-0700) Subject: app/testpmd: check Rx VLAN offload flag to print VLAN TCI X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=597177163b851ae365f5c0113c448fae83370f99;p=dpdk.git 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 Reviewed-by: John Daley Reviewed-by: Ferruh Yigit --- diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c index a93d806127..e8d226624a 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",