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. More...
 
   netif_rx_sring_t *   rx
 Receive shared ring. More...
 
   void *   raw
 Raw pointer. More...
 
sring
 Shared ring. More...
 
const char * ref_key
 Shared ring grant reference key. More...
 
grant_ref_t ref
 Shared ring grant reference. More...
 
size_t count
 Maximum number of used descriptors. More...
 
struct io_buffer ** iobufs
 I/O buffers, indexed by buffer ID. More...
 
grant_ref_trefs
 I/O buffer grant references, indexed by buffer ID. More...
 
uint8_tids
 Buffer ID ring. More...
 
unsigned int id_prod
 Buffer ID ring producer counter. More...
 
unsigned int id_cons
 Buffer ID ring consumer counter. More...
 

Detailed Description

A netfront descriptor ring.

Definition at line 49 of file netfront.h.

Field Documentation

◆ tx

netif_tx_sring_t* netfront_ring::tx

Transmit shared ring.

Definition at line 53 of file netfront.h.

◆ rx

netif_rx_sring_t* netfront_ring::rx

Receive shared ring.

Definition at line 55 of file netfront.h.

◆ raw

void* netfront_ring::raw

Raw pointer.

Definition at line 57 of file netfront.h.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

◆ sring

union { ... } netfront_ring::sring

Shared ring.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

◆ ref_key

const char* netfront_ring::ref_key

Shared ring grant reference key.

Definition at line 60 of file netfront.h.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

◆ ref

grant_ref_t netfront_ring::ref

Shared ring grant reference.

Definition at line 62 of file netfront.h.

Referenced by netfront_create_ring(), and netfront_destroy_ring().

◆ count

size_t netfront_ring::count

Maximum number of used descriptors.

Definition at line 65 of file netfront.h.

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

◆ iobufs

struct io_buffer** netfront_ring::iobufs

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().

◆ refs

grant_ref_t* netfront_ring::refs

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

Definition at line 69 of file netfront.h.

Referenced by netfront_pull(), and netfront_push().

◆ ids

uint8_t* netfront_ring::ids

Buffer ID ring.

Definition at line 72 of file netfront.h.

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

◆ id_prod

unsigned int netfront_ring::id_prod

Buffer ID ring producer counter.

Definition at line 74 of file netfront.h.

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

◆ id_cons

unsigned int netfront_ring::id_cons

Buffer ID ring consumer counter.

Definition at line 76 of file netfront.h.

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


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