Searched refs:ip_hlen (Results 1 - 15 of 15) sorted by relevance

/freebsd-11-stable/sys/dev/ixgbe/
H A Dif_fdir.c90 int ehdrlen, ip_hlen; local
107 ip_hlen = ip->ip_hl << 2;
112 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
119 uh = (struct udphdr *)((caddr_t)ip + ip_hlen);
H A Dix_txrx.c710 int ehdrlen, ip_hlen = 0; local
782 ip_hlen = ip->ip_hl << 2;
795 ip_hlen = sizeof(struct ip6_hdr);
805 vlan_macip_lens |= ip_hlen;
875 int ctxd, ehdrlen, ip_hlen, tcp_hlen; local
901 ip_hlen = ip->ip_hl << 2;
902 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
916 ip_hlen = sizeof(struct ip6_hdr);
917 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
934 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c190 int ip_hlen, tcp_hlen; local
214 ip_hlen = ip->ip_hl << 2;
215 eth_hdr_len += ip_hlen;
218 ip_hlen = ip->ip_hl << 2;
219 eth_hdr_len += ip_hlen + 8;
/freebsd-11-stable/sys/dev/ixl/
H A Dixl_txrx.c703 int elen, ip_hlen = 0, tcp_hlen; local
735 ip_hlen = ip->ip_hl << 2;
737 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
748 ip_hlen = sizeof(struct ip6_hdr);
750 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
759 *off |= (ip_hlen >> 2) << I40E_TX_DESC_LENGTH_IPLEN_SHIFT;
805 int idx, elen, ip_hlen, tcp_hlen; local
837 ip_hlen = sizeof(struct ip6_hdr);
838 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
855 ip_hlen
[all...]
/freebsd-11-stable/sys/dev/qlxgb/
H A Dqla_hw.c719 uint32_t ehdrlen, hdrlen = 0, ip_hlen, tcp_hlen, tcp_opt_off; local
749 ip_hlen = ip->ip_hl << 2;
753 (ip_hlen != sizeof (struct ip))) {
756 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
772 hdrlen = ehdrlen + ip_hlen + tcp_hlen;
812 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen;
841 uint32_t ehdrlen, ip_hlen; local
865 ip_hlen = sizeof (struct ip);
867 if (mp->m_len < (ehdrlen + ip_hlen)) {
886 ip_hlen
[all...]
/freebsd-11-stable/sys/dev/mxge/
H A Dif_mxge_var.h320 int ip_hlen; member in struct:mxge_pkt_info
H A Dif_mxge.c1805 pi->ip_hlen = pi->ip->ip_hl << 2;
1809 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen +
1811 m_copydata(m, 0, pi->ip_off + pi->ip_hlen +
1815 pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen);
1826 pi->ip_hlen = ip6_lasthdr(m, pi->ip_off, IPPROTO_IPV6, &nxt);
1827 pi->ip_hlen -= pi->ip_off;
1834 if (pi->ip_off + pi->ip_hlen > ss->sc->max_tso6_hlen)
1837 if (__predict_false(m->m_len < pi->ip_off + pi->ip_hlen +
1839 m_copydata(m, 0, pi->ip_off + pi->ip_hlen +
1843 pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen);
[all...]
/freebsd-11-stable/sys/dev/qlxge/
H A Dqls_hw.c544 uint32_t ehdrlen, ip_hlen; local
566 ip_hlen = sizeof (struct ip);
568 if (mp->m_len < (ehdrlen + ip_hlen)) {
577 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) <<
591 tx_mac->phdr_length = ip_hlen + ehdrlen +
608 ip_hlen = sizeof(struct ip6_hdr);
610 if (mp->m_len < (ehdrlen + ip_hlen)) {
621 tx_mac->phdr_offsets |= ((ehdrlen + ip_hlen) <<
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c504 int ip_hlen, tcp_hlen; local
528 ip_hlen = ip->ip_hl << 2;
529 eth_hdr_len += ip_hlen;
/freebsd-11-stable/sys/dev/qlxgbe/
H A Dql_hw.c2283 uint32_t ehdrlen, hdrlen, ip_hlen, tcp_hlen, tcp_opt_off; local
2315 ip_hlen = ip->ip_hl << 2;
2320 (ip_hlen != sizeof (struct ip))){
2325 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
2341 ip_hlen = sizeof(struct ip6_hdr);
2348 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
2361 hdrlen = ehdrlen + ip_hlen + tcp_hlen;
2378 tx_cmd->tcp_hdr_off = ip_hlen + ehdrlen;
2407 uint32_t ehdrlen, ip_hlen; local
2435 ip_hlen
[all...]
/freebsd-11-stable/sys/dev/e1000/
H A Dif_igb.c3787 int ctxd, ehdrlen, ip_hlen, tcp_hlen; local
3818 ip_hlen = sizeof(struct ip6_hdr);
3820 th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
3831 ip_hlen = ip->ip_hl << 2;
3832 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
3853 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen - tcp_hlen;
3862 vlan_macip_lens |= ip_hlen;
3908 int ehdrlen, ip_hlen = 0; local
3956 ip_hlen = ip->ip_hl << 2;
3962 ip_hlen
[all...]
H A Dif_lem.c2950 u32 cmd, hdr_len, ip_hlen; local
2980 ip_hlen = ip->ip_hl << 2;
2993 htole16(ehdrlen + ip_hlen);
3000 hdr_len = ehdrlen + ip_hlen;
3006 ip_hlen = sizeof(struct ip6_hdr); /* XXX: No header stacking. */
3010 hdr_len = ehdrlen + ip_hlen;
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Dqlnx_os.c3256 uint32_t ehdrlen = 0, ip_hlen = 0, offset = 0; local
3278 ip_hlen = sizeof (struct ip);
3280 if (mp->m_len < (ehdrlen + ip_hlen)) {
3286 offset = ip_hlen + ehdrlen + (th->th_off << 2);
3292 ip_hlen = sizeof(struct ip6_hdr);
3294 if (mp->m_len < (ehdrlen + ip_hlen)) {
3300 offset = ip_hlen + ehdrlen + (th->th_off << 2);
/freebsd-11-stable/sys/dev/bce/
H A Dif_bce.c7255 int hdr_len, ip_hlen = 0, tcp_hlen = 0, ip_len = 0; local
7297 ip_hlen = ip->ip_hl << 2;
7298 m = m_pullup(*m_head, sizeof(struct ether_header) + ip_hlen +
7307 th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
7311 m = m_pullup(*m_head, sizeof(struct ether_header)+ ip_hlen +
7339 hdr_len = sizeof(struct ether_header) + ip_hlen + tcp_hlen;
7342 "ip_hlen = %d, tcp_hlen = %d, ip_len = %d\n",
7343 __FUNCTION__, hdr_len, (int) sizeof(struct ether_header), ip_hlen,
7350 *flags |= (((ip_hlen + tcp_hlen - sizeof(struct ip) -
/freebsd-11-stable/sys/dev/bxe/
H A Dbxe.c4871 int e_hlen, ip_hlen, l4_off; local
4898 ip_hlen = (ip4->ip_hl << 2);
4907 ip_hlen = sizeof(struct ip6_hdr);
4917 l4_off = (e_hlen + ip_hlen);
4927 th = (struct tcphdr *)(ip + ip_hlen);
4954 int e_hlen, ip_hlen; local
4979 ip_hlen = (ip4->ip_hl << 1);
4988 ip_hlen = (sizeof(struct ip6_hdr) >> 1);
5007 pbd->ip_hlen_w = ip_hlen;
5016 th = (struct tcphdr *)(ip + (ip_hlen <<
[all...]

Completed in 322 milliseconds