X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl2fwd-event%2Fl2fwd_common.h;h=939221d45ab7bb921ec086a50fb421edae05b614;hb=fdadccfa3fb97acf06641a5fa823b05de1cca0bb;hp=a4e17ab97fa2b3268bcaf5a6ee0c939b75610c5b;hpb=1b2143aa681ae2412da98a076e46c477fafb8588;p=dpdk.git diff --git a/examples/l2fwd-event/l2fwd_common.h b/examples/l2fwd-event/l2fwd_common.h index a4e17ab97f..939221d45a 100644 --- a/examples/l2fwd-event/l2fwd_common.h +++ b/examples/l2fwd-event/l2fwd_common.h @@ -69,6 +69,7 @@ struct l2fwd_resources { uint8_t sched_type; uint8_t mac_updating; uint8_t rx_queue_per_lcore; + bool port_pairs; uint16_t nb_rxd; uint16_t nb_txd; uint32_t enabled_port_mask; @@ -114,6 +115,7 @@ l2fwd_get_rsrc(void) memset(rsrc, 0, sizeof(struct l2fwd_resources)); rsrc->mac_updating = true; + rsrc->event_mode = true; rsrc->rx_queue_per_lcore = 1; rsrc->sched_type = RTE_SCHED_TYPE_ATOMIC; rsrc->timer_period = 10 * rte_get_timer_hz();