30 #ifndef CLIB_MARCH_VARIANT 44 #define foreach_nsim_tx_error \ 45 _(TRANSMITTED, "Packets transmitted") 49 #define _(sym,str) NSIM_TX_ERROR_##sym, 55 #ifndef CLIB_MARCH_VARIANT 57 #define _(sym,string) string, 94 while (n_tx_packets < n_burst && ep->tx_time <= now)
101 from[0] = ep->buffer_index;
102 next[0] = ep->output_next_index;
116 NSIM_TX_ERROR_TRANSMITTED, n_tx_packets);
131 #ifndef CLIB_MARCH_VARIANT 135 .name =
"nsim-wheel",
138 .state = VLIB_NODE_STATE_DISABLED,
static f64 vlib_time_now(vlib_main_t *vm)
#define VLIB_NODE_FN(node)
#define NSIM_MAX_TX_BURST
max packets in a tx burst
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)
static_always_inline void vlib_buffer_enqueue_to_next(vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, u16 *nexts, uword count)
nsim_wheel_entry_t * entries
vlib_main_t vlib_node_runtime_t * node
nsim_wheel_t ** wheel_by_thread
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
#define VLIB_NODE_FLAG_TRACE
#define CLIB_CACHE_LINE_BYTES