29 #ifndef CLIB_MARCH_VARIANT 43 #define foreach_nsim_tx_error \ 44 _(TRANSMITTED, "Packets transmitted") 48 #define _(sym,str) NSIM_TX_ERROR_##sym, 54 #ifndef CLIB_MARCH_VARIANT 56 #define _(sym,string) string, 93 while (n_tx_packets < n_burst && ep->tx_time <= now)
100 from[0] = ep->buffer_index;
101 next[0] = ep->output_next_index;
115 NSIM_TX_ERROR_TRANSMITTED, n_tx_packets);
130 #ifndef CLIB_MARCH_VARIANT 134 .name =
"nsim-wheel",
137 .state = VLIB_NODE_STATE_DISABLED,
u16 nexts[VLIB_FRAME_SIZE]
static f64 vlib_time_now(vlib_main_t *vm)
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
#define VLIB_NODE_FN(node)
description fragment has unexpected format
vlib_buffer_enqueue_to_next(vm, node, from,(u16 *) nexts, frame->n_vectors)
#define NSIM_MAX_TX_BURST
max packets in a tx burst
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u32 node_index
Node index.
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
#define VLIB_REGISTER_NODE(x,...)
#define CLIB_PREFETCH(addr, size, type)
nsim_wheel_entry_t * entries
nsim_wheel_t ** wheel_by_thread
vlib_main_t vlib_node_runtime_t * node
#define VLIB_NODE_FLAG_TRACE
#define CLIB_CACHE_LINE_BYTES