From: Michael Buesch <mb@bu3sch.de>
To: Jiri Benc <jbenc@suse.cz>
Cc: linville@tuxdriver.com, netdev@vger.kernel.org
Subject: [PATCH] d80211: add ieee80211_stop_queues()
Date: Wed, 23 Aug 2006 13:44:20 +0200 [thread overview]
Message-ID: <200608231344.20438.mb@bu3sch.de> (raw)
Add ieee80211_stop_queues() to stop all queues
with a single call.
I will submit a patch for bcm43xx to use this function
as soon as this got merged.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Index: wireless-dev/include/net/d80211.h
===================================================================
--- wireless-dev.orig/include/net/d80211.h 2006-08-19 18:26:05.000000000 +0200
+++ wireless-dev/include/net/d80211.h 2006-08-23 13:38:41.000000000 +0200
@@ -826,6 +826,15 @@
void ieee80211_start_queues(struct net_device *dev);
/**
+ * ieee80211_stop_queues - stop all queues
+ * @dev: pointer to $struct net_device as obtained from
+ * ieee80211_alloc_hw().
+ *
+ * Drivers should use this function instead of netif_stop_queue.
+ */
+void ieee80211_stop_queues(struct net_device *dev);
+
+/**
* ieee80211_get_mc_list_item - iteration over items in multicast list
* @dev: pointer to &struct net_device as obtained from
* ieee80211_alloc_hw().
Index: wireless-dev/net/d80211/ieee80211.c
===================================================================
--- wireless-dev.orig/net/d80211/ieee80211.c 2006-08-19 18:26:05.000000000 +0200
+++ wireless-dev/net/d80211/ieee80211.c 2006-08-23 13:41:34.000000000 +0200
@@ -4690,6 +4690,15 @@
clear_bit(IEEE80211_LINK_STATE_XOFF, &local->state[i]);
}
+void ieee80211_stop_queues(struct net_device *dev)
+{
+ struct ieee80211_local *local = dev->ieee80211_ptr;
+ int i;
+
+ for (i = 0; i < local->hw->queues; i++)
+ ieee80211_stop_queue(dev, i);
+}
+
void * ieee80211_dev_hw_data(struct net_device *dev)
{
struct ieee80211_local *local = dev->ieee80211_ptr;
@@ -4819,6 +4828,7 @@
EXPORT_SYMBOL(ieee80211_wake_queue);
EXPORT_SYMBOL(ieee80211_stop_queue);
EXPORT_SYMBOL(ieee80211_start_queues);
+EXPORT_SYMBOL(ieee80211_stop_queues);
EXPORT_SYMBOL(ieee80211_dev_hw_data);
EXPORT_SYMBOL(ieee80211_dev_stats);
EXPORT_SYMBOL(ieee80211_get_hw_conf);
--
Greetings Michael.
next reply other threads:[~2006-08-23 11:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-23 11:44 Michael Buesch [this message]
2006-08-23 19:30 ` [PATCH] d80211: add ieee80211_stop_queues() Simon Barber
2006-08-23 19:45 ` Michael Buesch
2006-08-23 19:54 ` Simon Barber
2006-08-23 20:04 ` Michael Buesch
2006-08-23 20:10 ` Simon Barber
2006-08-23 20:20 ` Michael Buesch
2006-08-23 20:32 ` Simon Barber
2006-08-23 20:57 ` Michael Buesch
2006-08-23 21:12 ` Simon Barber
2006-08-23 22:07 ` Michael Buesch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200608231344.20438.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=jbenc@suse.cz \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).