[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091110220004.GT21704@kvack.org>
Date: Tue, 10 Nov 2009 17:00:04 -0500
From: Benjamin LaHaise <bcrl@...et.ca>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH] add HAVE_UNREGISTER_NETDEV_QUEUE define for out-of-tree modules
Hello,
I have an out of tree network driver (GPL'd) that would like to make use of
the unregister_netdevice_queue interface for bulk unregister of devices.
Add a #define HAVE_UNREGISTER_NETDEV_QUEUE to allow the source to detect
that the kernel supports this.
-ben
Signed-off-by: Benjamin LaHaise <bcrl@...et.ca
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 465add6..f9e8e0e 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1117,6 +1117,7 @@ extern int dev_close(struct net_device *dev);
extern void dev_disable_lro(struct net_device *dev);
extern int dev_queue_xmit(struct sk_buff *skb);
extern int register_netdevice(struct net_device *dev);
+#define HAVE_UNREGISTER_NETDEV_QUEUE
extern void unregister_netdevice_queue(struct net_device *dev,
struct list_head *head);
extern void unregister_netdevice_many(struct list_head *head);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists