app/testpmd: add command to print representor info
[dpdk.git] / examples / l3fwd / main.c
index 7441305..518fefe 100644 (file)
@@ -24,7 +24,6 @@
 #include <rte_memcpy.h>
 #include <rte_eal.h>
 #include <rte_launch.h>
-#include <rte_atomic.h>
 #include <rte_cycles.h>
 #include <rte_prefetch.h>
 #include <rte_lcore.h>
@@ -1041,6 +1040,10 @@ l3fwd_poll_resource_setup(void)
 
                local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
                        dev_info.flow_type_rss_offloads;
+
+               if (dev_info.max_rx_queues == 1)
+                       local_port_conf.rxmode.mq_mode = ETH_MQ_RX_NONE;
+
                if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
                                port_conf.rx_adv_conf.rss_conf.rss_hf) {
                        printf("Port %u modified RSS hash function based on hardware support,"
@@ -1405,6 +1408,10 @@ main(int argc, char **argv)
                        printf(" Done\n");
                }
        }
+
+       /* clean up the EAL */
+       rte_eal_cleanup();
+
        printf("Bye...\n");
 
        return ret;