NetBSD/sys/net80211
ozaki-r 9c4cd06355 Introduce softint-based if_input
This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
2016-02-09 08:32:07 +00:00
..
CHANGES
Makefile
_ieee80211.h
files.net80211
ieee80211.c sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
ieee80211.h
ieee80211_acl.c
ieee80211_amrr.c
ieee80211_amrr.h
ieee80211_crypto.c sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
ieee80211_crypto.h
ieee80211_crypto_ccmp.c
ieee80211_crypto_none.c
ieee80211_crypto_tkip.c
ieee80211_crypto_wep.c
ieee80211_input.c Introduce softint-based if_input 2016-02-09 08:32:07 +00:00
ieee80211_ioctl.c sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
ieee80211_ioctl.h More on PR 41200: headers that declare ioctls should include sys/ioccom.h. 2015-09-06 06:00:59 +00:00
ieee80211_netbsd.c
ieee80211_netbsd.h
ieee80211_node.c sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
ieee80211_node.h
ieee80211_output.c sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
ieee80211_proto.c sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
ieee80211_proto.h
ieee80211_radiotap.h
ieee80211_rssadapt.c
ieee80211_rssadapt.h
ieee80211_sysctl.h
ieee80211_var.h
ieee80211_xauth.c