Lines Matching defs:netmap_ring
259 struct netmap_ring { struct
265 const int64_t buf_ofs;
266 const uint32_t num_slots; /* number of slots in the ring. */
267 const uint32_t nr_buf_size;
268 const uint16_t ringid;
269 const uint16_t dir; /* 0: tx, 1: rx */
271 uint32_t head; /* (u) first user slot */
272 uint32_t cur; /* (u) wakeup point */
273 uint32_t tail; /* (k) first kernel slot */
275 uint32_t flags;
277 struct timeval ts; /* (k) time of last *sync() */
281 uint8_t __attribute__((__aligned__(NM_CACHE_ALIGN))) sem[128];
283 uint8_t __declspec(align(NM_CACHE_ALIGN)) sem[128];
287 struct netmap_slot slot[0]; /* array of slots. */