Searched refs:hsr_ethhdr (Results 1 – 2 of 2) sorted by relevance
94 struct hsr_ethhdr { struct177 struct hsr_ethhdr *hsr_ethhdr; in hsr_get_skb_sequence_nr() local179 hsr_ethhdr = (struct hsr_ethhdr *) skb_mac_header(skb); in hsr_get_skb_sequence_nr()180 return ntohs(hsr_ethhdr->hsr_tag.sequence_nr); in hsr_get_skb_sequence_nr()
115 struct hsr_ethhdr *hsr_ethhdr; in hsr_fill_tag() local128 hsr_ethhdr = (struct hsr_ethhdr *) skb_mac_header(skb); in hsr_fill_tag()130 set_hsr_tag_path(&hsr_ethhdr->hsr_tag, lane_id); in hsr_fill_tag()131 set_hsr_tag_LSDU_size(&hsr_ethhdr->hsr_tag, lsdu_size); in hsr_fill_tag()132 hsr_ethhdr->hsr_tag.sequence_nr = htons(frame->sequence_nr); in hsr_fill_tag()133 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()134 hsr_ethhdr->ethhdr.h_proto = htons(ETH_P_PRP); in hsr_fill_tag()