]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: introduce refcount for queue_stop_reasons
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 13 Jun 2014 13:30:05 +0000 (16:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jun 2014 12:22:25 +0000 (14:22 +0200)
commitd2eb3ab6c0f9c96acd978d17bc33a209c806d0de
tree15cc5be2e90930f76e6f2188bd825c216f9810fa
parentdc06343a72d252361f68c40af62dfeacbbf3d0a3
mac80211: introduce refcount for queue_stop_reasons

Sometimes different vifs may be stopping the queues for the same
reason (e.g. when several interfaces are performing a channel switch).
Instead of using a bitmask for the reasons, use an integer that holds
a refcount instead.  In order to keep it backwards compatible,
introduce a boolean in some functions that tell us whether the queue
stopping should be refcounted or not.  For now, use not refcounted for
all calls to keep it functionally the same as before.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-tx.c
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/main.c
net/mac80211/mlme.c
net/mac80211/offchannel.c
net/mac80211/pm.c
net/mac80211/tx.c
net/mac80211/util.c