Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 48) sorted by relevance

12

/dpdk/app/test/
H A Dtest_telemetry_json.c14 const char *expected = "[\"meaning of life\",42]"; in test_basic_array() local
27 printf("buf = '%s', expected = '%s'\n", buf, expected); in test_basic_array()
28 if (used != (int)strlen(expected)) in test_basic_array()
30 return strncmp(expected, buf, sizeof(buf)); in test_basic_array()
36 const char *expected = "{\"weddings\":4,\"funerals\":1}"; in test_basic_obj() local
45 printf("%s: buf = '%s', expected = '%s'\n", __func__, buf, expected); in test_basic_obj()
46 if (used != (int)strlen(expected)) in test_basic_obj()
48 return strncmp(expected, buf, sizeof(buf)); in test_basic_obj()
56 const char *expected = "[\"Arsenal\",\"Chelsea\"]"; in test_overflow_array() local
64 printf("%s: buf = '%s', expected = '%s'\n", __func__, buf, expected); in test_overflow_array()
[all …]
H A Dtest_atomic.c266 rte_int128_t expected; in test_atomic128_cmp_exchange() local
273 expected = count128; in test_atomic128_cmp_exchange()
279 desired.val[0] = expected.val[0] + 2; in test_atomic128_cmp_exchange()
280 desired.val[1] = expected.val[1] + 1; in test_atomic128_cmp_exchange()
283 &expected, &desired, 1, in test_atomic128_cmp_exchange()
290 desired.val[0] = expected.val[0] + 2; in test_atomic128_cmp_exchange()
291 desired.val[1] = expected.val[1] + 1; in test_atomic128_cmp_exchange()
294 &expected, &desired, 1, in test_atomic128_cmp_exchange()
301 desired.val[0] = expected.val[0] + 2; in test_atomic128_cmp_exchange()
302 desired.val[1] = expected.val[1] + 1; in test_atomic128_cmp_exchange()
[all …]
H A Dtest_net_ether.c69 const struct rte_ether_addr expected = { in test_unformat_addr() local
82 RTE_TEST_ASSERT(rte_is_same_ether_addr(&expected, &result), in test_unformat_addr()
89 RTE_TEST_ASSERT(rte_is_same_ether_addr(&expected, &result), in test_unformat_addr()
96 RTE_TEST_ASSERT(rte_is_same_ether_addr(&expected, &result), in test_unformat_addr()
H A Dtest_table.h83 #define VERIFY_TRAFFIC(ring, sent, expected) do { \ argument
97 printf("Expected %d, got %d\n", expected, n); \
98 if (n != (expected)) { \
H A Dtest_telemetry_data.c85 check_output(const char *func_name, const char *expected) in check_output() argument
101 printf("%s: buf = '%s', expected = '%s'\n", func_name, buf, expected); in check_output()
102 return strncmp(expected, buf, sizeof(buf)); in check_output()
H A Dtest_pdcp.c525 pdcp_known_vec_verify(struct rte_mbuf *m, const uint8_t *expected, uint32_t expected_pkt_len) in pdcp_known_vec_verify() argument
532 debug_hexdump(stdout, "Expected:", expected, expected_pkt_len); in pdcp_known_vec_verify()
539 TEST_ASSERT_BUFFERS_ARE_EQUAL(actual, expected, expected_pkt_len, in pdcp_known_vec_verify()
880 const uint8_t *data, *expected; in create_test_conf_from_index() local
1024 expected = pdcp_test_data_out_get(suite_type, index); in create_test_conf_from_index()
1026 expected = pdcp_test_data_in_get(suite_type, index); in create_test_conf_from_index()
1033 expected += pdcp_hdr_sz; in create_test_conf_from_index()
1042 memcpy(conf->output, expected, expected_len); in create_test_conf_from_index()
H A Dtest_cryptodev_crosscheck.c804 buffers_compare(const uint8_t *expected, uint16_t expected_len, in buffers_compare() argument
810 if (memcmp(expected, received, expected_len)) { in buffers_compare()
811 rte_hexdump(rte_log_get_stream(), "expected", expected, expected_len); in buffers_compare()
/dpdk/lib/eal/include/generic/
H A Drte_pause.h35 * Wait for *addr to be updated with a 16-bit expected value, with a relaxed
40 * @param expected
41 * A 16-bit expected value to be in the memory location.
47 rte_wait_until_equal_16(volatile uint16_t *addr, uint16_t expected,
51 * Wait for *addr to be updated with a 32-bit expected value, with a relaxed
56 * @param expected
57 * A 32-bit expected value to be in the memory location.
63 rte_wait_until_equal_32(volatile uint32_t *addr, uint32_t expected,
67 * Wait for *addr to be updated with a 64-bit expected value, with a relaxed
72 * @param expected
80 rte_wait_until_equal_16(volatile uint16_t * addr,uint16_t expected,rte_memory_order memorder) rte_wait_until_equal_16() argument
91 rte_wait_until_equal_32(volatile uint32_t * addr,uint32_t expected,rte_memory_order memorder) rte_wait_until_equal_32() argument
102 rte_wait_until_equal_64(volatile uint64_t * addr,uint64_t expected,rte_memory_order memorder) rte_wait_until_equal_64() argument
128 RTE_WAIT_UNTIL_MASKED(addr,mask,cond,expected,memorder) global() argument
[all...]
/dpdk/lib/eal/arm/include/
H A Drte_pause_64.h164 rte_wait_until_equal_16(volatile uint16_t *addr, uint16_t expected, in rte_wait_until_equal_16()
173 if (value != expected) { in rte_wait_until_equal_32()
178 } while (value != expected); in rte_wait_until_equal_32()
183 rte_wait_until_equal_32(volatile uint32_t *addr, uint32_t expected, in rte_wait_until_equal_32()
192 if (value != expected) { in rte_wait_until_equal_64()
197 } while (value != expected); in rte_wait_until_equal_64()
202 rte_wait_until_equal_64(volatile uint64_t *addr, uint64_t expected, in rte_wait_until_equal_64()
211 if (value != expected) {
216 } while (value != expected);
220 #define RTE_WAIT_UNTIL_MASKED(addr, mask, cond, expected, memorde
152 rte_wait_until_equal_16(volatile uint16_t * addr,uint16_t expected,rte_memory_order memorder) rte_wait_until_equal_16() argument
171 rte_wait_until_equal_32(volatile uint32_t * addr,uint32_t expected,rte_memory_order memorder) rte_wait_until_equal_32() argument
190 rte_wait_until_equal_64(volatile uint64_t * addr,uint64_t expected,rte_memory_order memorder) rte_wait_until_equal_64() argument
208 RTE_WAIT_UNTIL_MASKED(addr,mask,cond,expected,memorder) global() argument
[all...]
H A Drte_atomic_64.h114 rte_int128_t expected = *exp; in rte_atomic128_cmp_exchange() local
170 if (likely(old.int128 == expected.int128)) { in rte_atomic128_cmp_exchange()
177 * weak == 0 is implemented), expected should contain in rte_atomic128_cmp_exchange()
198 return (old.int128 == expected.int128); in rte_atomic128_cmp_exchange()
/dpdk/lib/eal/include/
H A Drte_stdatomic.h77 #define rte_atomic_compare_exchange_strong_explicit(ptr, expected, desired, \
79 atomic_compare_exchange_strong_explicit(ptr, expected, desired, \
82 #define rte_atomic_compare_exchange_weak_explicit(ptr, expected, desired, \
84 atomic_compare_exchange_weak_explicit(ptr, expected, desired, \
144 #define rte_atomic_compare_exchange_strong_explicit(ptr, expected, desired, \
146 __atomic_compare_exchange_n(ptr, expected, desired, 0, \
149 #define rte_atomic_compare_exchange_weak_explicit(ptr, expected, desired, \
151 __atomic_compare_exchange_n(ptr, expected, desired, 1, \
81 rte_atomic_compare_exchange_strong_explicit(ptr,expected,desired,succ_memorder,fail_memorder) global() argument
86 rte_atomic_compare_exchange_weak_explicit(ptr,expected,desired,succ_memorder,fail_memorder) global() argument
H A Drte_mcslock.h150 rte_mcslock_t *expected = NULL; in rte_mcslock_trylock() local
158 return rte_atomic_compare_exchange_strong_explicit(msl, &expected, me, in rte_mcslock_trylock()
/dpdk/lib/eal/common/
H A Deal_common_memalloc.c90 rte_iova_t cur, expected; in eal_memalloc_is_contig() local
101 expected = cur + pgsz; in eal_memalloc_is_contig()
106 if (cur != expected) in eal_memalloc_is_contig()
109 expected += pgsz; in eal_memalloc_is_contig()
113 rte_iova_t cur, expected; in eal_memalloc_is_contig() local
130 expected = cur + pgsz; in eal_memalloc_is_contig()
137 cur_seg++, expected += pgsz) { in eal_memalloc_is_contig()
140 if (ms->iova != expected) in eal_memalloc_is_contig()
H A Deal_common_proc.c1280 uint8_t expected; in set_mp_status() local
1283 expected = MP_STATUS_UNKNOWN; in set_mp_status()
1285 if (rte_atomic_compare_exchange_strong_explicit(&mcfg->mp_status, &expected, desired, in set_mp_status()
/dpdk/doc/guides/tools/
H A Dtestbbdev.rst105 - Compares the dequeued data buffer with a expected values in the test
134 - Dequeued data is not validated against expected values stored in TV
233 rate matching is expected, or crc_fail when a CRC failure is expected.
474 Chain of operation statuses that are expected after operation is performed.
485 ``OK`` means no errors are expected. Cannot be used with other values.
557 Chain of operation statuses that are expected after operation is performed.
566 ``OK`` means no errors are expected. Cannot be used with other values.
678 Chain of operation statuses that are expected after operation is performed.
689 ``OK`` means no errors are expected. Cannot be used with other values.
788 Chain of operation statuses that are expected after operation is performed.
[all …]
/dpdk/drivers/raw/cnxk_gpio/
H A Dcnxk_gpio_selftest.c66 cnxk_gpio_validate_attr(char *attr, const char *expected) in cnxk_gpio_validate_attr() argument
75 if (strncmp(buf, expected, sizeof(buf))) in cnxk_gpio_validate_attr()
/dpdk/doc/guides/sample_app_ug/
H A Dfips_validation.rst37 * The application does not supply the test vectors. The user is expected to
57 * The application does not supply the test vectors. The user is expected to
H A Dtest_pipeline.rst64 …The key size specialized implementations are expected to provide better performance for 8-byte and…
65 …while the key-size-non-specialized implementation is expected to provide better performance for la…
H A Dqos_metering.rst80 and green, the expected output traffic should be marked as shown in the following table:
/dpdk/lib/efd/
H A Drte_efd.c427 * expected bit should be set in the lookup_table in efd_search_hash()
437 efd_lookuptbl_t expected = in efd_search_hash() local
441 * Add the expected bit (if set) to a map in efd_search_hash()
445 lookup_table |= expected << bucket_idx; in efd_search_hash()
446 lookup_table_complement |= (1 - expected) in efd_search_hash()
/dpdk/doc/guides/prog_guide/
H A Dpdcp_lib.rst112 For example, when control PDUs are received, no cryptodev enqueue-dequeue is expected
113 for the same and lib PDCP is expected to handle it differently.
H A Dglossary.rst64 services expected from the EAL are: development kit loading and launching,
/dpdk/doc/guides/nics/
H A Dbuild_and_test.rst46 on data path APIs, so performance downgrade is expected when enabling those options.
/dpdk/lib/vhost/
H A Dvhost.h952 bool expected = false;
955 if (rte_atomic_compare_exchange_strong_explicit(&vq->irq_pending, &expected, true, in vhost_vring_call_split()
917 bool expected = false; vhost_vring_inject_irq() local
/dpdk/doc/guides/dmadevs/
H A Dioat.rst95 It is expected that, for efficiency reasons, a burst of operations will be enqueued to the

12