Lines Matching defs:netmap_ring
279 struct netmap_ring { struct
285 const int64_t buf_ofs;
286 const uint32_t num_slots; /* number of slots in the ring. */
287 const uint32_t nr_buf_size;
288 const uint16_t ringid;
289 const uint16_t dir; /* 0: tx, 1: rx */
291 uint32_t head; /* (u) first user slot */
292 uint32_t cur; /* (u) wakeup point */
293 uint32_t tail; /* (k) first kernel slot */
295 uint32_t flags;
297 struct timeval ts; /* (k) time of last *sync() */
301 uint8_t __attribute__((__aligned__(NM_CACHE_ALIGN))) sem[128];
303 uint8_t __declspec(align(NM_CACHE_ALIGN)) sem[128];
307 struct netmap_slot slot[0]; /* array of slots. */