Lines Matching refs:ehdrlen
2263 uint32_t ehdrlen, hdrlen, ip_hlen, tcp_hlen, tcp_opt_off; in qla_tx_tso() local
2269 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in qla_tx_tso()
2272 ehdrlen = ETHER_HDR_LEN; in qla_tx_tso()
2281 tcp_opt_off = ehdrlen + sizeof(struct ip) + in qla_tx_tso()
2286 ip = (struct ip *)(hdr + ehdrlen); in qla_tx_tso()
2288 ip = (struct ip *)(mp->m_data + ehdrlen); in qla_tx_tso()
2307 tcp_opt_off = ehdrlen + sizeof(struct ip6_hdr) + in qla_tx_tso()
2312 ip6 = (struct ip6_hdr *)(hdr + ehdrlen); in qla_tx_tso()
2314 ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen); in qla_tx_tso()
2337 hdrlen = ehdrlen + ip_hlen + tcp_hlen; in qla_tx_tso()
2354 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen; in qla_tx_tso()
2383 uint32_t ehdrlen, ip_hlen; in qla_tx_chksum() local
2396 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in qla_tx_chksum()
2399 ehdrlen = ETHER_HDR_LEN; in qla_tx_chksum()
2406 ip = (struct ip *)(mp->m_data + ehdrlen); in qla_tx_chksum()
2410 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum()
2411 m_copydata(mp, ehdrlen, sizeof(struct ip), buf); in qla_tx_chksum()
2426 ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen); in qla_tx_chksum()
2430 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum()
2431 m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr), in qla_tx_chksum()
2454 *tcp_hdr_off = (ip_hlen + ehdrlen); in qla_tx_chksum()