Lines Matching defs:netmap_ring
284 struct netmap_ring { struct
290 const int64_t buf_ofs;
291 const uint32_t num_slots; /* number of slots in the ring. */
292 const uint32_t nr_buf_size;
293 const uint16_t ringid;
294 const uint16_t dir; /* 0: tx, 1: rx */
296 uint32_t head; /* (u) first user slot */
297 uint32_t cur; /* (u) wakeup point */
298 uint32_t tail; /* (k) first kernel slot */
300 uint32_t flags;
302 struct timeval ts; /* (k) time of last *sync() */
309 const uint64_t offset_mask;
315 const uint64_t buf_align;
319 uint8_t __attribute__((__aligned__(NM_CACHE_ALIGN))) sem[128];
321 uint8_t __declspec(align(NM_CACHE_ALIGN)) sem[128];
325 struct netmap_slot slot[0]; /* array of slots. */