Lines Matching refs:ehdrlen
535 uint32_t ehdrlen, ip_hlen; in qls_tx_tso_chksum() local
543 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in qls_tx_tso_chksum()
546 ehdrlen = ETHER_HDR_LEN; in qls_tx_tso_chksum()
553 ip = (struct ip *)(mp->m_data + ehdrlen); in qls_tx_tso_chksum()
557 if (mp->m_len < (ehdrlen + ip_hlen)) { in qls_tx_tso_chksum()
558 m_copydata(mp, ehdrlen, sizeof(struct ip), buf); in qls_tx_tso_chksum()
564 tx_mac->phdr_offsets = ehdrlen; in qls_tx_tso_chksum()
566 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) << in qls_tx_tso_chksum()
580 tx_mac->phdr_length = ip_hlen + ehdrlen + in qls_tx_tso_chksum()
596 ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen); in qls_tx_tso_chksum()
600 if (mp->m_len < (ehdrlen + ip_hlen)) { in qls_tx_tso_chksum()
601 m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr), in qls_tx_tso_chksum()
610 tx_mac->phdr_offsets = ehdrlen; in qls_tx_tso_chksum()
611 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) << in qls_tx_tso_chksum()