summaryrefslogtreecommitdiff
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2004-02-05 21:39:44 -0800
committerStephen Hemminger <shemminger@osdl.org>2004-02-05 21:39:44 -0800
commit6434c04175e058429430e2064d3a0ce112ce45ad (patch)
tree4001117bad47dcd300748c89f9ea6fa9ef76d177 /include/linux/netdevice.h
parentfa13a7b8fd68f4c00fc8c6905261b50a4733d8c3 (diff)
[NET]: Hash netdevices by ifindex for faster lookup.
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 11723ab7e2c5..1a77c3caf115 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -377,6 +377,8 @@ struct net_device
struct list_head todo_list;
/* device name hash chain */
struct hlist_node name_hlist;
+ /* device index hash chain */
+ struct hlist_node index_hlist;
/* register/unregister state machine */
enum { NETREG_UNINITIALIZED=0,