bus/fslmc: remove unused funcs and align names in QBMAN
[dpdk.git] / app / test-pmd / rxonly.c
index 9acc4c6..5ef0219 100644 (file)
@@ -56,7 +56,6 @@
 #include <rte_lcore.h>
 #include <rte_atomic.h>
 #include <rte_branch_prediction.h>
-#include <rte_memory.h>
 #include <rte_mempool.h>
 #include <rte_mbuf.h>
 #include <rte_interrupts.h>
@@ -67,6 +66,7 @@
 #include <rte_ip.h>
 #include <rte_udp.h>
 #include <rte_net.h>
+#include <rte_flow.h>
 
 #include "testpmd.h"
 
@@ -100,9 +100,7 @@ pkt_burst_receive(struct fwd_stream *fs)
        uint64_t start_tsc;
        uint64_t end_tsc;
        uint64_t core_cycles;
-#endif
 
-#ifdef RTE_TEST_PMD_RECORD_CORE_CYCLES
        start_tsc = rte_rdtsc();
 #endif
 
@@ -147,7 +145,8 @@ 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) {
+               }
+               if (ol_flags & PKT_RX_FDIR) {
                        printf(" - FDIR matched ");
                        if (ol_flags & PKT_RX_FDIR_ID)
                                printf("ID=0x%x",
@@ -229,19 +228,8 @@ pkt_burst_receive(struct fwd_stream *fs)
                }
                printf(" - Receive queue=0x%x", (unsigned) fs->rx_queue);
                printf("\n");
-               if (ol_flags != 0) {
-                       unsigned rxf;
-                       const char *name;
-
-                       for (rxf = 0; rxf < sizeof(mb->ol_flags) * 8; rxf++) {
-                               if ((ol_flags & (1ULL << rxf)) == 0)
-                                       continue;
-                               name = rte_get_rx_ol_flag_name(1ULL << rxf);
-                               if (name == NULL)
-                                       continue;
-                               printf("  %s\n", name);
-                       }
-               }
+               rte_get_rx_ol_flag_list(mb->ol_flags, buf, sizeof(buf));
+               printf("  ol_flags: %s\n", buf);
                rte_pktmbuf_free(mb);
        }