Lines Matching refs:hsr_ethhdr
236 static void hsr_set_path_id(struct hsr_ethhdr *hsr_ethhdr,
246 set_hsr_tag_path(&hsr_ethhdr->hsr_tag, path_id);
253 struct hsr_ethhdr *hsr_ethhdr;
264 hsr_ethhdr = (struct hsr_ethhdr *)skb_mac_header(skb);
266 hsr_set_path_id(hsr_ethhdr, port);
267 set_hsr_tag_LSDU_size(&hsr_ethhdr->hsr_tag, lsdu_size);
268 hsr_ethhdr->hsr_tag.sequence_nr = htons(frame->sequence_nr);
269 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto;
270 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ?
272 skb->protocol = hsr_ethhdr->ethhdr.h_proto;
288 struct hsr_ethhdr *hsr_ethhdr =
289 (struct hsr_ethhdr *)skb_mac_header(frame->skb_hsr);
292 hsr_set_path_id(hsr_ethhdr, port);
525 /* Check if skb contains hsr_ethhdr */
526 if (skb->mac_len < sizeof(struct hsr_ethhdr))