summaryrefslogtreecommitdiffstats
path: root/include/linux/inetdevice.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-18 12:42:28 -0800
committerDavid S. Miller <davem@davemloft.net>2011-02-18 12:42:28 -0800
commitfd23c3b31107e2fc483301ee923d8a1db14e53f4 (patch)
treea9f6628d11b135660418c1ba5edb23c3c75cc0e9 /include/linux/inetdevice.h
parent1cbb1a61d59b7552e1e3fde485d8af5699fe16e0 (diff)
downloadblackbird-op-linux-fd23c3b31107e2fc483301ee923d8a1db14e53f4.tar.gz
blackbird-op-linux-fd23c3b31107e2fc483301ee923d8a1db14e53f4.zip
ipv4: Add hash table of interface addresses.
This will be used to optimize __ip_dev_find() and friends. With help from Eric Dumazet. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inetdevice.h')
-rw-r--r--include/linux/inetdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h
index ae8fdc54e0c0..5f8146695b7f 100644
--- a/include/linux/inetdevice.h
+++ b/include/linux/inetdevice.h
@@ -144,6 +144,7 @@ static inline void ipv4_devconf_setall(struct in_device *in_dev)
#define IN_DEV_ARP_NOTIFY(in_dev) IN_DEV_MAXCONF((in_dev), ARP_NOTIFY)
struct in_ifaddr {
+ struct hlist_node hash;
struct in_ifaddr *ifa_next;
struct in_device *ifa_dev;
struct rcu_head rcu_head;
OpenPOWER on IntegriCloud