Changeset View
Changeset View
Standalone View
Standalone View
sys/net/iflib.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | typedef struct if_pkt_info { | ||||
uint32_t ipi_csum_flags; /* packet checksum flags */ | uint32_t ipi_csum_flags; /* packet checksum flags */ | ||||
uint16_t ipi_tso_segsz; /* tso segment size */ | uint16_t ipi_tso_segsz; /* tso segment size */ | ||||
uint16_t ipi_vtag; /* VLAN tag */ | uint16_t ipi_vtag; /* VLAN tag */ | ||||
uint16_t ipi_etype; /* ether header type */ | uint16_t ipi_etype; /* ether header type */ | ||||
uint8_t ipi_tcp_hflags; /* tcp header flags */ | uint8_t ipi_tcp_hflags; /* tcp header flags */ | ||||
uint8_t ipi_mflags; /* packet mbuf flags */ | uint8_t ipi_mflags; /* packet mbuf flags */ | ||||
uint32_t ipi_tcp_seq; /* tcp seqno */ | uint32_t ipi_tcp_seq; /* tcp seqno */ | ||||
uint32_t __spare0__; | |||||
/* Tunneled packets offload handling */ | |||||
uint16_t ipi_outer_etype; /* outer ether header length */ | |||||
uint8_t ipi_outer_ip_hlen; /* outer ip header length */ | |||||
uint8_t ipi_tun_hlen; /* tunnel headers length */ | |||||
} *if_pkt_info_t; | } *if_pkt_info_t; | ||||
typedef struct if_irq { | typedef struct if_irq { | ||||
struct resource *ii_res; | struct resource *ii_res; | ||||
int __spare0__; | int __spare0__; | ||||
void *ii_tag; | void *ii_tag; | ||||
} *if_irq_t; | } *if_irq_t; | ||||
▲ Show 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* These enum values are used in iflib_needs_restart to indicate to iflib | * These enum values are used in iflib_needs_restart to indicate to iflib | ||||
* functions whether or not the interface needs restarting when certain events | * functions whether or not the interface needs restarting when certain events | ||||
* happen. | * happen. | ||||
*/ | */ | ||||
enum iflib_restart_event { | enum iflib_restart_event { | ||||
IFLIB_RESTART_VLAN_CONFIG, | IFLIB_RESTART_VLAN_CONFIG, | ||||
IFLIB_RESTART_VXLAN_CONFIG, | |||||
}; | }; | ||||
/* | /* | ||||
* field accessors | * field accessors | ||||
*/ | */ | ||||
void *iflib_get_softc(if_ctx_t ctx); | void *iflib_get_softc(if_ctx_t ctx); | ||||
device_t iflib_get_dev(if_ctx_t ctx); | device_t iflib_get_dev(if_ctx_t ctx); | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |