/freebsd/sys/dev/ixgbe/ |
H A D | if_fdir.c | 90 int ehdrlen, ip_hlen; in ixgbe_atr() local 107 ip_hlen = ip->ip_hl << 2; in ixgbe_atr() 112 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in ixgbe_atr() 119 uh = (struct udphdr *)((caddr_t)ip + ip_hlen); in ixgbe_atr()
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_tx.c | 242 int ip_hlen, tcp_hlen; in mlx5e_get_full_header_size() 267 ip_hlen = ip->ip_hl << 2; in mlx5e_get_full_header_size() 268 eth_hdr_len += ip_hlen; in mlx5e_get_full_header_size() 271 ip_hlen = ip->ip_hl << 2; in mlx5e_get_full_header_size() 272 eth_hdr_len += ip_hlen + sizeof(struct udphdr); in mlx5e_get_full_header_size() 367 int ip_hlen; in mlx5e_get_vxlan_header_size() 399 ip_hlen = ip4->ip_hl << 2; in mlx5e_get_vxlan_header_size() 400 eth_hdr_len += ip_hlen; in mlx5e_get_vxlan_header_size() 469 ip_hlen = ip4->ip_hl << 2; in mlx5e_get_vxlan_header_size() 470 eth_hdr_len += ip_hlen; in mlx5e_get_vxlan_header_size() 241 int ip_hlen, tcp_hlen; mlx5e_get_full_header_size() local 366 int ip_hlen; mlx5e_get_vxlan_header_size() local [all...] |
/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 743 ip_hlen = ip->ip_hl << 2; in qla_tx_tso() 747 (ip_hlen != sizeof (struct ip))) { in qla_tx_tso() 750 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 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() 832 uint32_t ehdrlen, ip_hlen; in qla_tx_chksum() local 856 ip_hlen = sizeof (struct ip); in qla_tx_chksum() 858 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum() 877 ip_hlen = sizeof(struct ip6_hdr); in qla_tx_chksum() [all …]
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_hw.c | 535 uint32_t ehdrlen, ip_hlen; in qls_tx_tso_chksum() local 555 ip_hlen = sizeof (struct ip); in qls_tx_tso_chksum() 557 if (mp->m_len < (ehdrlen + ip_hlen)) { 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() 598 ip_hlen = sizeof(struct ip6_hdr); in qls_tx_tso_chksum() 600 if (mp->m_len < (ehdrlen + ip_hlen)) { in qls_tx_tso_chksum() 611 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) << in qls_tx_tso_chksum()
|
/freebsd/sys/dev/mxge/ |
H A D | if_mxge_var.h | 296 int ip_hlen; member
|
H A D | if_mxge.c | 1748 pi->ip_hlen = pi->ip->ip_hl << 2; in mxge_parse_tx() 1752 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + in mxge_parse_tx() 1754 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + in mxge_parse_tx() 1758 pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen); in mxge_parse_tx() 1769 pi->ip_hlen = ip6_lasthdr(m, pi->ip_off, IPPROTO_IPV6, &nxt); in mxge_parse_tx() 1770 pi->ip_hlen -= pi->ip_off; in mxge_parse_tx() 1777 if (pi->ip_off + pi->ip_hlen > ss->sc->max_tso6_hlen) in mxge_parse_tx() 1780 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + in mxge_parse_tx() 1782 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + in mxge_parse_tx() 1786 pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen); in mxge_parse_tx() [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 2291 ip_hlen = ip->ip_hl << 2; in qla_tx_tso() 2296 (ip_hlen != sizeof (struct ip))){ in qla_tx_tso() 2301 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in qla_tx_tso() 2317 ip_hlen = sizeof(struct ip6_hdr); in qla_tx_tso() 2324 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); 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 2408 ip_hlen = sizeof (struct ip); in qla_tx_chksum() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_tx.c | 504 int ip_hlen, tcp_hlen; in mlx4_en_get_header_size() local 528 ip_hlen = ip->ip_hl << 2; in mlx4_en_get_header_size() 529 eth_hdr_len += ip_hlen; in mlx4_en_get_header_size()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_iwarp.c | 2016 int eth_hlen, ip_hlen; in ecore_iwarp_parse_rx_pkt() local 2063 ip_hlen = (iph->ihl)*sizeof(u32); in ecore_iwarp_parse_rx_pkt() 2064 *payload_len = ntohs(iph->tot_len) - ip_hlen; in ecore_iwarp_parse_rx_pkt() 2084 ip_hlen = sizeof(*ip6h); in ecore_iwarp_parse_rx_pkt() 2092 tcph = (struct ecore_tcphdr *)((u8 *)iph + ip_hlen); in ecore_iwarp_parse_rx_pkt() 2106 *tcp_start_offset = eth_hlen + ip_hlen; in ecore_iwarp_parse_rx_pkt() 2502 int eth_hlen, ip_hlen; in ecore_iwarp_mpa_print_tcp_seq() local 2522 ip_hlen = (iph->ihl)*sizeof(u32); in ecore_iwarp_mpa_print_tcp_seq() 2525 ip_hlen = sizeof(*ip6h); in ecore_iwarp_mpa_print_tcp_seq() 2531 tcph = (struct ecore_tcphdr *)((u8 *)iph + ip_hlen); in ecore_iwarp_mpa_print_tcp_seq()
|
H A D | qlnx_os.c | 3140 uint32_t ehdrlen = 0, ip_hlen = 0, offset = 0; in qlnx_tcp_offset() local 3158 ip_hlen = sizeof (struct ip); in qlnx_tcp_offset() 3160 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset() 3166 offset = ip_hlen + ehdrlen + (th->th_off << 2); in qlnx_tcp_offset() 3172 ip_hlen = sizeof(struct ip6_hdr); in qlnx_tcp_offset() 3174 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset() 3180 offset = ip_hlen + ehdrlen + (th->th_off << 2); in qlnx_tcp_offset()
|
/freebsd/sys/dev/al_eth/ |
H A D | al_eth.c | 1205 int ehdrlen, ip_hlen = 0; in al_eth_tx_csum() local 1246 ip_hlen = ip->ip_hl << 2; in al_eth_tx_csum() 1249 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in al_eth_tx_csum() 1262 ip_hlen = sizeof(struct ip6_hdr); in al_eth_tx_csum() 1263 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); in al_eth_tx_csum() 1276 meta->l3_header_len = ip_hlen; in al_eth_tx_csum()
|
/freebsd/sys/dev/bce/ |
H A D | if_bce.c | 7100 int hdr_len __unused, ip_len __unused, ip_hlen = 0, tcp_hlen = 0; in bce_tso_setup() local 7143 ip_hlen = ip->ip_hl << 2; in bce_tso_setup() 7144 m = m_pullup(*m_head, sizeof(struct ether_header) + ip_hlen + in bce_tso_setup() 7153 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in bce_tso_setup() 7157 m = m_pullup(*m_head, sizeof(struct ether_header)+ ip_hlen + in bce_tso_setup() 7185 hdr_len = sizeof(struct ether_header) + ip_hlen + tcp_hlen; in bce_tso_setup() 7189 __FUNCTION__, hdr_len, (int) sizeof(struct ether_header), ip_hlen, in bce_tso_setup() 7196 *flags |= (((ip_hlen + tcp_hlen - sizeof(struct ip) - in bce_tso_setup()
|
/freebsd/sys/dev/bxe/ |
H A D | bxe.c | 4824 int e_hlen, ip_hlen, l4_off; in bxe_set_pbd_csum_e2() local 4851 ip_hlen = (ip4->ip_hl << 2); in bxe_set_pbd_csum_e2() 4860 ip_hlen = sizeof(struct ip6_hdr); in bxe_set_pbd_csum_e2() 4870 l4_off = (e_hlen + ip_hlen); in bxe_set_pbd_csum_e2() 4880 th = (struct tcphdr *)(ip + ip_hlen); in bxe_set_pbd_csum_e2() 4907 int e_hlen, ip_hlen; in bxe_set_pbd_csum() local 4932 ip_hlen = (ip4->ip_hl << 1); in bxe_set_pbd_csum() 4941 ip_hlen = (sizeof(struct ip6_hdr) >> 1); in bxe_set_pbd_csum() 4960 pbd->ip_hlen_w = ip_hlen; in bxe_set_pbd_csum() 4969 th = (struct tcphdr *)(ip + (ip_hlen << 1)); in bxe_set_pbd_csum() [all …]
|