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