build error:
.../event/sw/sw_evdev_worker.c: In function ‘sw_event_release’:
.../event/sw/sw_evdev_worker.c:52:3: error: unknown field ‘op’ specified
in initializer
Fixed by updating struct initialization.
Fixes:
656af9180014 ("event/sw: add worker core functions")
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
RTE_SET_USED(index);
/* create drop message */
- struct rte_event ev = {
- .op = sw_qe_flag_map[RTE_EVENT_OP_RELEASE],
- };
+ struct rte_event ev;
+ ev.op = sw_qe_flag_map[RTE_EVENT_OP_RELEASE];
uint16_t free_count;
qe_ring_enqueue_burst(p->rx_worker_ring, &ev, 1, &free_count);