iPXE
Data Fields
netfront_ring Struct Reference

A netfront descriptor ring. More...

#include <netfront.h>

Data Fields

union {
   netif_tx_sring_t *   tx
 Transmit shared ring.
   netif_rx_sring_t *   rx
 Receive shared ring.
   void *   raw
 Raw pointer.
sring
 Shared ring.
const char * ref_key
 Shared ring grant reference key.
grant_ref_t ref
 Shared ring grant reference.
size_t count
 Maximum number of used descriptors.
struct io_buffer ** iobufs
 I/O buffers, indexed by buffer ID.
grant_ref_trefs
 I/O buffer grant references, indexed by buffer ID.
uint8_tids
 Buffer ID ring.
unsigned int id_prod
 Buffer ID ring producer counter.
unsigned int id_cons
 Buffer ID ring consumer counter.

Detailed Description

A netfront descriptor ring.

Definition at line 49 of file netfront.h.


Field Documentation

netif_tx_sring_t* netfront_ring::tx

Transmit shared ring.

Definition at line 53 of file netfront.h.

netif_rx_sring_t* netfront_ring::rx

Receive shared ring.

Definition at line 55 of file netfront.h.

Raw pointer.

Definition at line 57 of file netfront.h.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

union { ... } netfront_ring::sring

Shared ring.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

Shared ring grant reference key.

Definition at line 60 of file netfront.h.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

Shared ring grant reference.

Definition at line 62 of file netfront.h.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

Maximum number of used descriptors.

Definition at line 65 of file netfront.h.

Referenced by netfront_create_ring(), netfront_destroy_ring(), netfront_pull(), and netfront_push().

I/O buffers, indexed by buffer ID.

Definition at line 67 of file netfront.h.

Referenced by netfront_create_ring(), netfront_pull(), and netfront_push().

I/O buffer grant references, indexed by buffer ID.

Definition at line 69 of file netfront.h.

Referenced by netfront_pull(), and netfront_push().

Buffer ID ring.

Definition at line 72 of file netfront.h.

Referenced by netfront_create_ring(), netfront_destroy_ring(), netfront_pull(), and netfront_push().

unsigned int netfront_ring::id_prod

Buffer ID ring producer counter.

Definition at line 74 of file netfront.h.

Referenced by netfront_create_ring(), and netfront_push().

unsigned int netfront_ring::id_cons

Buffer ID ring consumer counter.

Definition at line 76 of file netfront.h.

Referenced by netfront_create_ring(), netfront_destroy_ring(), and netfront_pull().


The documentation for this struct was generated from the following file: