Skip to content

Commit

Permalink
examples/performance-thread: init timer subsystem
Browse files Browse the repository at this point in the history
[ upstream commit b58b3c9 ]

The timer subsystem should be initialized in the l3fwd-thread app before
the L-thread subsystem can be used.

Fixes: d48415e ("examples/performance-thread: add l3fwd-thread app")

Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
  • Loading branch information
egcarril authored and kevintraynor committed Aug 26, 2019
1 parent 2ad789e commit 7cb5915
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/performance-thread/l3fwd-thread/main.c
Expand Up @@ -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>
Expand Down Expand Up @@ -3486,6 +3487,8 @@ main(int argc, char **argv)
argc -= ret;
argv += ret;

rte_timer_subsystem_init();

/* 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] = ETHER_LOCAL_ADMIN_ADDR +
Expand Down

0 comments on commit 7cb5915

Please sign in to comment.