Home
last modified time | relevance | path

Searched refs:ehdrlen (Results 1 – 6 of 6) sorted by relevance

/dragonfly/sys/dev/netif/oce/
H A Doce_if.c1034 int total_len = 0, ehdrlen = 0; in oce_tso_setup() local
1049 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in oce_tso_setup()
1052 ehdrlen = ETHER_HDR_LEN; in oce_tso_setup()
1058 ip = (struct ip *)(m->m_data + ehdrlen); in oce_tso_setup()
1063 total_len = ehdrlen + (ip->ip_hl << 2) + (th->th_off << 2); in oce_tso_setup()
1068 ip6 = (struct ip6_hdr *)(m->m_data + ehdrlen); in oce_tso_setup()
1073 total_len = ehdrlen + sizeof(struct ip6_hdr) + (th->th_off << 2); in oce_tso_setup()
/dragonfly/sys/dev/netif/em/
H A Dif_em.c3118 int curr_txd, ehdrlen, csum_flags; in em_txcsum() local
3123 ehdrlen = mp->m_pkthdr.csum_lhlen; in em_txcsum()
3125 if (adapter->csum_lhlen == ehdrlen && in em_txcsum()
3153 TXD->lower_setup.ip_fields.ipcss = ehdrlen; in em_txcsum()
3155 htole16(ehdrlen + ip_hlen - 1); in em_txcsum()
3157 ehdrlen + offsetof(struct ip, ip_sum); in em_txcsum()
3161 hdr_len = ehdrlen + ip_hlen; in em_txcsum()
3192 adapter->csum_lhlen = ehdrlen; in em_txcsum()
/dragonfly/sys/dev/netif/emx/
H A Dif_emx.c2653 int curr_txd, ehdrlen, csum_flags; in emx_txcsum() local
2658 ehdrlen = mp->m_pkthdr.csum_lhlen; in emx_txcsum()
2661 tdata->csum_lhlen == ehdrlen && tdata->csum_iphlen == ip_hlen && in emx_txcsum()
2688 TXD->lower_setup.ip_fields.ipcss = ehdrlen; in emx_txcsum()
2690 htole16(ehdrlen + ip_hlen - 1); in emx_txcsum()
2692 ehdrlen + offsetof(struct ip, ip_sum); in emx_txcsum()
2696 hdr_len = ehdrlen + ip_hlen; in emx_txcsum()
2727 tdata->csum_lhlen = ehdrlen; in emx_txcsum()
/dragonfly/sys/dev/netif/ix/
H A Dif_ix.c2224 int ehdrlen, ip_hlen = 0, ctxd; in ix_tx_ctx_setup() local
2253 ehdrlen = mp->m_pkthdr.csum_lhlen; in ix_tx_ctx_setup()
2254 KASSERT(ehdrlen > 0, ("invalid ether hlen")); in ix_tx_ctx_setup()
2255 vlan_macip_lens |= ehdrlen << IXGBE_ADVTXD_MACLEN_SHIFT; in ix_tx_ctx_setup()
2301 int ctxd, ehdrlen, ip_hlen, tcp_hlen; in ix_tso_ctx_setup() local
2303 ehdrlen = mp->m_pkthdr.csum_lhlen; in ix_tso_ctx_setup()
2304 KASSERT(ehdrlen > 0, ("invalid ether hlen")); in ix_tso_ctx_setup()
2319 vlan_macip_lens |= ehdrlen << IXGBE_ADVTXD_MACLEN_SHIFT; in ix_tso_ctx_setup()
2345 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen - tcp_hlen; in ix_tso_ctx_setup()
/dragonfly/sys/dev/virtual/amazon/ena/
H A Dena.c2648 int ehdrlen; in ena_tx_csum() local
2675 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in ena_tx_csum()
2678 ehdrlen = ETHER_HDR_LEN; in ena_tx_csum()
2681 ip = (struct ip *)(mbuf->m_data + ehdrlen); in ena_tx_csum()
2727 ena_meta->l3_hdr_offset = ehdrlen; in ena_tx_csum()
/dragonfly/sys/dev/netif/igb/
H A Dif_igb.c2108 int ehdrlen, ctxd, ip_hlen = 0; in igb_txcsum_ctx() local
2133 ehdrlen = mp->m_pkthdr.csum_lhlen; in igb_txcsum_ctx()
2134 KASSERT(ehdrlen > 0, ("invalid ether hlen")); in igb_txcsum_ctx()
2137 vlan_macip_lens |= ehdrlen << E1000_ADVTXD_MACLEN_SHIFT; in igb_txcsum_ctx()