| /dpdk/drivers/bus/vmbus/ |
| H A D | vmbus_channel.c | 105 const uint32_t hlen = sizeof(pkt); in rte_vmbus_chan_send() local 111 pktlen = hlen + dlen; in rte_vmbus_chan_send() 116 pkt.hdr.hlen = hlen >> VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_send() 121 iov[0].iov_len = hlen; in rte_vmbus_chan_send() 155 pktlen = hlen + dlen; in rte_vmbus_chan_send_sglist() 160 pkt.hdr.hlen = hlen >> VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_send_sglist() 243 if (unlikely(pkt.hlen > pkt.tlen)) { in rte_vmbus_chan_recv() 245 pkt.hlen, pkt.tlen); in rte_vmbus_chan_recv() 250 hlen = pkt.hlen << VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_recv() 288 if (unlikely(pkt.hlen > pkt.tlen)) { in rte_vmbus_chan_recv_raw() [all …]
|
| H A D | rte_vmbus_reg.h | 155 uint16_t hlen; /* header len, in 8 bytes */ member 165 - vmbus_chanpkt_getlen(pkt->hlen); in vmbus_chanpkt_datalen()
|
| H A D | private.h | 145 int vmbus_rxbr_read(struct vmbus_br *rbr, void *data, size_t dlen, size_t hlen);
|
| /dpdk/lib/ipsec/ |
| H A D | esp_inb.c | 254 struct rte_mbuf *mb, uint32_t hlen, rte_be64_t *sqc) in inb_get_sqn() argument 280 uint32_t hlen, union sym_op_data *icv) in inb_prepare() argument 287 plen = plen - hlen; in inb_prepare() 343 struct rte_mbuf *mb, uint32_t hlen, union sym_op_data *icv) in inb_pkt_prepare() argument 348 rc = inb_get_sqn(sa, rsn, mb, hlen, &sqn); in inb_pkt_prepare() 352 rc = inb_prepare(sa, mb, hlen, icv); in inb_pkt_prepare() 414 struct rte_esp_tail *espt, uint32_t *hlen, uint32_t *tofs) in process_step1() argument 420 hlen[0] = mb->l2_len + mb->l3_len; in process_step1() 462 tlen + hlen > mb->pkt_len) in trs_process_check() 530 np = tun_process_step2(mb, ml, hlen, adj, tofs, tlen, sqn); in trs_process_step2() [all …]
|
| H A D | esp_outb.c | 83 sop_ciph_auth_prepare(sop, sa, icv, hlen, plen); in outb_cop_prepare() 87 sop_ciph_auth_prepare(sop, sa, icv, hlen, plen); in outb_cop_prepare() 96 sop_aead_prepare(sop, sa, icv, hlen, plen); in outb_cop_prepare() 105 sop_aead_prepare(sop, sa, icv, hlen, plen); in outb_cop_prepare() 114 sop_aead_prepare(sop, sa, icv, hlen, plen); in outb_cop_prepare() 125 sop_ciph_auth_prepare(sop, sa, icv, hlen, plen); in outb_cop_prepare() 151 hlen = sa->hdr_len + sa->iv_len + sizeof(*esph); in outb_tun_pkt_prepare() 179 ph = rte_pktmbuf_prepend(mb, hlen - l2len); in outb_tun_pkt_prepare() 364 hlen = sa->iv_len + sizeof(*esph); in outb_trs_pkt_prepare() 388 ph = rte_pktmbuf_prepend(mb, hlen); in outb_trs_pkt_prepare() [all …]
|
| H A D | iph.h | 20 remove_esph(char *np, char *op, uint32_t hlen) in remove_esph() argument 24 for (i = hlen; i-- != 0; np[i] = op[i]) in remove_esph() 32 insert_esph(char *np, char *op, uint32_t hlen) in insert_esph() argument 36 for (i = 0; i != hlen; i++) in insert_esph()
|
| H A D | sa.c | 294 esp_outb_init(struct rte_ipsec_sa *sa, uint32_t hlen, uint64_t sqn) in esp_outb_init() argument 313 sa->ctp.cipher.offset = hlen + sizeof(struct rte_esp_hdr) + in esp_outb_init() 319 sa->ctp.cipher.offset = hlen + sizeof(struct rte_esp_hdr); in esp_outb_init() 339 sa->ctp.auth.offset = hlen; in esp_outb_init() 578 uint32_t hlen = prm->tun.hdr_len; in rte_ipsec_sa_init() local 580 hlen += sizeof(struct rte_udp_hdr); in rte_ipsec_sa_init() 581 if (hlen > sizeof(sa->hdr)) in rte_ipsec_sa_init()
|
| /dpdk/drivers/net/vmxnet3/ |
| H A D | vmxnet3_rxtx.c | 542 gdesc->txd.hlen = txm->l2_len + txm->l3_len; in vmxnet3_xmit_pkts() 546 gdesc->txd.msscof = gdesc->txd.hlen + in vmxnet3_xmit_pkts() 550 gdesc->txd.msscof = gdesc->txd.hlen + in vmxnet3_xmit_pkts() 561 gdesc->txd.hlen = 0; in vmxnet3_xmit_pkts() 674 uint32_t hlen, slen; in vmxnet3_guess_mss() local 685 hlen = sizeof(struct rte_ether_hdr); in vmxnet3_guess_mss() 693 hlen += rte_ipv4_hdr_len(ipv4_hdr); in vmxnet3_guess_mss() 700 hlen += sizeof(struct rte_ipv6_hdr); in vmxnet3_guess_mss() 705 &hlen, &frag); in vmxnet3_guess_mss() 713 tcp_hdr = (struct rte_tcp_hdr *)(ptr + hlen); in vmxnet3_guess_mss() [all …]
|
| /dpdk/examples/bpf/ |
| H A D | t1.c | 49 int hlen = iphdr->ihl * 4; in entry() local 50 struct udphdr *udphdr = (void *)iphdr + hlen; in entry()
|
| /dpdk/drivers/net/tap/ |
| H A D | tap_netlink.c | 171 size_t hlen = sizeof(*err); in tap_nl_dump_ext_ack() local 178 hlen += err->msg.nlmsg_len - NLMSG_HDRLEN; in tap_nl_dump_ext_ack() 180 for (attr = tap_nl_attr_first(nh, hlen); in tap_nl_dump_ext_ack()
|
| /dpdk/drivers/net/netvsc/ |
| H A D | hn_rxtx.c | 768 unsigned int i, hlen, count; in hn_nvs_handle_rxbuf() local 784 hlen = vmbus_chanpkt_getlen(hdr->hlen); in hn_nvs_handle_rxbuf() 785 if (unlikely(hlen < sizeof(*pkt))) { in hn_nvs_handle_rxbuf() 798 if (unlikely(hlen < offsetof(struct vmbus_chanpkt_rxbuf, in hn_nvs_handle_rxbuf() 1111 data = (char *)rxq->event_buf + vmbus_chanpkt_getlen(pkt->hlen); in hn_process_events() 1308 unsigned int hlen = m->l2_len + m->l3_len; in hn_encap() local 1343 *pi_data = NDIS_LSO2_INFO_MAKEIPV6(hlen, in hn_encap() 1346 *pi_data = NDIS_LSO2_INFO_MAKEIPV4(hlen, in hn_encap() 1369 *pi_data |= NDIS_TXCSUM_INFO_MKTCPCS(hlen); in hn_encap() 1372 *pi_data |= NDIS_TXCSUM_INFO_MKUDPCS(hlen); in hn_encap()
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_tx.h | 2218 unsigned int ds, dlen, hlen, ntcp, vlan = 0; in mlx5_tx_burst_tso() local 2241 hlen = loc->mbuf->l2_len + vlan + in mlx5_tx_burst_tso() 2243 if (unlikely((!hlen || !loc->mbuf->tso_segsz))) in mlx5_tx_burst_tso() 2246 hlen += loc->mbuf->outer_l2_len + in mlx5_tx_burst_tso() 2249 if (unlikely(hlen > MLX5_MAX_TSO_HEADER || in mlx5_tx_burst_tso() 2250 hlen <= MLX5_ESEG_MIN_INLINE_SIZE || in mlx5_tx_burst_tso() 2251 hlen > (dlen + vlan))) in mlx5_tx_burst_tso() 2261 ds = 4 + (hlen - MLX5_ESEG_MIN_INLINE_SIZE + in mlx5_tx_burst_tso() 2267 ntcp = (dlen + vlan - hlen + in mlx5_tx_burst_tso() 2276 txq->stats.obytes += dlen + vlan + ntcp * hlen; in mlx5_tx_burst_tso() [all …]
|
| /dpdk/drivers/net/vmxnet3/base/ |
| H A D | vmxnet3_defs.h | 158 uint32 hlen:10; /* header len */ member 160 uint32 hlen:10; /* header len */ member
|