]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/rxonly.c
app/testpmd: add qinq stripping and insertion
[dpdk.git] / app / test-pmd / rxonly.c
index b8e35ab600f43f9518a6b755aee61f46454d232e..4a9f86efd555b6b1c86edbb42b2f855a94e740ba 100644 (file)
@@ -160,6 +160,9 @@ pkt_burst_receive(struct fwd_stream *fs)
                }
                if (ol_flags & PKT_RX_VLAN_PKT)
                        printf(" - VLAN tci=0x%x", mb->vlan_tci);
+               if (ol_flags & PKT_RX_QINQ_PKT)
+                       printf(" - QinQ VLAN tci=0x%x, VLAN tci outer=0x%x",
+                                       mb->vlan_tci, mb->vlan_tci_outer);
                if (is_encapsulation) {
                        struct ipv4_hdr *ipv4_hdr;
                        struct ipv6_hdr *ipv6_hdr;