From: Jingjing Wu Date: Fri, 21 Nov 2014 00:46:45 +0000 (+0800) Subject: app/testpmd: print extended flow director info X-Git-Tag: spdx-start~10106 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f222e8eeab61d5477ddefd66377ab2856821923d;p=dpdk.git app/testpmd: print extended flow director info Extended fdir info is printed in rxonly fwd engine when fdir match. Signed-off-by: Jingjing Wu Acked-by: Konstantin Ananyev --- diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c index 9ad1df6c41..88b65bcc28 100644 --- a/app/test-pmd/rxonly.c +++ b/app/test-pmd/rxonly.c @@ -167,10 +167,18 @@ pkt_burst_receive(struct fwd_stream *fs) if (ol_flags & PKT_RX_RSS_HASH) { printf(" - RSS hash=0x%x", (unsigned) mb->hash.rss); printf(" - RSS queue=0x%x",(unsigned) fs->rx_queue); + } else if (ol_flags & PKT_RX_FDIR) { + printf(" - FDIR matched "); + if (ol_flags & PKT_RX_FDIR_ID) + printf("ID=0x%x", + mb->hash.fdir.hi); + else if (ol_flags & PKT_RX_FDIR_FLX) + printf("flex bytes=0x%08x %08x", + mb->hash.fdir.hi, mb->hash.fdir.lo); + else + printf("hash=0x%x ID=0x%x ", + mb->hash.fdir.hash, mb->hash.fdir.id); } - else if (ol_flags & PKT_RX_FDIR) - printf(" - FDIR hash=0x%x - FDIR id=0x%x ", - mb->hash.fdir.hash, mb->hash.fdir.id); if (ol_flags & PKT_RX_VLAN_PKT) printf(" - VLAN tci=0x%x", mb->vlan_tci); if (is_encapsulation) {