Lines Matching refs:ehdrlen
1759 int ehdrlen, poff, proto; in nicvf_sq_add_hdr_subdesc() local
1777 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in nicvf_sq_add_hdr_subdesc()
1780 ehdrlen = ETHER_HDR_LEN; in nicvf_sq_add_hdr_subdesc()
1788 if (mbuf->m_len < ehdrlen + sizeof(struct ip6_hdr)) { in nicvf_sq_add_hdr_subdesc()
1789 mbuf = m_pullup(mbuf, ehdrlen +sizeof(struct ip6_hdr)); in nicvf_sq_add_hdr_subdesc()
1794 poff = ip6_lasthdr(mbuf, ehdrlen, IPPROTO_IPV6, &proto); in nicvf_sq_add_hdr_subdesc()
1797 poff += ehdrlen; in nicvf_sq_add_hdr_subdesc()
1802 if (mbuf->m_len < ehdrlen + sizeof(struct ip)) { in nicvf_sq_add_hdr_subdesc()
1803 mbuf = m_pullup(mbuf, ehdrlen + sizeof(struct ip)); in nicvf_sq_add_hdr_subdesc()
1811 ip = (struct ip *)(mbuf->m_data + ehdrlen); in nicvf_sq_add_hdr_subdesc()
1813 poff = ehdrlen + iphlen; in nicvf_sq_add_hdr_subdesc()
1861 hdr->l3_offset = ehdrlen; in nicvf_sq_add_hdr_subdesc()
1871 hdr->inner_l3_offset = ehdrlen - 2; in nicvf_sq_add_hdr_subdesc()