27 f64 timeout = 3153600000.0 ;
28 uword event_type, *event_data = 0;
40 timeout = 3153600000.0;
67 clib_warning (
"BUG: unhandled event type %d", event_type);
78 .name =
"virtio-send-interrupt-process",
static f64 vlib_process_wait_for_event_or_clock(vlib_main_t *vm, f64 dt)
Suspend a cooperative multi-tasking thread Waits for an event, or for the indicated number of seconds...
vnet_main_t * vnet_get_main(void)
#define pool_foreach(VAR, POOL)
Iterate through pool.
#define VIRTIO_EVENT_START_TIMER
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
static uword virtio_send_interrupt_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
static uword vlib_process_get_events(vlib_main_t *vm, uword **data_vector)
Return the first event type which has occurred and a vector of per-event data of that type...
vlib_node_registration_t virtio_send_interrupt_node
(constructor) VLIB_REGISTER_NODE (virtio_send_interrupt_node)
static_always_inline void vnet_device_input_set_interrupt_pending(vnet_main_t *vnm, u32 hw_if_index, u16 queue_id)
virtio_vring_t * rxq_vrings
#define VLIB_REGISTER_NODE(x,...)
#define clib_warning(format, args...)
virtio_main_t virtio_main
#define RX_QUEUE_ACCESS(X)
#define vec_foreach(var, vec)
Vector iterator.
#define VIRTIO_EVENT_STOP_TIMER