Lines Matching refs:hsr_ethhdr
194 static void hsr_set_path_id(struct hsr_ethhdr *hsr_ethhdr, in hsr_set_path_id() argument
204 set_hsr_tag_path(&hsr_ethhdr->hsr_tag, path_id); in hsr_set_path_id()
211 struct hsr_ethhdr *hsr_ethhdr; in hsr_fill_tag() local
222 hsr_ethhdr = (struct hsr_ethhdr *)skb_mac_header(skb); in hsr_fill_tag()
224 hsr_set_path_id(hsr_ethhdr, port); in hsr_fill_tag()
225 set_hsr_tag_LSDU_size(&hsr_ethhdr->hsr_tag, lsdu_size); in hsr_fill_tag()
226 hsr_ethhdr->hsr_tag.sequence_nr = htons(frame->sequence_nr); in hsr_fill_tag()
227 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
228 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag()
230 skb->protocol = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
246 struct hsr_ethhdr *hsr_ethhdr = in hsr_create_tagged_frame() local
247 (struct hsr_ethhdr *)skb_mac_header(frame->skb_hsr); in hsr_create_tagged_frame()
250 hsr_set_path_id(hsr_ethhdr, port); in hsr_create_tagged_frame()
487 if (skb->mac_len < sizeof(struct hsr_ethhdr)) in hsr_fill_frame_info()