diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-02 07:13:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-02 22:43:41 +0100 |
commit | bdf53c58490bb52e17636eca8ad18d2c38ec3cb8 (patch) | |
tree | 01c3bae0fbaca8d1ba308d527ac2b1900ffb3b13 /net/decnet/dn_neigh.c | |
parent | arp: Kill arp_find (diff) | |
download | linux-bdf53c58490bb52e17636eca8ad18d2c38ec3cb8.tar.xz linux-bdf53c58490bb52e17636eca8ad18d2c38ec3cb8.zip |
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 'net/decnet/dn_neigh.c')
-rw-r--r-- | net/decnet/dn_neigh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index 7ca7c3143da3..f123c6c6748c 100644 --- a/net/decnet/dn_neigh.c +++ b/net/decnet/dn_neigh.c @@ -97,6 +97,7 @@ struct neigh_table dn_neigh_table = { .family = PF_DECnet, .entry_size = NEIGH_ENTRY_SIZE(sizeof(struct dn_neigh)), .key_len = sizeof(__le16), + .protocol = cpu_to_be16(ETH_P_DNA_RT), .hash = dn_neigh_hash, .constructor = dn_neigh_construct, .id = "dn_neigh_cache", |