Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66401
b: refs/heads/master
c: a050c33
h: refs/heads/master
i:
  66399: 06f34e4
v: v3
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Oct 10, 2007
1 parent 06e6952 commit 51d8647
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abf07acbb9f122218095d0d221e0f949160ccc37
refs/heads/master: a050c33f4a4d5babaf94a8ba6ae7a200135240b3
35 changes: 17 additions & 18 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
#include <linux/dmaengine.h>
#include <linux/workqueue.h>

struct net;
#include <net/net_namespace.h>

struct vlan_group;
struct ethtool_ops;
struct netpoll_info;
Expand Down Expand Up @@ -753,23 +754,21 @@ extern rwlock_t dev_base_lock; /* Device list lock */
list_for_each_entry_continue(d, &(net)->dev_base_head, dev_list)
#define net_device_entry(lh) list_entry(lh, struct net_device, dev_list)

#define next_net_device(d) \
({ \
struct net_device *dev = d; \
struct list_head *lh; \
struct net *net; \
\
net = dev->nd_net; \
lh = dev->dev_list.next; \
lh == &net->dev_base_head ? NULL : net_device_entry(lh); \
})

#define first_net_device(N) \
({ \
struct net *NET = (N); \
list_empty(&NET->dev_base_head) ? NULL : \
net_device_entry(NET->dev_base_head.next); \
})
static inline struct net_device *next_net_device(struct net_device *dev)
{
struct list_head *lh;
struct net *net;

net = dev->nd_net;
lh = dev->dev_list.next;
return lh == &net->dev_base_head ? NULL : net_device_entry(lh);
}

static inline struct net_device *first_net_device(struct net *net)
{
return list_empty(&net->dev_base_head) ? NULL :
net_device_entry(net->dev_base_head.next);
}

extern int netdev_boot_setup_check(struct net_device *dev);
extern unsigned long netdev_boot_base(const char *prefix, int unit);
Expand Down

0 comments on commit 51d8647

Please sign in to comment.