FreeBSD kernel /amd64 XEN device code
|
Data Fields | |
RING_IDX | car |
RING_IDX | cdr |
netif_extra_info_t | extra |
uint16_t | size |
uint16_t | car_size |
uint16_t | flags |
uint16_t | list_len |
uint8_t | error |
Representation of a xennet packet. Simplified version of a packet as stored in the Xen tx ring. Applicable to both RX and TX packets
RING_IDX xnb_pkt::car |
Array index of the first data-bearing (eg, not extra info) entry for this packet
Definition at line 206 of file netback.c.
Referenced by xnb_dump_pkt(), xnb_mbufc2pkt(), xnb_mbufc2pkt_1cluster(), xnb_mbufc2pkt_2short(), xnb_mbufc2pkt_extra(), xnb_mbufc2pkt_long(), xnb_mbufc2pkt_short(), xnb_ring2pkt(), xnb_ring2pkt_1req(), xnb_ring2pkt_2req(), xnb_ring2pkt_3req(), xnb_ring2pkt_extra(), xnb_rxpkt2gnttab(), xnb_txpkt2gnttab(), and xnb_txpkt2rsp().
uint16_t xnb_pkt::car_size |
The size of the first entry's data in bytes
Definition at line 228 of file netback.c.
Referenced by xnb_dump_pkt(), xnb_mbufc2pkt(), xnb_mbufc2pkt_1cluster(), xnb_mbufc2pkt_2short(), xnb_mbufc2pkt_extra(), xnb_mbufc2pkt_long(), xnb_mbufc2pkt_short(), xnb_ring2pkt(), xnb_ring2pkt_1req(), xnb_ring2pkt_2req(), xnb_ring2pkt_3req(), xnb_ring2pkt_extra(), and xnb_txpkt2gnttab().
RING_IDX xnb_pkt::cdr |
Array index of the second data-bearing entry for this packet. Invalid if the packet has only one data-bearing entry. If the packet has more than two data-bearing entries, then the second through the last will be sequential modulo the ring size
Definition at line 214 of file netback.c.
Referenced by xnb_dump_pkt(), xnb_mbufc2pkt(), xnb_mbufc2pkt_2short(), xnb_mbufc2pkt_extra(), xnb_mbufc2pkt_long(), xnb_ring2pkt(), xnb_ring2pkt_2req(), xnb_ring2pkt_3req(), xnb_ring2pkt_extra(), xnb_ring2pkt_wraps(), xnb_rxpkt2gnttab(), and xnb_txpkt2gnttab().
uint8_t xnb_pkt::error |
There was an error processing the packet
Definition at line 244 of file netback.c.
Referenced by xnb_dump_pkt(), xnb_pkt_invalidate(), xnb_pkt_is_valid(), xnb_pkt_validate(), and xnb_send().
netif_extra_info_t xnb_pkt::extra |
Optional extra info. Only valid if flags contains NETTXF_extra_info. Note that extra.type will always be XEN_NETIF_EXTRA_TYPE_GSO. Currently, no known netfront or netback driver will ever set XEN_NETIF_EXTRA_TYPE_MCAST_*
Definition at line 222 of file netback.c.
Referenced by xnb_mbufc2pkt(), xnb_mbufc2pkt_extra(), xnb_ring2pkt(), xnb_ring2pkt_extra(), and xnb_rxpkt2rsp().
uint16_t xnb_pkt::flags |
Either NETTXF_ or NETRXF_ flags. Note that the flag values are not the same for TX and RX packets
Definition at line 234 of file netback.c.
Referenced by xnb_dump_pkt(), xnb_mbufc2pkt(), xnb_mbufc2pkt_1cluster(), xnb_mbufc2pkt_extra(), xnb_mbufc2pkt_long(), xnb_mbufc2pkt_short(), xnb_pkt2mbufc(), xnb_ring2pkt(), xnb_ring2pkt_1req(), xnb_ring2pkt_2req(), xnb_ring2pkt_3req(), xnb_ring2pkt_extra(), xnb_rxpkt2rsp(), and xnb_txpkt2rsp().
uint16_t xnb_pkt::list_len |
The number of valid data-bearing entries (either netif_tx_request's or netif_rx_response's) in the packet. If this is 0, it means the entire packet is invalid.
Definition at line 241 of file netback.c.
Referenced by xnb_dump_pkt(), xnb_mbufc2pkt(), xnb_mbufc2pkt_1cluster(), xnb_mbufc2pkt_2short(), xnb_mbufc2pkt_short(), xnb_pkt2mbufc_empty(), xnb_ring2pkt(), xnb_ring2pkt_1req(), xnb_ring2pkt_2req(), xnb_ring2pkt_3req(), xnb_ring2pkt_extra(), xnb_ring2pkt_wraps(), xnb_txpkt2gnttab_empty(), xnb_txpkt2rsp(), and xnb_txpkt2rsp_emptypkt().
uint16_t xnb_pkt::size |
Size of entire packet in bytes.
Definition at line 225 of file netback.c.
Referenced by xnb_dump_pkt(), xnb_mbufc2pkt(), xnb_mbufc2pkt_1cluster(), xnb_mbufc2pkt_2short(), xnb_mbufc2pkt_extra(), xnb_mbufc2pkt_long(), xnb_mbufc2pkt_nospace(), xnb_mbufc2pkt_short(), xnb_pkt2mbufc(), xnb_pkt2mbufc_empty(), xnb_ring2pkt(), xnb_ring2pkt_1req(), xnb_ring2pkt_2req(), xnb_ring2pkt_3req(), xnb_ring2pkt_extra(), xnb_rxpkt2gnttab(), xnb_rxpkt2gnttab_2req(), xnb_rxpkt2gnttab_short(), xnb_rxpkt2rsp_2slots(), xnb_rxpkt2rsp_copyerror(), xnb_rxpkt2rsp_extra(), xnb_rxpkt2rsp_short(), xnb_txpkt2gnttab(), and xnb_txpkt2gnttab_empty().