aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-03-02 01:13:22 -0500
committerDavid S. Miller <davem@davemloft.net>2015-03-02 16:43:41 -0500
commitbdf53c58490bb52e17636eca8ad18d2c38ec3cb8 (patch)
tree01c3bae0fbaca8d1ba308d527ac2b1900ffb3b13 /include/net
parent59b2af26b9f674749216fd3bfba19d842de3671c (diff)
neigh: Don't require dst in neigh_hh_init
- Add protocol to neigh_tbl so that dst->ops->protocol is not needed - Acquire the device from neigh->dev This results in a neigh_hh_init that will cache the samve values regardless of the packets flowing through it. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/neighbour.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index bc66babb5f27..9f912e4d4232 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -193,6 +193,7 @@ struct neigh_table {
193 int family; 193 int family;
194 int entry_size; 194 int entry_size;
195 int key_len; 195 int key_len;
196 __be16 protocol;
196 __u32 (*hash)(const void *pkey, 197 __u32 (*hash)(const void *pkey,
197 const struct net_device *dev, 198 const struct net_device *dev,
198 __u32 *hash_rnd); 199 __u32 *hash_rnd);