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>
This commit is contained in:
@ -108,7 +108,7 @@ struct neighbour {
|
||||
__u8 dead;
|
||||
seqlock_t ha_lock;
|
||||
unsigned char ha[ALIGN(MAX_ADDR_LEN, sizeof(unsigned long))];
|
||||
struct hh_cache *hh;
|
||||
struct hh_cache hh;
|
||||
int (*output)(struct sk_buff *skb);
|
||||
const struct neigh_ops *ops;
|
||||
struct rcu_head rcu;
|
||||
|
Reference in New Issue
Block a user