Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_epair.c
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | |||||
* DPCPU area and functions. | * DPCPU area and functions. | ||||
*/ | */ | ||||
struct epair_dpcpu { | struct epair_dpcpu { | ||||
struct mtx if_epair_mtx; /* Per-CPU locking. */ | struct mtx if_epair_mtx; /* Per-CPU locking. */ | ||||
int epair_drv_flags; /* Per-CPU ``hw'' drv flags. */ | int epair_drv_flags; /* Per-CPU ``hw'' drv flags. */ | ||||
struct eid_list epair_ifp_drain_list; /* Per-CPU list of ifps with | struct eid_list epair_ifp_drain_list; /* Per-CPU list of ifps with | ||||
* data in the ifq. */ | * data in the ifq. */ | ||||
}; | }; | ||||
DPCPU_DEFINE(struct epair_dpcpu, epair_dpcpu); | DPCPU_GLOBAL_DEFINE(struct epair_dpcpu, epair_dpcpu); | ||||
static void | static void | ||||
epair_dpcpu_init(void) | epair_dpcpu_init(void) | ||||
{ | { | ||||
struct epair_dpcpu *epair_dpcpu; | struct epair_dpcpu *epair_dpcpu; | ||||
struct eid_list *s; | struct eid_list *s; | ||||
u_int cpuid; | u_int cpuid; | ||||
▲ Show 20 Lines • Show All 842 Lines • Show Last 20 Lines |