Home
last modified time | relevance | path

Searched refs:ip_hlen (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/dev/ixgbe/
H A Dif_fdir.c90 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 Dmlx5_en_tx.c242 int ip_hlen, tcp_hlen; in mlx5e_get_full_header_size() local
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() local
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()
/freebsd/sys/dev/qlxgb/
H A Dqla_hw.c743 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()
879 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum()
[all …]
/freebsd/sys/dev/qlxge/
H A Dqls_hw.c535 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 Dif_mxge_var.h296 int ip_hlen; member
H A Dif_mxge.c1748 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()
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()
1818 cksum_offset = pi->ip_off + pi->ip_hlen; in mxge_encap_tso()
[all …]
/freebsd/sys/dev/qlxgbe/
H A Dql_hw.c2291 ip_hlen = ip->ip_hl << 2; in qla_tx_tso()
2296 (ip_hlen != sizeof (struct ip))){ in qla_tx_tso()
2317 ip_hlen = sizeof(struct ip6_hdr); 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()
2410 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum()
2428 ip_hlen = sizeof(struct ip6_hdr); in qla_tx_chksum()
2430 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum()
[all …]
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c504 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 Decore_iwarp.c2016 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 Dqlnx_os.c3138 uint32_t ehdrlen = 0, ip_hlen = 0, offset = 0; in qlnx_tcp_offset() local
3156 ip_hlen = sizeof (struct ip); in qlnx_tcp_offset()
3158 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset()
3164 offset = ip_hlen + ehdrlen + (th->th_off << 2); in qlnx_tcp_offset()
3170 ip_hlen = sizeof(struct ip6_hdr); in qlnx_tcp_offset()
3172 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset()
3178 offset = ip_hlen + ehdrlen + (th->th_off << 2); in qlnx_tcp_offset()
/freebsd/sys/dev/al_eth/
H A Dal_eth.c1205 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 Dif_bce.c7101 int hdr_len __unused, ip_len __unused, ip_hlen = 0, tcp_hlen = 0; in bce_tso_setup() local
7144 ip_hlen = ip->ip_hl << 2; in bce_tso_setup()
7145 m = m_pullup(*m_head, sizeof(struct ether_header) + ip_hlen + in bce_tso_setup()
7154 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in bce_tso_setup()
7158 m = m_pullup(*m_head, sizeof(struct ether_header)+ ip_hlen + in bce_tso_setup()
7186 hdr_len = sizeof(struct ether_header) + ip_hlen + tcp_hlen; in bce_tso_setup()
7190 __FUNCTION__, hdr_len, (int) sizeof(struct ether_header), ip_hlen, in bce_tso_setup()
7197 *flags |= (((ip_hlen + tcp_hlen - sizeof(struct ip) - in bce_tso_setup()
/freebsd/sys/dev/bxe/
H A Dbxe.c4824 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 …]