Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 25 of 30) sorted by relevance

12

/f-stack/dpdk/examples/pipeline/examples/
H A Dvxlan.spec16 bit<16> total_len
86 // Ethernet (14) | IPv4 (total_len)
108 // Once the total length of the inner IPv4 packet (h.ipv4.total_len) is known,
110 // - h.outer_ipv4.total_len = t.ipv4_total_len + h.ipv4.total_len
111 // - h.outer_ipv4.hdr_checksum = t.ipv4_hdr_checksum + h.ipv4.total_len
112 // - h.outer_udp.length = t.udp_length + h.ipv4.total_len
124 //Update h.outer_ipv4.total_len field.
125 add h.outer_ipv4.total_len h.ipv4.total_len
128 ckadd h.outer_ipv4.hdr_checksum h.ipv4.total_len
131 add h.outer_udp.length h.ipv4.total_len
/f-stack/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_crc.c32 nfp_crc32_posix_end(uint32_t crc, size_t total_len) in nfp_crc32_posix_end() argument
35 while (total_len != 0) { in nfp_crc32_posix_end()
36 uint8_t c = total_len & 0xff; in nfp_crc32_posix_end()
39 total_len >>= 8; in nfp_crc32_posix_end()
/f-stack/tools/compat/
H A Dsysctl.c39 size_t total_len; in sysctl() local
57 total_len = namelen * sizeof(int) + sizeof(size_t) + oldlen + newlen; in sysctl()
58 if (total_len > msg->buf_len) { in sysctl()
59 extra_buf = rte_malloc(NULL, total_len, 0); in sysctl()
68 msg->buf_len = total_len; in sysctl()
/f-stack/freebsd/netinet/
H A Dsctp_bsd_addr.c394 int total_len; in sctp_packet_log() local
404 total_len = SCTP_SIZE32((length + (4 * sizeof(int)))); in sctp_packet_log()
406 if (total_len > SCTP_PACKET_LOG_SIZE) { in sctp_packet_log()
420 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
424 thisend = total_len; in sctp_packet_log()
434 newval = SCTP_BASE_VAR(packet_log_end) + total_len; in sctp_packet_log()
438 thisend = total_len; in sctp_packet_log()
459 *lenat = total_len; in sctp_packet_log()
H A Dtcp_output.c1863 int total_len; in tcp_addoptions() local
1866 total_len = TCPOLEN_FAST_OPEN_EMPTY + to->to_tfo_len; in tcp_addoptions()
1867 if (TCP_MAXOLEN - optlen < total_len) { in tcp_addoptions()
1872 *optp++ = total_len; in tcp_addoptions()
1877 optlen += total_len; in tcp_addoptions()
/f-stack/dpdk/drivers/crypto/aesni_gcm/
H A Daesni_gcm_pmd.c288 while (total_len) { in process_gcm_crypto_op()
299 m_src->data_len : total_len; in process_gcm_crypto_op()
304 total_len -= part_len; in process_gcm_crypto_op()
328 while (total_len) { in process_gcm_crypto_op()
339 m_src->data_len : total_len; in process_gcm_crypto_op()
345 total_len -= part_len; in process_gcm_crypto_op()
365 while (total_len) { in process_gcm_crypto_op()
372 m_src->data_len : total_len; in process_gcm_crypto_op()
377 total_len -= part_len; in process_gcm_crypto_op()
400 while (total_len) { in process_gcm_crypto_op()
[all …]
/f-stack/freebsd/ddb/
H A Ddb_textdump.c336 u_int i, len, offset, seq, total_len; in textdump_dump_msgbuf() local
352 total_len = 0; in textdump_dump_msgbuf()
365 total_len += offset; in textdump_dump_msgbuf()
369 total_len += offset; /* Without the zero-padding. */ in textdump_dump_msgbuf()
382 total_len); in textdump_dump_msgbuf()
/f-stack/dpdk/drivers/net/hinic/
H A Dhinic_pmd_tx.c454 u32 total_len, limit_len, checked_len, left_len, adjust_mss; in hinic_is_tso_sge_valid() local
474 total_len = 0; in hinic_is_tso_sge_valid()
476 total_len += mbuf->data_len; in hinic_is_tso_sge_valid()
479 if (total_len >= limit_len) { in hinic_is_tso_sge_valid()
485 checked_len += total_len; in hinic_is_tso_sge_valid()
1047 u16 i, total_len, sge_cnt = mbuf_pkt->nb_segs; in hinic_get_sge_txoff_info() local
1068 total_len = 0; in hinic_get_sge_txoff_info()
1071 total_len += mbuf->data_len; in hinic_get_sge_txoff_info()
1076 if ((u32)(total_len + (u16)HINIC_COPY_MBUF_SIZE) < in hinic_get_sge_txoff_info()
/f-stack/dpdk/examples/fips_validation/
H A Dmain.c500 uint32_t total_len = val->len; in prepare_data_mbufs() local
507 if (total_len > RTE_MBUF_MAX_NB_SEGS) { in prepare_data_mbufs()
512 nb_seg = total_len / env.mbuf_data_room; in prepare_data_mbufs()
513 if (total_len % env.mbuf_data_room) in prepare_data_mbufs()
525 uint16_t len = RTE_MIN(total_len, env.mbuf_data_room); in prepare_data_mbufs()
546 total_len -= len; in prepare_data_mbufs()
548 if (total_len) { in prepare_data_mbufs()
568 if (total_len) { in prepare_data_mbufs()
1108 uint16_t total_len = data_len + env.digest_len; in get_writeback_data() local
1117 wb_data = dst = calloc(1, total_len); in get_writeback_data()
[all …]
/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_memory.c396 uint64_t *total_len = arg; in physmem_size() local
401 *total_len += msl->memseg_arr.count * msl->page_sz; in physmem_size()
410 uint64_t total_len = 0; in rte_eal_get_physmem_size() local
412 rte_memseg_list_walk(physmem_size, &total_len); in rte_eal_get_physmem_size()
414 return total_len; in rte_eal_get_physmem_size()
/f-stack/freebsd/net/
H A Dslcompress.c453 sl_uncompress_tcp_core(u_char *buf, int buflen, int total_len, u_int type, in sl_uncompress_tcp_core() argument
571 total_len += cs->cs_hlen - vjlen; in sl_uncompress_tcp_core()
572 cs->cs_ip.ip_len = htons(total_len); in sl_uncompress_tcp_core()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c1267 uint_t aad_len = 0, total_len = 0; in zio_crypt_init_uios_zil() local
1367 total_len += crypt_len; in zio_crypt_init_uios_zil()
1375 total_len += crypt_len; in zio_crypt_init_uios_zil()
1383 total_len += crypt_len; in zio_crypt_init_uios_zil()
1398 *enc_len = total_len; in zio_crypt_init_uios_zil()
1421 uint_t aad_len = 0, total_len = 0; in zio_crypt_init_uios_dnode() local
1527 total_len += crypt_len; in zio_crypt_init_uios_dnode()
1547 *enc_len = total_len; in zio_crypt_init_uios_dnode()
/f-stack/dpdk/drivers/net/fm10k/base/
H A Dfm10k_mbx.c302 u16 total_len = 0, msg_len; in fm10k_mbx_validate_msg_size() local
312 msg = fifo->buffer + fm10k_fifo_tail_offset(fifo, total_len); in fm10k_mbx_validate_msg_size()
314 total_len += msg_len; in fm10k_mbx_validate_msg_size()
315 } while (total_len < len); in fm10k_mbx_validate_msg_size()
318 if ((len < total_len) && (msg_len <= mbx->max_size)) in fm10k_mbx_validate_msg_size()
322 return (len < total_len) ? len : (len - total_len); in fm10k_mbx_validate_msg_size()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c1396 uint_t aad_len = 0, nr_iovecs = 0, total_len = 0; in zio_crypt_init_uios_zil() local
1517 total_len += crypt_len; in zio_crypt_init_uios_zil()
1528 total_len += crypt_len; in zio_crypt_init_uios_zil()
1537 total_len += crypt_len; in zio_crypt_init_uios_zil()
1542 *enc_len = total_len; in zio_crypt_init_uios_zil()
1589 uint_t aad_len = 0, nr_iovecs = 0, total_len = 0; in zio_crypt_init_uios_dnode() local
1719 total_len += crypt_len; in zio_crypt_init_uios_dnode()
1729 *enc_len = total_len; in zio_crypt_init_uios_dnode()
/f-stack/freebsd/contrib/zstd/lib/common/
H A Dxxhash.h268 unsigned long long total_len; member
H A Dxxhash.c671 state->total_len += len; in XXH64_update_endian()
737 if (state->total_len >= 32) { in XXH64_digest_endian()
752 h64 += (U64) state->total_len; in XXH64_digest_endian()
/f-stack/dpdk/drivers/crypto/qat/
H A Dqat_sym_hw_dp.c32 uint32_t total_len; in qat_sym_dp_parse_data_vec() local
45 total_len = 0; in qat_sym_dp_parse_data_vec()
57 if (total_len + data[i].len > UINT32_MAX) { in qat_sym_dp_parse_data_vec()
61 total_len += data[i].len; in qat_sym_dp_parse_data_vec()
68 return total_len; in qat_sym_dp_parse_data_vec()
/f-stack/dpdk/drivers/net/liquidio/
H A Dlio_rxtx.c280 lio_droq_get_bufcount(uint32_t buf_size, uint32_t total_len) in lio_droq_get_bufcount() argument
284 while (total_len > (buf_size * buf_cnt)) in lio_droq_get_bufcount()
394 uint32_t total_len = 0; in lio_droq_fast_process_packet() local
410 total_len += (uint32_t)info->length; in lio_droq_fast_process_packet()
575 droq->stats.bytes_received += total_len; in lio_droq_fast_process_packet()
/f-stack/dpdk/drivers/raw/octeontx2_ep/
H A Dotx2_ep_enqdeq.c697 uint32_t total_len = 0; in sdp_droq_read_packet() local
709 total_len += (uint32_t)info->length; in sdp_droq_read_packet()
/f-stack/freebsd/contrib/openzfs/contrib/pam_zfs_key/
H A Dpam_zfs_key.c504 size_t total_len = strlen(config->homes_prefix) + 1 in zfs_key_config_get_dataset() local
506 if (total_len > len) { in zfs_key_config_get_dataset()
/f-stack/dpdk/lib/librte_vhost/
H A Dvirtio_net.c2068 uint32_t total_len = RTE_PKTMBUF_HEADROOM + size; in virtio_dev_extbuf_alloc() local
2073 total_len += sizeof(*shinfo) + sizeof(uintptr_t); in virtio_dev_extbuf_alloc()
2074 total_len = RTE_ALIGN_CEIL(total_len, sizeof(uintptr_t)); in virtio_dev_extbuf_alloc()
2076 if (unlikely(total_len > UINT16_MAX)) in virtio_dev_extbuf_alloc()
2079 buf_len = total_len; in virtio_dev_extbuf_alloc()
/f-stack/dpdk/drivers/regex/octeontx2/
H A Dotx2_regexdev_mbox.c356 req->total_len = db_len; in ree_db_msg()
/f-stack/dpdk/drivers/raw/dpaa2_qdma/
H A Ddpaa2_qdma.c241 uint32_t total_len = 0; in qdma_populate_sg_entry() local
279 total_len += jobs[i]->len; in qdma_populate_sg_entry()
292 return total_len; in qdma_populate_sg_entry()
/f-stack/dpdk/drivers/net/qede/
H A Dqede_debug.c1981 u32 total_len, in qed_grc_dump_reg_entry_skip() argument
1986 offset += qed_grc_dump_reg_entry_hdr(dump_buf, dump, addr, total_len); in qed_grc_dump_reg_entry_skip()
1989 return offset + total_len; in qed_grc_dump_reg_entry_skip()
1991 while (reg_offset < total_len) { in qed_grc_dump_reg_entry_skip()
1993 total_len - reg_offset); in qed_grc_dump_reg_entry_skip()
2003 if (reg_offset < total_len) { in qed_grc_dump_reg_entry_skip()
2005 total_len - skip_len); in qed_grc_dump_reg_entry_skip()
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_vfio.c150 uint64_t total_len = src->len; in adjust_map() local
163 end->len = total_len - src->len - tmp.len; in adjust_map()

12