Searched refs:ershdr (Results 1 – 4 of 4) sorted by relevance
119 static inline void set_session_id(struct erspan_base_hdr *ershdr, u16 id) in set_session_id() argument121 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() argument127 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() argument132 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() argument138 return (ershdr->vlan_upper << 8) + ershdr->vlan; in get_vlan()[all …]
133 struct erspan_base_hdr *ershdr; in gre_parse_header() local135 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()
265 struct erspan_base_hdr *ershdr; in erspan_rcv() local281 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()
531 struct erspan_base_hdr *ershdr; in ip6erspan_rcv() local538 ershdr = (struct erspan_base_hdr *)skb->data; in ip6erspan_rcv()539 ver = ershdr->ver; in ip6erspan_rcv()579 sizeof(*ershdr)); in ip6erspan_rcv()