Skip to content

Commit

Permalink
netdevice: make initial group visible to userspace
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vlad Dogaru authored and David S. Miller committed Mar 3, 2011
1 parent 5bfa787 commit 23b4116
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 23b4116

Please sign in to comment.