examples/performance-thread: init timer subsystem
[dpdk.git] / examples / performance-thread / l3fwd-thread / main.c
index 0121c71..49d9424 100644 (file)
@@ -40,6 +40,7 @@
 #include <rte_udp.h>
 #include <rte_string_fns.h>
 #include <rte_pause.h>
+#include <rte_timer.h>
 
 #include <cmdline_parse.h>
 #include <cmdline_parse_etheraddr.h>
@@ -3497,6 +3498,10 @@ main(int argc, char **argv)
        argc -= ret;
        argv += ret;
 
+       ret = rte_timer_subsystem_init();
+       if (ret < 0)
+               rte_exit(EXIT_FAILURE, "Failed to initialize timer subystem\n");
+
        /* pre-init dst MACs for all ports to 02:00:00:00:00:xx */
        for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++) {
                dest_eth_addr[portid] = RTE_ETHER_LOCAL_ADMIN_ADDR +