linux/net/mac80211
Johannes Berg 2a8a9a88fc [MAC80211]: avoid copying packets to interfaces that are down
David Woodhouse noticed that under some circumstances the number of slab
allocations kept growing. After looking a bit, this seemed to happen
when you had a management mode interface that was *down*.

The reason for this is that when the device is down, all management
frames get queued to the in-kernel MLME (via ieee80211_sta_rx_mgmt) but
then the sta work is invoked but doesn't run when the netif is down.
When you then bring the interface up, all such frames are freed, but if
you change the mode all of them are lost because the skb queue is
reinitialised as soon as you go back to managed mode. The skb queue is
correctly cleared when the interface is brought down, but the code
doesn't account for the fact that it may be filled while it is not up.

This patch should fix the issue by simply ignoring all interfaces that
are down when going through the RX handlers.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:48:39 -07:00
..
aes_ccm.c [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
aes_ccm.h [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
debugfs_key.c [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
debugfs_key.h [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
debugfs_netdev.c [PATCH] mac80211: use do { } while (0) for multi-line macros 2007-08-06 15:38:48 -04:00
debugfs_netdev.h [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
debugfs_sta.c [PATCH] mac80211: Fix sparse error for sta_last_seq_ctrl_read 2007-08-06 15:39:01 -04:00
debugfs_sta.h [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
debugfs.c [PATCH] mac80211: fix debugfs tx power reduction output 2007-06-11 17:47:48 -04:00
debugfs.h [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
hostapd_ioctl.h [PATCH] mac80211: kill PRISM2_PARAM_CLEAR_KEYS 2007-07-12 16:07:25 -04:00
ieee80211_cfg.c [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
ieee80211_cfg.h [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
ieee80211_common.h [PATCH] mac80211: remove ieee80211_set_aid_for_sta 2007-07-12 16:07:25 -04:00
ieee80211_i.h [MAC80211]: implement ERP info change notifications 2007-10-10 16:47:39 -07:00
ieee80211_iface.c [MAC80211]: improve locking of sta_info related structures 2007-10-10 16:47:37 -07:00
ieee80211_ioctl.c [MAC80211]: Add SIOCGIWTXPOWER routine 2007-10-10 16:47:42 -07:00
ieee80211_key.h [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
ieee80211_led.c [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
ieee80211_led.h [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
ieee80211_rate.c [MAC80211]: move some rate control functions out of ieee80211.c 2007-10-10 16:47:35 -07:00
ieee80211_rate.h [MAC80211]: move some rate control functions out of ieee80211.c 2007-10-10 16:47:35 -07:00
ieee80211_sta.c [MAC80211]: use more GFP_KERNEL instead of GFP_ATOMIC 2007-10-10 16:47:40 -07:00
ieee80211.c [MAC80211]: avoid copying packets to interfaces that are down 2007-10-10 16:48:39 -07:00
Kconfig [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
key.c [MAC80211]: split out some key functions from ieee80211.c 2007-10-10 16:47:34 -07:00
Makefile [MAC80211]: introduce util.c 2007-10-10 16:47:36 -07:00
michael.c [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
michael.h [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
rc80211_simple.c [PATCH] mac80211: fix initialisation when built-in 2007-09-25 22:55:45 -07:00
regdomain.c [PATCH] mac80211: regdomain.c needs to include ieee80211_i.h 2007-07-17 21:50:20 -04:00
rx.c [MAC80211]: avoid copying packets to interfaces that are down 2007-10-10 16:48:39 -07:00
sta_info.c [MAC80211]: improve locking of sta_info related structures 2007-10-10 16:47:37 -07:00
sta_info.h [MAC80211]: improve locking of sta_info related structures 2007-10-10 16:47:37 -07:00
tkip.c [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
tkip.h [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
tx.c [NET]: DIV_ROUND_UP cleanup (part two) 2007-10-10 16:48:37 -07:00
util.c [MAC80211]: improved short preamble handling 2007-10-10 16:47:38 -07:00
wep.c [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
wep.h [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
wme.c [MAC80211]: move QoS rx handlers into rx.c 2007-10-10 16:47:30 -07:00
wme.h [MAC80211]: move QoS rx handlers into rx.c 2007-10-10 16:47:30 -07:00
wpa.c [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00
wpa.h [MAC80211]: Add mac80211 wireless stack. 2007-05-05 11:45:53 -07:00