Lines Matching refs:hh
152 struct hh_cache hh; member
436 static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb) in neigh_hh_bridge() argument
441 seq = read_seqbegin(&hh->hh_lock); in neigh_hh_bridge()
443 memcpy(skb->data - hh_alen, hh->hh_data, ETH_ALEN + hh_alen - ETH_HLEN); in neigh_hh_bridge()
444 } while (read_seqretry(&hh->hh_lock, seq)); in neigh_hh_bridge()
449 static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb) in neigh_hh_output() argument
455 seq = read_seqbegin(&hh->hh_lock); in neigh_hh_output()
456 hh_len = hh->hh_len; in neigh_hh_output()
459 memcpy(skb->data - HH_DATA_MOD, hh->hh_data, HH_DATA_MOD); in neigh_hh_output()
463 memcpy(skb->data - hh_alen, hh->hh_data, hh_alen); in neigh_hh_output()
465 } while (read_seqretry(&hh->hh_lock, seq)); in neigh_hh_output()