Lines Matching refs:hh
154 struct hh_cache hh; member
449 static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb) in neigh_hh_bridge() argument
454 seq = read_seqbegin(&hh->hh_lock); in neigh_hh_bridge()
456 memcpy(skb->data - hh_alen, hh->hh_data, ETH_ALEN + hh_alen - ETH_HLEN); in neigh_hh_bridge()
457 } while (read_seqretry(&hh->hh_lock, seq)); in neigh_hh_bridge()
462 static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb) in neigh_hh_output() argument
469 seq = read_seqbegin(&hh->hh_lock); in neigh_hh_output()
470 hh_len = READ_ONCE(hh->hh_len); in neigh_hh_output()
480 memcpy(skb->data - HH_DATA_MOD, hh->hh_data, in neigh_hh_output()
487 memcpy(skb->data - hh_alen, hh->hh_data, in neigh_hh_output()
491 } while (read_seqretry(&hh->hh_lock, seq)); in neigh_hh_output()
505 const struct hh_cache *hh = &n->hh; in neigh_output() local
507 if ((n->nud_state & NUD_CONNECTED) && hh->hh_len && !skip_cache) in neigh_output()
508 return neigh_hh_output(hh, skb); in neigh_output()