Lines Matching defs:eh
181 struct ether_vlan_header *eh;
185 eh = mtod(mb, struct ether_vlan_header *);
188 } else if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
191 eth_type = ntohs(eh->evl_proto);
194 eth_type = ntohs(eh->evl_encap_proto);
239 const struct ether_vlan_header *eh;
247 eh = mtod(mb, const struct ether_vlan_header *);
250 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
253 eth_type = ntohs(eh->evl_proto);
256 eth_type = ntohs(eh->evl_encap_proto);
356 const struct ether_vlan_header *eh;
374 eh = mtod(mb, const struct ether_vlan_header *);
378 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
381 eth_type = eh->evl_proto;
384 eth_type = eh->evl_encap_proto;
445 eh = mlx5e_parse_mbuf_chain(&mb, &offset, eth_hdr_len, ETHER_HDR_LEN);
446 if (unlikely(eh == NULL))
448 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
452 eth_type = eh->evl_proto;
455 eth_type = eh->evl_encap_proto;
896 struct ether_vlan_header *eh = (struct ether_vlan_header *)
910 m_copydata(mb, 0, ETHER_HDR_LEN, (caddr_t)eh);
913 eh->evl_proto = eh->evl_encap_proto;
914 eh->evl_encap_proto = htons(ETHERTYPE_VLAN);
915 eh->evl_tag = htons(mb->m_pkthdr.ether_vtag);
917 m_copydata(mb, 0, args.ihs - ETHER_HDR_LEN, (caddr_t)(eh + 1));