aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorVlad Dogaru <ddvlad@rosedu.org>2011-02-26 17:39:12 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-03 00:55:52 -0500
commit23b41168fc942a4a041325a04ecc1bd17d031a3e (patch)
tree69be018c5d2eae4538f622541d016346e331657e /include/linux/netdevice.h
parent5bfa787fb2c29cce0722500f90df29e049ff07fc (diff)
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>
Diffstat (limited to 'include/linux/netdevice.h')
-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;
75#define NET_RX_SUCCESS 0 /* keep 'em coming, baby */ 75#define NET_RX_SUCCESS 0 /* keep 'em coming, baby */
76#define NET_RX_DROP 1 /* packet dropped */ 76#define NET_RX_DROP 1 /* packet dropped */
77 77
78/* Initial net device group. All devices belong to group 0 by default. */
79#define INIT_NETDEV_GROUP 0
80
81/* 78/*
82 * Transmit return codes: transmit return codes originate from three different 79 * Transmit return codes: transmit return codes originate from three different
83 * namespaces: 80 * namespaces:
@@ -141,6 +138,9 @@ static inline bool dev_xmit_complete(int rc)
141 138
142#define MAX_ADDR_LEN 32 /* Largest hardware address length */ 139#define MAX_ADDR_LEN 32 /* Largest hardware address length */
143 140
141/* Initial net device group. All devices belong to group 0 by default. */
142#define INIT_NETDEV_GROUP 0
143
144#ifdef __KERNEL__ 144#ifdef __KERNEL__
145/* 145/*
146 * Compute the worst case header length according to the protocols 146 * Compute the worst case header length according to the protocols