iPXE
Data Structures | Defines | Typedefs | Functions
netif.h File Reference
#include "ring.h"
#include "../grant_table.h"

Go to the source code of this file.

Data Structures

struct  netif_tx_request
struct  netif_extra_info
struct  netif_tx_response
struct  netif_rx_request
struct  netif_rx_response

Defines

#define XEN_NETIF_NR_SLOTS_MIN   18
#define _NETTXF_csum_blank   (0)
#define NETTXF_csum_blank   (1U<<_NETTXF_csum_blank)
#define _NETTXF_data_validated   (1)
#define NETTXF_data_validated   (1U<<_NETTXF_data_validated)
#define _NETTXF_more_data   (2)
#define NETTXF_more_data   (1U<<_NETTXF_more_data)
#define _NETTXF_extra_info   (3)
#define NETTXF_extra_info   (1U<<_NETTXF_extra_info)
#define XEN_NETIF_MAX_TX_SIZE   0xFFFF
#define XEN_NETIF_EXTRA_TYPE_NONE   (0) /* Never used - invalid */
#define XEN_NETIF_EXTRA_TYPE_GSO   (1) /* u.gso */
#define XEN_NETIF_EXTRA_TYPE_MCAST_ADD   (2) /* u.mcast */
#define XEN_NETIF_EXTRA_TYPE_MCAST_DEL   (3) /* u.mcast */
#define XEN_NETIF_EXTRA_TYPE_MAX   (4)
#define _XEN_NETIF_EXTRA_FLAG_MORE   (0)
#define XEN_NETIF_EXTRA_FLAG_MORE   (1U<<_XEN_NETIF_EXTRA_FLAG_MORE)
#define XEN_NETIF_GSO_TYPE_NONE   (0)
#define XEN_NETIF_GSO_TYPE_TCPV4   (1)
#define XEN_NETIF_GSO_TYPE_TCPV6   (2)
#define _NETRXF_data_validated   (0)
#define NETRXF_data_validated   (1U<<_NETRXF_data_validated)
#define _NETRXF_csum_blank   (1)
#define NETRXF_csum_blank   (1U<<_NETRXF_csum_blank)
#define _NETRXF_more_data   (2)
#define NETRXF_more_data   (1U<<_NETRXF_more_data)
#define _NETRXF_extra_info   (3)
#define NETRXF_extra_info   (1U<<_NETRXF_extra_info)
#define NETIF_RSP_DROPPED   -2
#define NETIF_RSP_ERROR   -1
#define NETIF_RSP_OKAY   0
#define NETIF_RSP_NULL   1

Typedefs

typedef struct netif_tx_request netif_tx_request_t
typedef struct netif_extra_info netif_extra_info_t
typedef struct netif_tx_response netif_tx_response_t
typedef struct netif_rx_request netif_rx_request_t
typedef struct netif_rx_response netif_rx_response_t

Functions

 FILE_LICENCE (MIT)
 DEFINE_RING_TYPES (netif_tx, struct netif_tx_request, struct netif_tx_response)
 DEFINE_RING_TYPES (netif_rx, struct netif_rx_request, struct netif_rx_response)

Define Documentation

#define XEN_NETIF_NR_SLOTS_MIN   18

Definition at line 51 of file netif.h.

#define _NETTXF_csum_blank   (0)

Definition at line 152 of file netif.h.

#define NETTXF_csum_blank   (1U<<_NETTXF_csum_blank)

Definition at line 153 of file netif.h.

#define _NETTXF_data_validated   (1)

Definition at line 156 of file netif.h.

#define NETTXF_data_validated   (1U<<_NETTXF_data_validated)

Definition at line 157 of file netif.h.

Referenced by netfront_transmit().

#define _NETTXF_more_data   (2)

Definition at line 160 of file netif.h.

#define NETTXF_more_data   (1U<<_NETTXF_more_data)

Definition at line 161 of file netif.h.

#define _NETTXF_extra_info   (3)

Definition at line 164 of file netif.h.

#define NETTXF_extra_info   (1U<<_NETTXF_extra_info)

Definition at line 165 of file netif.h.

#define XEN_NETIF_MAX_TX_SIZE   0xFFFF

Definition at line 167 of file netif.h.

#define XEN_NETIF_EXTRA_TYPE_NONE   (0) /* Never used - invalid */

Definition at line 178 of file netif.h.

#define XEN_NETIF_EXTRA_TYPE_GSO   (1) /* u.gso */

Definition at line 179 of file netif.h.

#define XEN_NETIF_EXTRA_TYPE_MCAST_ADD   (2) /* u.mcast */

Definition at line 180 of file netif.h.

#define XEN_NETIF_EXTRA_TYPE_MCAST_DEL   (3) /* u.mcast */

Definition at line 181 of file netif.h.

#define XEN_NETIF_EXTRA_TYPE_MAX   (4)

Definition at line 182 of file netif.h.

#define _XEN_NETIF_EXTRA_FLAG_MORE   (0)

Definition at line 185 of file netif.h.

#define XEN_NETIF_EXTRA_FLAG_MORE   (1U<<_XEN_NETIF_EXTRA_FLAG_MORE)

Definition at line 186 of file netif.h.

#define XEN_NETIF_GSO_TYPE_NONE   (0)

Definition at line 189 of file netif.h.

#define XEN_NETIF_GSO_TYPE_TCPV4   (1)

Definition at line 190 of file netif.h.

#define XEN_NETIF_GSO_TYPE_TCPV6   (2)

Definition at line 191 of file netif.h.

#define _NETRXF_data_validated   (0)

Definition at line 261 of file netif.h.

#define NETRXF_data_validated   (1U<<_NETRXF_data_validated)

Definition at line 262 of file netif.h.

#define _NETRXF_csum_blank   (1)

Definition at line 265 of file netif.h.

#define NETRXF_csum_blank   (1U<<_NETRXF_csum_blank)

Definition at line 266 of file netif.h.

#define _NETRXF_more_data   (2)

Definition at line 269 of file netif.h.

#define NETRXF_more_data   (1U<<_NETRXF_more_data)

Definition at line 270 of file netif.h.

#define _NETRXF_extra_info   (3)

Definition at line 273 of file netif.h.

#define NETRXF_extra_info   (1U<<_NETRXF_extra_info)

Definition at line 274 of file netif.h.

#define NETIF_RSP_DROPPED   -2

Definition at line 291 of file netif.h.

#define NETIF_RSP_ERROR   -1

Definition at line 292 of file netif.h.

#define NETIF_RSP_OKAY   0

Definition at line 293 of file netif.h.

Referenced by netfront_poll_tx().

#define NETIF_RSP_NULL   1

Definition at line 295 of file netif.h.


Typedef Documentation

Definition at line 175 of file netif.h.

Definition at line 246 of file netif.h.

Definition at line 252 of file netif.h.

Definition at line 258 of file netif.h.

Definition at line 282 of file netif.h.


Function Documentation

FILE_LICENCE ( MIT  )
DEFINE_RING_TYPES ( netif_tx  ,
struct netif_tx_request  ,
struct netif_tx_response   
)
DEFINE_RING_TYPES ( netif_rx  ,
struct netif_rx_request  ,
struct netif_rx_response   
)