mbuf: dump outer VLAN
Enable printing of the outer VLAN if flags indicate it is present. Cc: stable@dpdk.org Signed-off-by: Ben Magistro <koncept1@gmail.com> Reviewed-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
eeab353b79
commit
4d75f3fcde
@ -674,6 +674,9 @@ rte_pktmbuf_dump(FILE *f, const struct rte_mbuf *m, unsigned dump_len)
|
||||
fprintf(f, " pkt_len=%u, ol_flags=%#"PRIx64", nb_segs=%u, port=%u",
|
||||
m->pkt_len, m->ol_flags, m->nb_segs, m->port);
|
||||
|
||||
if (m->ol_flags & (RTE_MBUF_F_RX_QINQ | RTE_MBUF_F_TX_QINQ))
|
||||
fprintf(f, ", vlan_tci_outer=%u", m->vlan_tci_outer);
|
||||
|
||||
if (m->ol_flags & (RTE_MBUF_F_RX_VLAN | RTE_MBUF_F_TX_VLAN))
|
||||
fprintf(f, ", vlan_tci=%u", m->vlan_tci);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user