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