Home
last modified time | relevance | path

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

/Linux-v5.10/include/net/
Derspan.h119 static inline void set_session_id(struct erspan_base_hdr *ershdr, u16 id) in set_session_id() argument
121 ershdr->session_id = id & 0xff; in set_session_id()
122 ershdr->session_id_upper = (id >> 8) & 0x3; in set_session_id()
125 static inline u16 get_session_id(const struct erspan_base_hdr *ershdr) in get_session_id() argument
127 return (ershdr->session_id_upper << 8) + ershdr->session_id; in get_session_id()
130 static inline void set_vlan(struct erspan_base_hdr *ershdr, u16 vlan) in set_vlan() argument
132 ershdr->vlan = vlan & 0xff; in set_vlan()
133 ershdr->vlan_upper = (vlan >> 8) & 0xf; in set_vlan()
136 static inline u16 get_vlan(const struct erspan_base_hdr *ershdr) in get_vlan() argument
138 return (ershdr->vlan_upper << 8) + ershdr->vlan; in get_vlan()
[all …]
/Linux-v5.10/net/ipv4/
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()
Dip_gre.c265 struct erspan_base_hdr *ershdr; in erspan_rcv() local
281 ershdr = (struct erspan_base_hdr *)(skb->data + gre_hdr_len); in erspan_rcv()
282 ver = ershdr->ver; in erspan_rcv()
326 sizeof(*ershdr)); in erspan_rcv()
/Linux-v5.10/net/ipv6/
Dip6_gre.c531 struct erspan_base_hdr *ershdr; in ip6erspan_rcv() local
538 ershdr = (struct erspan_base_hdr *)skb->data; in ip6erspan_rcv()
539 ver = ershdr->ver; in ip6erspan_rcv()
579 sizeof(*ershdr)); in ip6erspan_rcv()