#
ff046a6c |
| 03-Jun-2006 |
Sam Leffler <sam@FreeBSD.org> |
add missed calls to bpf_peers_present
|
#
16d878cc |
| 02-Jun-2006 |
Christian S.J. Peron <csjp@FreeBSD.org> |
Fix the following bpf(4) race condition which can result in a panic:
(1) bpf peer attaches to interface netif0 (2) Packet is received by netif0 (3) ifp->if_bpf pointer is checked and handed off t
Fix the following bpf(4) race condition which can result in a panic:
(1) bpf peer attaches to interface netif0 (2) Packet is received by netif0 (3) ifp->if_bpf pointer is checked and handed off to bpf (4) bpf peer detaches from netif0 resulting in ifp->if_bpf being initialized to NULL. (5) ifp->if_bpf is dereferenced by bpf machinery (6) Kaboom
This race condition likely explains the various different kernel panics reported around sending SIGINT to tcpdump or dhclient processes. But really this race can result in kernel panics anywhere you have frequent bpf attach and detach operations with high packet per second load.
Summary of changes:
- Remove the bpf interface's "driverp" member - When we attach bpf interfaces, we now set the ifp->if_bpf member to the bpf interface structure. Once this is done, ifp->if_bpf should never be NULL. [1] - Introduce bpf_peers_present function, an inline operation which will do a lockless read bpf peer list associated with the interface. It should be noted that the bpf code will pickup the bpf_interface lock before adding or removing bpf peers. This should serialize the access to the bpf descriptor list, removing the race. - Expose the bpf_if structure in bpf.h so that the bpf_peers_present function can use it. This also removes the struct bpf_if; hack that was there. - Adjust all consumers of the raw if_bpf structure to use bpf_peers_present
Now what happens is:
(1) Packet is received by netif0 (2) Check to see if bpf descriptor list is empty (3) Pickup the bpf interface lock (4) Hand packet off to process
From the attach/detach side:
(1) Pickup the bpf interface lock (2) Add/remove from bpf descriptor list
Now that we are storing the bpf interface structure with the ifnet, there is is no need to walk the bpf interface list to locate the correct bpf interface. We now simply look up the interface, and initialize the pointer. This has a nice side effect of changing a bpf interface attach operation from O(N) (where N is the number of bpf interfaces), to O(1).
[1] From now on, we can no longer check ifp->if_bpf to tell us whether or not we have any bpf peers that might be interested in receiving packets.
In collaboration with: sam@ MFC after: 1 month
show more ...
|
Revision tags: release/5.5.0_cvs, release/5.5.0 |
|
#
c40da00c |
| 16-May-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Since DELAY() was moved, most <machine/clock.h> #includes have been unnecessary.
|
Revision tags: release/6.1.0_cvs, release/6.1.0 |
|
#
c10b1400 |
| 27-Apr-2006 |
Max Laier <mlaier@FreeBSD.org> |
MFp4: reworked iwi-driver
Changelog towards if_iwi.c 1.26 (some changes have been committed separately in the mean time):
- add led support - add firmware loading on demand - auto-restart firmware
MFp4: reworked iwi-driver
Changelog towards if_iwi.c 1.26 (some changes have been committed separately in the mean time):
- add led support - add firmware loading on demand - auto-restart firmware when it crashes - serialize operations sent to the firmware to reduce firmware crashes - add power save operation support - remove incorrect specification of tx power control capability - add radio on/off switch support
- improve net80211 state machine operation - recognize and handle beacon miss - handle authentication and association failures better - add shared key authentication - fix ibss mode (many changes) - fix wme (many changes) - correct radiotap support (many changes) - correct bus dma setup of s/g - correct various locking issues - fix monitor mode - fix scanning (many changes) - recover from wedged scan requests - respect active channel list - eliminate cases where interface was marked down on error - don't treat parity errors as fatal - reclaim mgt frames immediately from tx queue - correct interrupt handling, ack early (from NetBSD) - fix short/long preamble handling
Committed with RELENG_6 compat #if's, should compile in RELENG_6. Requires net/iwi-firmware-kmod to function.
Much work done by: sam Tested by: many (freebsd-net), ume, luigi MFC after: 4 weeks
show more ...
|
#
1b996b2a |
| 12-Mar-2006 |
Damien Bergamini <damien@FreeBSD.org> |
o don't use '-' characters in firmware names o call firmware_put() early to release the firmware module o on firmware panics or watchdog timeouts, schedule a task to reinitialize the interface (we
o don't use '-' characters in firmware names o call firmware_put() early to release the firmware module o on firmware panics or watchdog timeouts, schedule a task to reinitialize the interface (we may sleep in iwi_init()) o discard oversized rx frames
show more ...
|
#
4f5d0153 |
| 11-Mar-2006 |
Damien Bergamini <damien@FreeBSD.org> |
add dependency with firmware module. pointed out by Martin Wilke.
|
#
0ec2de62 |
| 11-Mar-2006 |
Ruslan Ermilov <ru@FreeBSD.org> |
Fix build.
|
#
389fb0b4 |
| 10-Mar-2006 |
Damien Bergamini <damien@FreeBSD.org> |
o acknowledge interrupts early in the interrupt handler o stop processing interrupts after a firmware fatal error or a radio kill o clarify the possible values for the 'antenna' sysctl. o by default,
o acknowledge interrupts early in the interrupt handler o stop processing interrupts after a firmware fatal error or a radio kill o clarify the possible values for the 'antenna' sysctl. o by default, let the firmware do antenna diversity. the firmware will periodically switch to another antenna to evaluate the signal quality.
show more ...
|
#
bef9529d |
| 10-Mar-2006 |
Damien Bergamini <damien@FreeBSD.org> |
make use of the firmware(9) subsystem. use intel's firmware version 3.0 layout.
|
#
c56adf0a |
| 10-Mar-2006 |
Damien Bergamini <damien@FreeBSD.org> |
fix the locking.
|
#
b197bba5 |
| 20-Feb-2006 |
Sam Leffler <sam@FreeBSD.org> |
correct check for whether wpa is enabled
MFC after: 3 days
|
#
84f55b29 |
| 29-Jan-2006 |
Damien Bergamini <damien@FreeBSD.org> |
o Re-enable scatter/gather o Change MEM_READ_1/MEM_READ_4 into macros (move them to if_iwireg.h) o Add support for association LED o Silently discard f/w notifications that are unknown (fixes spuriou
o Re-enable scatter/gather o Change MEM_READ_1/MEM_READ_4 into macros (move them to if_iwireg.h) o Add support for association LED o Silently discard f/w notifications that are unknown (fixes spurious "unknown notification 15" in logs with latest firmware) o Fix scanning of 5GHz channels
show more ...
|
#
a4f5ae8a |
| 20-Nov-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Don't use /etc/firmware. /etc is for configuration files only. Use /boot to store firmware files instead.
Requested by: Daniel O'Connor, Scott Long
|
#
e1000b36 |
| 20-Nov-2005 |
Scott Long <scottl@FreeBSD.org> |
Fix compile on 64-bit platforms.
|
#
408146ed |
| 19-Nov-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Load firmware images directly from the filesystem (looks into /etc/firmware directory by default) without requiring the user to load them by hand using e.g iwicontrol. Get rid of the old ioctl crud.
Load firmware images directly from the filesystem (looks into /etc/firmware directory by default) without requiring the user to load them by hand using e.g iwicontrol. Get rid of the old ioctl crud. Updated iwi-firmware port coming soon.
Obtained from: OpenBSD
show more ...
|
#
81e6343c |
| 13-Nov-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Fix endianness issues. iwi now works on big endian architectures too.
Obtained from: NetBSD (scw@) MFC after: 2 weeks
|
#
46c34436 |
| 13-Nov-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Be more robust when handling Rx interrupts. If we can't allocate and DMA map a new mbuf, just discard the received frame and reuse the old mbuf. This should fix kernel panics on high network traffic
Be more robust when handling Rx interrupts. If we can't allocate and DMA map a new mbuf, just discard the received frame and reuse the old mbuf. This should fix kernel panics on high network traffic.
Obtained from: NetBSD (joerg@) MFC after: 2 weeks
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
71016a24 |
| 07-Oct-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Fixes my previous commit (rev 1.20)
MFC after: 1 day
|
#
80e1a712 |
| 06-Oct-2005 |
Damien Bergamini <damien@FreeBSD.org> |
o Use firmware extended scan command; this one doesn't crash when scanning the 5GHz band. o Enable 802.11a channels scanning for 2915ABG adapters. o Fix a typo (negociated->negotiated).
With hints
o Use firmware extended scan command; this one doesn't crash when scanning the 5GHz band. o Enable 802.11a channels scanning for 2915ABG adapters. o Fix a typo (negociated->negotiated).
With hints from NetBSD.
MFC after: 2 days
show more ...
|
#
28a38073 |
| 19-Sep-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Use phk's kernel unit number allocator to associate unique ids to neighbors in an IBSS. Store ids directly into ieee80211_node's instead of managing our own private association table. Idea and code
Use phk's kernel unit number allocator to associate unique ids to neighbors in an IBSS. Store ids directly into ieee80211_node's instead of managing our own private association table. Idea and code by Sam Leffler.
Submitted by: sam MFC after: 5 days
show more ...
|
#
7e47fb02 |
| 19-Sep-2005 |
Damien Bergamini <damien@FreeBSD.org> |
It's safe to wait for command completion in iwi_config().
MFC after: 5 days
|
#
ad4f426e |
| 19-Sep-2005 |
Warner Losh <imp@FreeBSD.org> |
Make sure that we call if_free(ifp) after bus_teardown_intr. Since we could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in th
Make sure that we call if_free(ifp) after bus_teardown_intr. Since we could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call.
show more ...
|
#
0b74a285 |
| 17-Sep-2005 |
Damien Bergamini <damien@FreeBSD.org> |
o Add initial bits for IBSS support. o Allow association with APs that do not broadcast SSID (with hints from Nick Hudson and Hajimu Umemoto). o IFQ_DRV_PREPEND mbuf when h/w ring is full so it can
o Add initial bits for IBSS support. o Allow association with APs that do not broadcast SSID (with hints from Nick Hudson and Hajimu Umemoto). o IFQ_DRV_PREPEND mbuf when h/w ring is full so it can be sent later. o Increment if_oerrors when appropriate. o Did some cleanup while I'm here.
MFC after: 1 day
show more ...
|
#
fb533d55 |
| 21-Aug-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Enhanced WME (802.11e) support.
|
#
ec01dc2b |
| 20-Aug-2005 |
Damien Bergamini <damien@FreeBSD.org> |
Add some necessary bits for upcoming 802.11e support: o management of multiple tx rings (up to 4) o setting of WME IE in association requests
Some features are still missing though, like the possibi
Add some necessary bits for upcoming 802.11e support: o management of multiple tx rings (up to 4) o setting of WME IE in association requests
Some features are still missing though, like the possibility to override the default cwmin/cwmax/asfn values of each tx queues.
show more ...
|