Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 15 of 15) sorted by relevance

/dpdk/app/test/
H A Dtest_barrier.c67 uint64_t sum[2]; /* local copy of the shared data */ member
163 lpt->sum[0] += n; in plock_test1_lcore()
164 lpt->sum[1] += n; in plock_test1_lcore()
175 lpt->sum[0], lpt->sum[1]); in plock_test1_lcore()
193 uint64_t *sum; in plock_test() local
202 sum = calloc(n + 1, sizeof(*sum)); in plock_test()
207 if (pt == NULL || lpt == NULL || sum == NULL) { in plock_test()
212 free(sum); in plock_test()
244 sum[i] += lpt[i].sum[0]; in plock_test()
245 sum[i + 1] += lpt[i].sum[1]; in plock_test()
[all …]
H A Dtest_rand_perf.c51 uint64_t sum = 0; in test_rand_perf_type() local
59 sum += rte_rand(); in test_rand_perf_type()
62 sum += 1000. * rte_drand(); in test_rand_perf_type()
65 sum += rte_rand_max(BEST_CASE_BOUND); in test_rand_perf_type()
68 sum += rte_rand_max(WORST_CASE_BOUND); in test_rand_perf_type()
76 vsum = sum; in test_rand_perf_type()
/dpdk/lib/net/
H A Drte_ip.h161 __rte_raw_cksum(const void * buf,size_t len,uint32_t sum) __rte_raw_cksum() argument
194 __rte_raw_cksum_reduce(uint32_t sum) __rte_raw_cksum_reduce() argument
214 uint32_t sum; rte_raw_cksum() local
240 uint32_t sum, tmp; rte_raw_cksum_mbuf() local
588 uint32_t sum; rte_ipv6_phdr_cksum() local
/dpdk/drivers/crypto/caam_jr/
H A Dcaam_jr_pvt.h202 uint32_t sum = 0; in calc_chksum() local
205 for (sum = 0; len > 1; len -= 2) in calc_chksum()
206 sum += *buf++; in calc_chksum()
209 sum += *(unsigned char *)buf; in calc_chksum()
211 sum = (sum >> 16) + (sum & 0xFFFF); in calc_chksum()
212 sum += (sum >> 16); in calc_chksum()
213 result = ~sum; in calc_chksum()
/dpdk/examples/ipsec-secgw/
H A Dipip.h103 unsigned long sum; in ip4_ecn_setup() local
108 sum = old + (~(*(uint8_t *)&ip4->ip_tos) & 0xff); in ip4_ecn_setup()
109 sum += rte_be_to_cpu_16(ip4->ip_sum); in ip4_ecn_setup()
110 sum = (sum & 0xffff) + (sum >> 16); in ip4_ecn_setup()
111 ip4->ip_sum = rte_cpu_to_be_16(sum + (sum >> 16)); in ip4_ecn_setup()
/dpdk/lib/mempool/
H A Drte_mempool.c1218 struct rte_mempool_debug_stats sum; in rte_mempool_dump() local
1269 memset(&sum, 0, sizeof(sum)); in rte_mempool_dump()
1271 sum.put_bulk += mp->stats[lcore_id].put_bulk; in rte_mempool_dump()
1272 sum.put_objs += mp->stats[lcore_id].put_objs; in rte_mempool_dump()
1273 sum.put_common_pool_bulk += mp->stats[lcore_id].put_common_pool_bulk; in rte_mempool_dump()
1274 sum.put_common_pool_objs += mp->stats[lcore_id].put_common_pool_objs; in rte_mempool_dump()
1275 sum.get_common_pool_bulk += mp->stats[lcore_id].get_common_pool_bulk; in rte_mempool_dump()
1276 sum.get_common_pool_objs += mp->stats[lcore_id].get_common_pool_objs; in rte_mempool_dump()
1277 sum.get_success_bulk += mp->stats[lcore_id].get_success_bulk; in rte_mempool_dump()
1278 sum.get_success_objs += mp->stats[lcore_id].get_success_objs; in rte_mempool_dump()
[all …]
/dpdk/drivers/crypto/dpaa2_sec/
H A Ddpaa2_sec_priv.h1005 uint32_t sum = 0; in calc_chksum() local
1008 for (sum = 0; len > 1; len -= 2) in calc_chksum()
1009 sum += *buf++; in calc_chksum()
1012 sum += *(unsigned char *)buf; in calc_chksum()
1014 sum = (sum >> 16) + (sum & 0xFFFF); in calc_chksum()
1015 sum += (sum >> 16); in calc_chksum()
1016 result = ~sum; in calc_chksum()
/dpdk/lib/timer/
H A Drte_timer.c1037 struct rte_timer_debug_stats sum; in __rte_timer_dump_stats() local
1041 memset(&sum, 0, sizeof(sum)); in __rte_timer_dump_stats()
1043 sum.reset += priv_timer[lcore_id].stats.reset; in __rte_timer_dump_stats()
1044 sum.stop += priv_timer[lcore_id].stats.stop; in __rte_timer_dump_stats()
1045 sum.manage += priv_timer[lcore_id].stats.manage; in __rte_timer_dump_stats()
1046 sum.pending += priv_timer[lcore_id].stats.pending; in __rte_timer_dump_stats()
1049 fprintf(f, " reset = %"PRIu64"\n", sum.reset); in __rte_timer_dump_stats()
1050 fprintf(f, " stop = %"PRIu64"\n", sum.stop); in __rte_timer_dump_stats()
1051 fprintf(f, " manage = %"PRIu64"\n", sum.manage); in __rte_timer_dump_stats()
1052 fprintf(f, " pending = %"PRIu64"\n", sum.pending); in __rte_timer_dump_stats()
/dpdk/usertools/telemetry-endpoints/
H A Dmemory.py35 (MEM_TOTAL, sum(end - start for (start, end) in zones.items()), {}),
/dpdk/lib/eal/common/
H A Drte_service.c913 uint64_t sum = 0; in rte_service_attr_get()
920 sum += lcore_attr_get(id, lcore); in rte_service_attr_get()
923 return sum; in rte_service_attr_get()
886 uint64_t sum = 0; attr_get() local
/dpdk/lib/pdump/
H A Drte_pdump.c715 uint64_t *sum = (uint64_t *)total; in pdump_sum_stats() local
725 sum[i] += val; in pdump_sum_stats()
/dpdk/doc/guides/prog_guide/
H A Dtoeplitz_hash_lib.rst10 to calculate the RSS hash sum to spread the traffic among the queues.
22 There are four functions that provide calculation of the Toeplitz hash sum:
/dpdk/doc/guides/howto/
H A Dvfd.rst355 is a relative value as a percentage. The sum of all the bandwidth should
/dpdk/doc/guides/eventdevs/
H A Ddlb2.rst355 The sum of the cos_bw values may not exceed 100, and no more than
/dpdk/doc/guides/sample_app_ug/
H A Dipsec_secgw.rst647 number of bytes should be same as the sum of specified AEAD algorithm