Home
last modified time | relevance | path

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

/freebsd-9-stable/sys/ofed/drivers/net/mlx4/
Den_frag.c130 u16 ip_hlen; in mlx4_en_rx_frags() local
137 ip_hlen = iph->ip_hl * 4; in mlx4_en_rx_frags()
138 data_len = ip_len - ip_hlen; in mlx4_en_rx_frags()
144 if (unlikely(in_cksum_skip(mb, ip_hlen, (char *)iph - mb->m_data))) { in mlx4_en_rx_frags()
151 offset + ip_hlen || in mlx4_en_rx_frags()
Den_tx.c536 int ip_hlen, tcp_hlen; in mlx4_en_get_header_size() local
560 ip_hlen = ip->ip_hl << 2; in mlx4_en_get_header_size()
561 eth_hdr_len += ip_hlen; in mlx4_en_get_header_size()
/freebsd-9-stable/sys/dev/qlxgb/
Dqla_hw.c719 uint32_t ehdrlen, hdrlen, ip_hlen, tcp_hlen; in qla_tx_tso() local
741 ip_hlen = ip->ip_hl << 2; in qla_tx_tso()
747 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in qla_tx_tso()
761 hdrlen = ehdrlen + ip_hlen + tcp_hlen; in qla_tx_tso()
769 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen; in qla_tx_tso()
794 uint32_t ehdrlen, ip_hlen; in qla_tx_chksum() local
818 ip_hlen = ip->ip_hl << 2; in qla_tx_chksum()
820 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum()
839 ip_hlen = sizeof(struct ip6_hdr); in qla_tx_chksum()
841 if (mp->m_len < (ehdrlen + ip_hlen)) { in qla_tx_chksum()
[all …]
/freebsd-9-stable/sys/dev/qlxge/
Dqls_hw.c544 uint32_t ehdrlen, ip_hlen; in qls_tx_tso_chksum() local
566 ip_hlen = sizeof (struct ip); in qls_tx_tso_chksum()
568 if (mp->m_len < (ehdrlen + ip_hlen)) { in qls_tx_tso_chksum()
577 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) << in qls_tx_tso_chksum()
591 tx_mac->phdr_length = ip_hlen + ehdrlen + in qls_tx_tso_chksum()
608 ip_hlen = sizeof(struct ip6_hdr); in qls_tx_tso_chksum()
610 if (mp->m_len < (ehdrlen + ip_hlen)) { in qls_tx_tso_chksum()
621 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) << in qls_tx_tso_chksum()
/freebsd-9-stable/sys/dev/ixgbe/
Dixv.c2387 int ehdrlen, ip_hlen = 0; in ixv_tx_ctx_setup() local
2432 ip_hlen = ip->ip_hl << 2; in ixv_tx_ctx_setup()
2433 if (mp->m_len < ehdrlen + ip_hlen) in ixv_tx_ctx_setup()
2440 ip_hlen = sizeof(struct ip6_hdr); in ixv_tx_ctx_setup()
2441 if (mp->m_len < ehdrlen + ip_hlen) in ixv_tx_ctx_setup()
2451 vlan_macip_lens |= ip_hlen; in ixv_tx_ctx_setup()
2509 int ctxd, ehdrlen, hdrlen, ip_hlen, tcp_hlen; in ixv_tso_setup() local
2537 ip_hlen = ip->ip_hl << 2; in ixv_tso_setup()
2538 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in ixv_tso_setup()
2542 hdrlen = ehdrlen + ip_hlen + tcp_hlen; in ixv_tso_setup()
[all …]
Dixgbe.c3283 int ehdrlen, ip_hlen = 0; local
3334 ip_hlen = ip->ip_hl << 2;
3340 ip_hlen = sizeof(struct ip6_hdr);
3350 vlan_macip_lens |= ip_hlen;
3407 int ctxd, ehdrlen, ip_hlen, tcp_hlen; local
3438 ip_hlen = sizeof(struct ip6_hdr);
3440 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
3451 ip_hlen = ip->ip_hl << 2;
3452 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
3472 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen - tcp_hlen;
[all …]
/freebsd-9-stable/sys/dev/qlxgbe/
Dql_hw.c2283 uint32_t ehdrlen, hdrlen, ip_hlen, tcp_hlen, tcp_opt_off; in qla_tx_tso() local
2315 ip_hlen = ip->ip_hl << 2; in qla_tx_tso()
2320 (ip_hlen != sizeof (struct ip))){ in qla_tx_tso()
2325 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in qla_tx_tso()
2341 ip_hlen = sizeof(struct ip6_hdr); in qla_tx_tso()
2348 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); in qla_tx_tso()
2361 hdrlen = ehdrlen + ip_hlen + tcp_hlen; in qla_tx_tso()
2378 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen; in qla_tx_tso()
2407 uint32_t ehdrlen, ip_hlen; in qla_tx_chksum() local
2435 ip_hlen = sizeof (struct ip); in qla_tx_chksum()
[all …]
/freebsd-9-stable/sys/dev/mxge/
Dif_mxge_var.h311 int ip_hlen; member
Dif_mxge.c1803 pi->ip_hlen = pi->ip->ip_hl << 2; in mxge_parse_tx()
1807 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + in mxge_parse_tx()
1809 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + in mxge_parse_tx()
1813 pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen); in mxge_parse_tx()
1824 pi->ip_hlen = ip6_lasthdr(m, pi->ip_off, IPPROTO_IPV6, &nxt); in mxge_parse_tx()
1825 pi->ip_hlen -= pi->ip_off; in mxge_parse_tx()
1832 if (pi->ip_off + pi->ip_hlen > ss->sc->max_tso6_hlen) in mxge_parse_tx()
1835 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen + in mxge_parse_tx()
1837 m_copydata(m, 0, pi->ip_off + pi->ip_hlen + in mxge_parse_tx()
1841 pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen); in mxge_parse_tx()
[all …]
/freebsd-9-stable/sys/dev/e1000/
Dif_igb.c3712 int ctxd, ehdrlen, ip_hlen, tcp_hlen; in igb_tso_setup() local
3743 ip_hlen = sizeof(struct ip6_hdr); in igb_tso_setup()
3745 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen); in igb_tso_setup()
3756 ip_hlen = ip->ip_hl << 2; in igb_tso_setup()
3757 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in igb_tso_setup()
3777 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen - tcp_hlen; in igb_tso_setup()
3786 vlan_macip_lens |= ip_hlen; in igb_tso_setup()
3832 int ehdrlen, ip_hlen = 0; in igb_tx_ctx_setup() local
3883 ip_hlen = ip->ip_hl << 2; in igb_tx_ctx_setup()
3889 ip_hlen = sizeof(struct ip6_hdr); in igb_tx_ctx_setup()
[all …]
Dif_lem.c2835 u32 cmd, hdr_len, ip_hlen; in lem_transmit_checksum_setup() local
2865 ip_hlen = ip->ip_hl << 2; in lem_transmit_checksum_setup()
2878 htole16(ehdrlen + ip_hlen); in lem_transmit_checksum_setup()
2885 hdr_len = ehdrlen + ip_hlen; in lem_transmit_checksum_setup()
2891 ip_hlen = sizeof(struct ip6_hdr); /* XXX: No header stacking. */ in lem_transmit_checksum_setup()
2895 hdr_len = ehdrlen + ip_hlen; in lem_transmit_checksum_setup()
/freebsd-9-stable/sys/dev/bce/
Dif_bce.c7238 int hdr_len, ip_hlen = 0, tcp_hlen = 0, ip_len = 0; in bce_tso_setup() local
7280 ip_hlen = ip->ip_hl << 2; in bce_tso_setup()
7281 m = m_pullup(*m_head, sizeof(struct ether_header) + ip_hlen + in bce_tso_setup()
7290 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); in bce_tso_setup()
7294 m = m_pullup(*m_head, sizeof(struct ether_header)+ ip_hlen + in bce_tso_setup()
7322 hdr_len = sizeof(struct ether_header) + ip_hlen + tcp_hlen; in bce_tso_setup()
7326 __FUNCTION__, hdr_len, (int) sizeof(struct ether_header), ip_hlen, in bce_tso_setup()
7333 *flags |= (((ip_hlen + tcp_hlen - sizeof(struct ip) - in bce_tso_setup()
/freebsd-9-stable/sys/dev/bxe/
Dbxe.c4880 int e_hlen, ip_hlen, l4_off; in bxe_set_pbd_csum_e2() local
4907 ip_hlen = (ip4->ip_hl << 2); in bxe_set_pbd_csum_e2()
4916 ip_hlen = sizeof(struct ip6_hdr); in bxe_set_pbd_csum_e2()
4926 l4_off = (e_hlen + ip_hlen); in bxe_set_pbd_csum_e2()
4936 th = (struct tcphdr *)(ip + ip_hlen); in bxe_set_pbd_csum_e2()
4963 int e_hlen, ip_hlen; in bxe_set_pbd_csum() local
4988 ip_hlen = (ip4->ip_hl << 1); in bxe_set_pbd_csum()
4997 ip_hlen = (sizeof(struct ip6_hdr) >> 1); in bxe_set_pbd_csum()
5016 pbd->ip_hlen_w = ip_hlen; in bxe_set_pbd_csum()
5025 th = (struct tcphdr *)(ip + (ip_hlen << 1)); in bxe_set_pbd_csum()
[all …]