Changeset View
Changeset View
Standalone View
Standalone View
sys/net80211/ieee80211_superg.c
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
#define ETHER_HEADER_COPY(dst, src) \ | #define ETHER_HEADER_COPY(dst, src) \ | ||||
memcpy(dst, src, sizeof(struct ether_header)) | memcpy(dst, src, sizeof(struct ether_header)) | ||||
static int ieee80211_ffppsmin = 2; /* pps threshold for ff aggregation */ | static int ieee80211_ffppsmin = 2; /* pps threshold for ff aggregation */ | ||||
SYSCTL_INT(_net_wlan, OID_AUTO, ffppsmin, CTLFLAG_RW, | SYSCTL_INT(_net_wlan, OID_AUTO, ffppsmin, CTLFLAG_RW, | ||||
&ieee80211_ffppsmin, 0, "min packet rate before fast-frame staging"); | &ieee80211_ffppsmin, 0, "min packet rate before fast-frame staging"); | ||||
static int ieee80211_ffagemax = -1; /* max time frames held on stage q */ | static int ieee80211_ffagemax = -1; /* max time frames held on stage q */ | ||||
SYSCTL_PROC(_net_wlan, OID_AUTO, ffagemax, CTLTYPE_INT | CTLFLAG_RW, | SYSCTL_PROC(_net_wlan, OID_AUTO, ffagemax, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
&ieee80211_ffagemax, 0, ieee80211_sysctl_msecs_ticks, "I", | &ieee80211_ffagemax, 0, ieee80211_sysctl_msecs_ticks, "I", | ||||
"max hold time for fast-frame staging (ms)"); | "max hold time for fast-frame staging (ms)"); | ||||
static void | static void | ||||
ff_age_all(void *arg, int npending) | ff_age_all(void *arg, int npending) | ||||
{ | { | ||||
struct ieee80211com *ic = arg; | struct ieee80211com *ic = arg; | ||||
/* XXX cache timer value somewhere (racy) */ | /* XXX cache timer value somewhere (racy) */ | ||||
ieee80211_ff_age_all(ic, ieee80211_ffagemax + 1); | ieee80211_ff_age_all(ic, ieee80211_ffagemax + 1); | ||||
▲ Show 20 Lines • Show All 962 Lines • Show Last 20 Lines |