Searched refs:data_len (Results 1 - 25 of 75) sorted by relevance

123

/deb_dpdk/lib/librte_ip_frag/
H A Drte_ipv4_fragmentation.c143 out_pkt->data_len = sizeof(struct ipv4_hdr);
165 if (len > (in_seg->data_len - in_seg_data_pos)) {
166 len = in_seg->data_len - in_seg_data_pos;
169 out_seg->data_len = (uint16_t)len;
180 if (unlikely(in_seg_data_pos == in_seg->data_len)) {
H A Drte_ipv6_fragmentation.c141 out_pkt->data_len = sizeof(struct ipv6_hdr) + sizeof(struct ipv6_extension_fragment);
163 if (len > (in_seg->data_len - in_seg_data_pos)) {
164 len = in_seg->data_len - in_seg_data_pos;
167 out_seg->data_len = (uint16_t)len;
179 if (unlikely(in_seg_data_pos == in_seg->data_len)) {
/deb_dpdk/lib/librte_mbuf/
H A Drte_mbuf.h414 uint16_t data_len; /**< Amount of data in segment buffer. */ member in struct:rte_mbuf
1018 m->data_len = 0;
1137 mi->data_len = m->data_len;
1145 mi->pkt_len = mi->data_len;
1158 * - reset pktmbuf data and data_len to their default values.
1183 m->data_len = 0;
1345 m->data_len);
1434 #define rte_pktmbuf_data_len(m) ((m)->data_len)
1463 m->data_len
[all...]
H A Drte_mbuf.c254 fprintf(f, " segment at %p, data=%p, data_len=%u\n",
255 m, rte_pktmbuf_mtod(m, void *), (unsigned)m->data_len);
257 if (len > m->data_len)
258 len = m->data_len;
/deb_dpdk/drivers/net/i40e/
H A Di40e_rxtx_vec_common.h56 rx_bufs[buf_idx]->data_len += rxq->crc_len;
59 start->pkt_len += rx_bufs[buf_idx]->data_len;
68 if (end->data_len > rxq->crc_len) {
69 end->data_len -= rxq->crc_len;
77 secondlast->data_len -= (rxq->crc_len -
78 end->data_len);
94 rx_bufs[buf_idx]->data_len += rxq->crc_len;
/deb_dpdk/app/test-pmd/
H A Dtxonly.c97 while (offset >= seg->data_len) {
98 offset -= seg->data_len;
101 copy_len = seg->data_len - offset;
109 copy_len = seg->data_len;
117 if (offset + len <= pkt->data_len) {
234 pkt->data_len = tx_pkt_seg_lengths[0];
240 pkt_len = pkt->data_len;
249 pkt_seg->data_len = tx_pkt_seg_lengths[i];
250 pkt_len += pkt_seg->data_len;
/deb_dpdk/drivers/net/thunderx/
H A Dnicvf_rxtx.h62 sqe.gather.size = pkt->data_len;
82 pkt->data_len;
/deb_dpdk/app/test/
H A Dpacket_burst_generator.c57 while (offset >= seg->data_len) {
58 offset -= seg->data_len;
61 copy_len = seg->data_len - offset;
76 if (offset + len <= pkt->data_len) {
231 pkt->data_len = pkt_len;
241 pkt_seg->data_len = pkt_len;
H A Dtest_hash.c185 size_t data_len; local
189 /* Randomizing data_len of data set */
190 data_len = (size_t) ((rte_rand() % sizeof(data64)) + 1);
199 hash_val = rte_hash_crc(data64, data_len, init_val);
203 if (hash_val != rte_hash_crc(data64, data_len, init_val)) {
210 if (hash_val != rte_hash_crc(data64, data_len, init_val)) {
217 if (hash_val != rte_hash_crc(data64, data_len, init_val)) {
229 printf("Failed test data (hex, %zu bytes total):\n", data_len);
230 for (j = 0; j < data_len; j++)
232 ((j+1) % 16 == 0 || j == data_len
[all...]
H A Dtest_sched.c131 mbuf->data_len = 60;
/deb_dpdk/drivers/net/ixgbe/
H A Dixgbe_rxtx_vec_common.h55 rx_bufs[buf_idx]->data_len += rxq->crc_len;
58 start->pkt_len += rx_bufs[buf_idx]->data_len;
67 if (end->data_len > rxq->crc_len)
68 end->data_len -= rxq->crc_len;
76 secondlast->data_len -= (rxq->crc_len -
77 end->data_len);
92 rx_bufs[buf_idx]->data_len += rxq->crc_len;
/deb_dpdk/lib/librte_eal/linuxapp/eal/include/exec-env/
H A Drte_kni_common.h127 uint32_t pkt_len; /**< Total pkt len: sum of all segment data_len. */
128 uint16_t data_len; /**< Amount of data in segment buffer. */ member in struct:rte_kni_mbuf
/deb_dpdk/drivers/net/enic/
H A Denic_rxtx.c336 rxmb->data_len = seg_length;
455 unsigned int pkt_len, data_len; local
484 data_len = tx_pkt->data_len;
509 eop = (data_len == pkt_len);
529 wq_enet_desc_enc(&desc_tmp, bus_addr, data_len, mss, 0, 0, eop,
541 data_len = tx_pkt->data_len;
549 &desc_tmp, bus_addr, data_len,
/deb_dpdk/drivers/net/pcap/
H A Drte_eth_pcap.c132 const u_char *data, uint16_t data_len)
139 data_len -= len;
142 while (data_len > 0) {
154 m->data_len = 0;
157 len = RTE_MIN(rte_pktmbuf_tailroom(m), data_len);
161 data_len -= len;
172 uint16_t data_len = 0; local
175 rte_memcpy(data + data_len, rte_pktmbuf_mtod(mbuf, void *),
176 mbuf->data_len);
178 data_len
131 eth_pcap_rx_jumbo(struct rte_mempool *mb_pool, struct rte_mbuf *mbuf, const u_char *data, uint16_t data_len) argument
[all...]
/deb_dpdk/drivers/net/e1000/
H A Dem_rxtx.c570 slen = m_seg->data_len;
780 rxm->data_len = pkt_len;
841 uint16_t data_len; local
897 "status=0x%x data_len=%u",
943 data_len = rte_le_to_cpu_16(rxd.length);
944 rxm->data_len = data_len;
957 first_seg->pkt_len = data_len;
960 first_seg->pkt_len += data_len;
988 if (data_len <
[all...]
H A Digb_rxtx.c585 slen = (uint16_t) m_seg->data_len;
892 rxm->data_len = pkt_len;
960 uint16_t data_len; local
1015 "staterr=0x%x data_len=%u",
1061 data_len = rte_le_to_cpu_16(rxd.wb.upper.length);
1062 rxm->data_len = data_len;
1075 first_seg->pkt_len = data_len;
1078 first_seg->pkt_len += data_len;
1106 if (data_len <
[all...]
/deb_dpdk/lib/librte_eal/linuxapp/kni/
H A Dkni_net.c263 pkt_kva->data_len = len;
347 memcpy(skb_put(skb, kva->data_len),
348 data_kva, kva->data_len);
435 alloc_kva->data_len = len;
529 memcpy(skb_put(skb, kva->data_len),
530 data_kva, kva->data_len);
/deb_dpdk/lib/librte_port/
H A Drte_port_source_sink.c307 pkts[i]->data_len = p->pkt_len[p->pkt_index];
308 pkts[i]->pkt_len = pkts[i]->data_len;
432 jumbo_mbuf->data_len);
433 pkt_index += jumbo_mbuf->data_len;
/deb_dpdk/examples/dpdk_qat/
H A Dcrypto.c786 opData->srcBufferLen = opData->dstBufferLen = rte_buff->data_len;
806 opData->messageLenToCipherInBytes = rte_buff->data_len
819 opData->messageLenToHashInBytes = rte_buff->data_len
832 opData->digestResult = rte_buff->buf_physaddr + rte_buff->data_len;
861 opData->dstBufferLen = opData->srcBufferLen = rte_buff->data_len;
881 opData->messageLenToCipherInBytes = rte_buff->data_len
893 opData->messageLenToHashInBytes = rte_buff->data_len
901 opData->digestResult = rte_buff->buf_physaddr + rte_buff->data_len;
/deb_dpdk/drivers/net/nfp/
H A Dnfp_net_pmd.h192 __le16 data_len; /* Length of frame + meta data */ member in struct:nfp_net_tx_desc::__anon96::__anon97
297 __le16 data_len; member in struct:nfp_net_rx_desc::__anon99::__anon101
H A Dnfp_net.c1778 rxds->rxd.data_len, rxq->mbuf_size);
1781 mb->data_len = rxds->rxd.data_len - NFP_DESC_META_LEN(rxds);
1783 mb->pkt_len = rxds->rxd.data_len - NFP_DESC_META_LEN(rxds);
1785 if (unlikely((mb->data_len + hw->rx_offset) >
1800 mb->data_len);
1988 txds->data_len = pkt->pkt_len;
2001 * mbuf data_len is the data in one segment and pkt_len data
2003 * then data_len = pkt_len
2018 dma_size = pkt->data_len;
[all...]
/deb_dpdk/drivers/net/szedata2/
H A Drte_eth_szedata2.c307 mbuf->data_len = (uint16_t)packet_size;
559 mbuf->data_len = (uint16_t)packet_size;
746 m->data_len);
748 m->data_len;
819 to_write = RTE_MIN(m->data_len,
828 if (m->data_len <= write_len -
850 m->data_len - write_off);
853 (m->data_len - write_off);
854 written += m->data_len - write_off;
/deb_dpdk/drivers/net/mlx5/
H A Dmlx5_utils.h159 #define DATA_LEN(m) ((m)->data_len)
/deb_dpdk/examples/l2fwd-crypto/
H A Dmain.c435 uint32_t ipdata_offset, data_len; local
454 data_len = rte_pktmbuf_data_len(m) - ipdata_offset;
457 data_len -= cparams->digest_length;
469 if (data_len % cparams->block_size)
471 (data_len % cparams->block_size);
482 data_len += pad_len;
497 uint8_t *) + ipdata_offset + data_len;
509 op->sym->auth.data.length = data_len << 3;
512 op->sym->auth.data.length = data_len;
536 op->sym->cipher.data.length = data_len <<
[all...]
/deb_dpdk/drivers/net/virtio/
H A Dvirtio_rxtx.c383 start_dp[idx].len = cookie->data_len;
801 rxm->data_len = (uint16_t)(len[i] - hdr_size);
815 VIRTIO_DUMP_PACKET(rxm, rxm->data_len);
930 rxm->data_len = (uint16_t)(len[0] - hdr_size);
973 rxm->data_len = (uint16_t)(len[extra_idx]);
989 rx_pkts[nb_rx]->data_len);

Completed in 27 milliseconds

123