]> git.baikalelectronics.ru Git - kernel.git/commit
net: Embed hh_cache inside of struct neighbour.
authorDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 14:53:20 +0000 (07:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 14:53:20 +0000 (07:53 -0700)
commit3a0716157ba2939f861dc328acbe32820ae8b7c8
treec59d5adcf9bb226db6f602c5078106052524cfea
parent616dbb236de7769c13d4ea9836bdd59ee8d57efe
net: Embed hh_cache inside of struct neighbour.

Now that there is a one-to-one correspondance between neighbour
and hh_cache entries, we no longer need:

1) dynamic allocation
2) attachment to dst->hh
3) refcounting

Initialization of the hh_cache entry is indicated by hh_len
being non-zero, and such initialization is always done with
the neighbour's lock held as a writer.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/dst.h
include/net/neighbour.h
net/bridge/br_netfilter.c
net/core/dst.c
net/core/neighbour.c
net/ipv4/ip_output.c
net/ipv4/route.c
net/ipv6/ip6_output.c