summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Dogaru <ddvlad@rosedu.org>2011-02-26 23:39:12 +0100
committerDavid S. Miller <davem@davemloft.net>2011-03-03 06:55:52 +0100
commit23b41168fc942a4a041325a04ecc1bd17d031a3e (patch)
tree69be018c5d2eae4538f622541d016346e331657e
parentipv4: ip_route_output_key() is better as an inline. (diff)
downloadlinux-23b41168fc942a4a041325a04ecc1bd17d031a3e.tar.xz
linux-23b41168fc942a4a041325a04ecc1bd17d031a3e.zip
netdevice: make initial group visible to userspace
INIT_NETDEV_GROUP is needed by userspace, move it outside __KERNEL__ guards. Signed-off-by: Vlad Dogaru <ddvlad@rosedu.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/netdevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index ffe56c16df8a..8be4056ad251 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -75,9 +75,6 @@ struct wireless_dev;
#define NET_RX_SUCCESS 0 /* keep 'em coming, baby */
#define NET_RX_DROP 1 /* packet dropped */
-/* Initial net device group. All devices belong to group 0 by default. */
-#define INIT_NETDEV_GROUP 0
-
/*
* Transmit return codes: transmit return codes originate from three different
* namespaces:
@@ -141,6 +138,9 @@ static inline bool dev_xmit_complete(int rc)
#define MAX_ADDR_LEN 32 /* Largest hardware address length */
+/* Initial net device group. All devices belong to group 0 by default. */
+#define INIT_NETDEV_GROUP 0
+
#ifdef __KERNEL__
/*
* Compute the worst case header length according to the protocols