Commit 23b41168 authored by Vlad Dogaru's avatar Vlad Dogaru Committed by David S. Miller

netdevice: make initial group visible to userspace

INIT_NETDEV_GROUP is needed by userspace, move it outside __KERNEL__
guards.
Signed-off-by: default avatarVlad Dogaru <ddvlad@rosedu.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5bfa787f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment