Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/netmap/netmap_kern.h
Show First 20 Lines • Show All 734 Lines • ▼ Show 20 Lines | #define NAF_BUSY (1U<<31) /* the adapter is used internally and | ||||
int si_users[NR_TXRX]; | int si_users[NR_TXRX]; | ||||
void *pdev; /* used to store pci device */ | void *pdev; /* used to store pci device */ | ||||
/* copy of if_qflush and if_transmit pointers, to intercept | /* copy of if_qflush and if_transmit pointers, to intercept | ||||
* packets from the network stack when netmap is active. | * packets from the network stack when netmap is active. | ||||
*/ | */ | ||||
int (*if_transmit)(struct ifnet *, struct mbuf *); | int (*if_transmit)(struct ifnet *, struct mbuf *); | ||||
int cap_restore; | |||||
/* copy of if_input for netmap_send_up() */ | /* copy of if_input for netmap_send_up() */ | ||||
void (*if_input)(struct ifnet *, struct mbuf *); | void (*if_input)(struct ifnet *, struct mbuf *); | ||||
/* Back reference to the parent ifnet struct. Used for | /* Back reference to the parent ifnet struct. Used for | ||||
* hardware ports (emulated netmap included). */ | * hardware ports (emulated netmap included). */ | ||||
struct ifnet *ifp; /* adapter is ifp->if_softc */ | struct ifnet *ifp; /* adapter is ifp->if_softc */ | ||||
▲ Show 20 Lines • Show All 1,608 Lines • Show Last 20 Lines |