/freebsd/sys/dev/ixgbe/ |
H A D | if_fdir.c | 90 int ehdrlen, ip_hlen; in ixgbe_atr() local 95 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in ixgbe_atr() 98 ehdrlen = ETHER_HDR_LEN; in ixgbe_atr() 106 ip = (struct ip *)(mp->m_data + ehdrlen); in ixgbe_atr()
|
H A D | ix_txrx.c | 83 u8 ehdrlen; in ixgbe_tx_ctx_setup() local 98 ehdrlen = ETHER_HDR_LEN; in ixgbe_tx_ctx_setup() 99 ehdrlen += (pi->ipi_vtag != 0) ? ETHER_VLAN_ENCAP_LEN : 0; in ixgbe_tx_ctx_setup() 101 ehdrlen = pi->ipi_ehdrlen; in ixgbe_tx_ctx_setup() 102 vlan_macip_lens |= ehdrlen << IXGBE_ADVTXD_MACLEN_SHIFT; in ixgbe_tx_ctx_setup() 108 pktlen = pi->ipi_len - ehdrlen - pi->ipi_ip_hlen - pi->ipi_tcp_hlen; in ixgbe_tx_ctx_setup()
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_hw.c | 713 uint32_t ehdrlen, hdrlen = 0, ip_hlen, tcp_hlen, tcp_opt_off; in qla_tx_tso() local 723 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in qla_tx_tso() 726 ehdrlen = ETHER_HDR_LEN; in qla_tx_tso() 733 tcp_opt_off = ehdrlen + sizeof(struct ip) + in qla_tx_tso() 740 ip = (struct ip *)(mp->m_data + ehdrlen); in qla_tx_tso() 765 hdrlen = ehdrlen + ip_hlen + tcp_hlen; in qla_tx_tso() 803 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen; in qla_tx_tso() 804 tx_cmd->ip_hdr_off = ehdrlen; in qla_tx_tso() 832 uint32_t ehdrlen, ip_hlen; in qla_tx_chksum() local 844 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in qla_tx_chksum() [all …]
|
/freebsd/sys/dev/ena/ |
H A D | ena_datapath.c | 717 int ehdrlen; in ena_tx_csum() local 754 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in ena_tx_csum() 757 ehdrlen = ETHER_HDR_LEN; in ena_tx_csum() 760 mbuf_next = m_getptr(mbuf, ehdrlen, &offset); in ena_tx_csum() 773 iphlen = ip6_lasthdr(mbuf, ehdrlen, IPPROTO_IPV6, &ipproto); in ena_tx_csum() 774 iphlen -= ehdrlen; in ena_tx_csum() 783 mbuf_next = m_getptr(mbuf, iphlen + ehdrlen, &offset); in ena_tx_csum() 815 ena_meta->l3_hdr_offset = ehdrlen; in ena_tx_csum()
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_hw.c | 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() [all …]
|
/freebsd/sys/dev/vnic/ |
H A D | nicvf_queues.c | 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() [all …]
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_hw.c | 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() [all …]
|
/freebsd/sys/dev/oce/ |
H A D | oce_if.c | 1282 int total_len = 0, ehdrlen = 0; in oce_tso_setup() local 1297 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in oce_tso_setup() 1300 ehdrlen = ETHER_HDR_LEN; in oce_tso_setup() 1306 ip = (struct ip *)(m->m_data + ehdrlen); in oce_tso_setup() 1311 total_len = ehdrlen + (ip->ip_hl << 2) + (th->th_off << 2); in oce_tso_setup() 1316 ip6 = (struct ip6_hdr *)(m->m_data + ehdrlen); in oce_tso_setup() 1321 total_len = ehdrlen + sizeof(struct ip6_hdr) + (th->th_off << 2); in oce_tso_setup()
|
/freebsd/sys/dev/al_eth/ |
H A D | al_eth.c | 1205 int ehdrlen, ip_hlen = 0; in al_eth_tx_csum() local 1236 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in al_eth_tx_csum() 1239 ehdrlen = ETHER_HDR_LEN; in al_eth_tx_csum() 1245 ip = (struct ip *)(m->m_data + ehdrlen); in al_eth_tx_csum() 1260 ip6 = (struct ip6_hdr *)(m->m_data + ehdrlen); in al_eth_tx_csum() 1277 meta->l3_header_offset = ehdrlen; in al_eth_tx_csum()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_os.c | 3140 uint32_t ehdrlen = 0, ip_hlen = 0, offset = 0; in qlnx_tcp_offset() local 3147 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in qlnx_tcp_offset() 3150 ehdrlen = ETHER_HDR_LEN; in qlnx_tcp_offset() 3156 ip = (struct ip *)(mp->m_data + ehdrlen); in qlnx_tcp_offset() 3160 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset() 3161 m_copydata(mp, ehdrlen, sizeof(struct ip), buf); in qlnx_tcp_offset() 3166 offset = ip_hlen + ehdrlen + (th->th_off << 2); in qlnx_tcp_offset() 3170 ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen); in qlnx_tcp_offset() 3174 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset() 3175 m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr), in qlnx_tcp_offset() [all …]
|