Home
last modified time | relevance | path

Searched refs:ershdr (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/include/net/
H A Derspan.h130 return (ershdr->session_id_upper << 8) + ershdr->session_id; in get_session_id()
135 ershdr->vlan = vlan & 0xff; in set_vlan()
141 return (ershdr->vlan_upper << 8) + ershdr->vlan; in get_vlan()
205 memset(ershdr, 0, sizeof(*ershdr) + ERSPAN_V1_MDSIZE); in erspan_build_header()
210 ershdr->en = enc_type; in erspan_build_header()
211 ershdr->t = truncate; in erspan_build_header()
212 set_vlan(ershdr, vlan_tci); in erspan_build_header()
213 set_session_id(ershdr, id); in erspan_build_header()
299 memset(ershdr, 0, sizeof(*ershdr) + ERSPAN_V2_MDSIZE); in erspan_build_header_v2()
304 ershdr->en = bso; in erspan_build_header_v2()
[all …]
/openbmc/linux/net/ipv4/
H A Dgre_demux.c133 struct erspan_base_hdr *ershdr; in gre_parse_header() local
135 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) in gre_parse_header()
138 ershdr = (struct erspan_base_hdr *)(skb->data + nhs + hdr_len); in gre_parse_header()
139 tpi->key = cpu_to_be32(get_session_id(ershdr)); in gre_parse_header()
H A Dip_gre.c267 struct erspan_base_hdr *ershdr; in erspan_rcv() local
284 gre_hdr_len + sizeof(*ershdr)))) in erspan_rcv()
287 ershdr = (struct erspan_base_hdr *)(skb->data + gre_hdr_len); in erspan_rcv()
288 ver = ershdr->ver; in erspan_rcv()
333 sizeof(*ershdr)); in erspan_rcv()
/openbmc/linux/net/ipv6/
H A Dip6_gre.c525 struct erspan_base_hdr *ershdr; in ip6erspan_rcv() local
531 if (unlikely(!pskb_may_pull(skb, sizeof(*ershdr)))) in ip6erspan_rcv()
535 ershdr = (struct erspan_base_hdr *)skb->data; in ip6erspan_rcv()
536 ver = ershdr->ver; in ip6erspan_rcv()
576 sizeof(*ershdr)); in ip6erspan_rcv()