neigh: Don't require dst in neigh_hh_init
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Mar 2015 06:13:22 +0000 (00:13 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 21:43:41 +0000 (16:43 -0500)
commitbdf53c58490bb52e17636eca8ad18d2c38ec3cb8
tree01c3bae0fbaca8d1ba308d527ac2b1900ffb3b13
parent59b2af26b9f674749216fd3bfba19d842de3671c
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>
include/net/neighbour.h
net/core/neighbour.c
net/decnet/dn_neigh.c
net/ipv4/arp.c
net/ipv6/ndisc.c