* |WARNING| pw143189 [RFC 4/6] app/test: add unit tests for soring API
[not found] <20240815085339.1434-5-konstantin.v.ananyev@yandex.ru>
@ 2024-08-15 8:55 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2024-08-15 8:55 UTC (permalink / raw)
To: test-report; +Cc: Konstantin Ananyev
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/143189
_coding style issues_
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#45:
Subject: [RFC 4/6] app/test: add unit tests for soring API
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#67:
Add both functional and stess test-cases for soring API.
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#68:
Stress test serves as both functional and performance test of soring
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#96: FILE: app/test/meson.build:178:
+ 'test_soring.c': [],
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#97: FILE: app/test/meson.build:179:
+ 'test_soring_mt_stress.c': [],
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#98: FILE: app/test/meson.build:180:
+ 'test_soring_stress.c': [],
WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#114: FILE: app/test/test_soring.c:7:
+#include <stdio.h>
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#135: FILE: app/test/test_soring.c:28:
+#include <rte_soring.h>
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#141: FILE: app/test/test_soring.c:34:
+#define SORING_TEST_ASSERT(val, expected) do { \
WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#141: FILE: app/test/test_soring.c:34:
+#define SORING_TEST_ASSERT(val, expected) do { \
+ RTE_TEST_ASSERT(expected == val, \
+ "%s: expected %u got %u
", #val, expected, val); \
+} while (0)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#147: FILE: app/test/test_soring.c:40:
+set_soring_init_param(struct rte_soring_param *prm,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#147: FILE: app/test/test_soring.c:40:
+set_soring_init_param(struct rte_soring_param *prm,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#163: FILE: app/test/test_soring.c:56:
+move_forward_stage(struct rte_soring *sor,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#170: FILE: app/test/test_soring.c:63:
+ acquired = rte_soring_acquire(sor, acquired_objs, NULL, stage,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#172: FILE: app/test/test_soring.c:65:
+ SORING_TEST_ASSERT(acquired, num_packets);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#173: FILE: app/test/test_soring.c:66:
+ rte_soring_release(sor, NULL, NULL, stage, num_packets,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#180: FILE: app/test/test_soring.c:73:
+ * struct rte_soring_param param checking.
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#183: FILE: app/test/test_soring.c:76:
+test_soring_init(void)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#185: FILE: app/test/test_soring.c:78:
+ struct rte_soring *sor = NULL;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#186: FILE: app/test/test_soring.c:79:
+ struct rte_soring_param prm;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#192: FILE: app/test/test_soring.c:85:
+ set_soring_init_param(&prm, "alloc_memory", sizeof(uintptr_t),
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#194: FILE: app/test/test_soring.c:87:
+ sz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#196: FILE: app/test/test_soring.c:89:
+ RTE_TEST_ASSERT_NOT_NULL(sor, "could not allocate memory for soring");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#198: FILE: app/test/test_soring.c:91:
+ set_soring_init_param(&prm, "test_invalid_stages", sizeof(uintptr_t),
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#200: FILE: app/test/test_soring.c:93:
+ rc = rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#201: FILE: app/test/test_soring.c:94:
+ RTE_TEST_ASSERT_FAIL(rc, "initted soring with invalid num stages");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#203: FILE: app/test/test_soring.c:96:
+ set_soring_init_param(&prm, "test_invalid_esize", 0,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#205: FILE: app/test/test_soring.c:98:
+ rc = rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#206: FILE: app/test/test_soring.c:99:
+ RTE_TEST_ASSERT_FAIL(rc, "initted soring with 0 esize");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#208: FILE: app/test/test_soring.c:101:
+ set_soring_init_param(&prm, "test_invalid_esize", 9,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#210: FILE: app/test/test_soring.c:103:
+ rc = rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#211: FILE: app/test/test_soring.c:104:
+ RTE_TEST_ASSERT_FAIL(rc, "initted soring with esize not multiple of 4");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#213: FILE: app/test/test_soring.c:106:
+ set_soring_init_param(&prm, "test_invalid_rsize", sizeof(uintptr_t),
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#215: FILE: app/test/test_soring.c:108:
+ rc = rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#216: FILE: app/test/test_soring.c:109:
+ RTE_TEST_ASSERT_FAIL(rc, "initted soring with rcsize not multiple of 4");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#218: FILE: app/test/test_soring.c:111:
+ set_soring_init_param(&prm, "test_invalid_elems", sizeof(uintptr_t),
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#219: FILE: app/test/test_soring.c:112:
+ RTE_SORING_ELEM_MAX + 1, 1, 4, RTE_RING_SYNC_MT,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#221: FILE: app/test/test_soring.c:114:
+ rc = rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#222: FILE: app/test/test_soring.c:115:
+ RTE_TEST_ASSERT_FAIL(rc, "initted soring with invalid num elements");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#229: FILE: app/test/test_soring.c:122:
+test_soring_get_memsize(void)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#232: FILE: app/test/test_soring.c:125:
+ struct rte_soring_param prm;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#235: FILE: app/test/test_soring.c:128:
+ set_soring_init_param(&prm, "memsize", sizeof(uint32_t *),
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#237: FILE: app/test/test_soring.c:130:
+ sz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#240: FILE: app/test/test_soring.c:133:
+ set_soring_init_param(&prm, "memsize", sizeof(uint8_t),
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#242: FILE: app/test/test_soring.c:135:
+ sz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'calcuated' may be misspelled - perhaps 'calculated'?
#243: FILE: app/test/test_soring.c:136:
+ RTE_TEST_ASSERT_EQUAL(sz, -EINVAL, "calcuated size incorrect");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#245: FILE: app/test/test_soring.c:138:
+ set_soring_init_param(&prm, "memsize", 0,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#247: FILE: app/test/test_soring.c:140:
+ sz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#255: FILE: app/test/test_soring.c:148:
+test_soring_stages(void)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#257: FILE: app/test/test_soring.c:150:
+ struct rte_soring *sor = NULL;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#258: FILE: app/test/test_soring.c:151:
+ struct rte_soring_param prm;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#270: FILE: app/test/test_soring.c:163:
+ set_soring_init_param(&prm, "stages", sizeof(uint32_t), 32,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#272: FILE: app/test/test_soring.c:165:
+ ssz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'couldn' may be misspelled - perhaps 'could'?
#275: FILE: app/test/test_soring.c:168:
+ RTE_TEST_ASSERT_NOT_NULL(sor, "couldn't allocate memory for soring");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#275: FILE: app/test/test_soring.c:168:
+ RTE_TEST_ASSERT_NOT_NULL(sor, "couldn't allocate memory for soring");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#276: FILE: app/test/test_soring.c:169:
+ rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#283: FILE: app/test/test_soring.c:176:
+ enqueued = rte_soring_enqueue(sor, objs, rcs, 32,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#285: FILE: app/test/test_soring.c:178:
+ SORING_TEST_ASSERT(enqueued, 32);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#289: FILE: app/test/test_soring.c:182:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, NULL, 32,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#292: FILE: app/test/test_soring.c:185:
+ SORING_TEST_ASSERT(dequeued, 0);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#294: FILE: app/test/test_soring.c:187:
+ acquired = rte_soring_acquire(sor, acquired_objs,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#297: FILE: app/test/test_soring.c:190:
+ SORING_TEST_ASSERT(acquired, 32);
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#300: FILE: app/test/test_soring.c:193:
+ SORING_TEST_ASSERT(acquired_rcs[j], j + stage);
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#301: FILE: app/test/test_soring.c:194:
+ SORING_TEST_ASSERT(acquired_objs[j], j + stage + 32);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#307: FILE: app/test/test_soring.c:200:
+ rte_soring_release(sor, acquired_objs,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#312: FILE: app/test/test_soring.c:205:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, dequeued_rcs, 32,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#314: FILE: app/test/test_soring.c:207:
+ SORING_TEST_ASSERT(dequeued, 32);
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#317: FILE: app/test/test_soring.c:210:
+ SORING_TEST_ASSERT(dequeued_rcs[i], i + 10000);
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#318: FILE: app/test/test_soring.c:211:
+ SORING_TEST_ASSERT(dequeued_objs[i], i + 32 + 10000);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#325: FILE: app/test/test_soring.c:218:
+test_soring_enqueue_dequeue(void)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#327: FILE: app/test/test_soring.c:220:
+ struct rte_soring *sor = NULL;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#328: FILE: app/test/test_soring.c:221:
+ struct rte_soring_param prm;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#345: FILE: app/test/test_soring.c:238:
+ set_soring_init_param(&prm, "enqueue/dequeue", sizeof(uint32_t *),
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#347: FILE: app/test/test_soring.c:240:
+ sz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#349: FILE: app/test/test_soring.c:242:
+ RTE_TEST_ASSERT_NOT_NULL(sor, "alloc failed for soring");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#350: FILE: app/test/test_soring.c:243:
+ rc = rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#351: FILE: app/test/test_soring.c:244:
+ RTE_TEST_ASSERT_SUCCESS(rc, "Failed to init soring");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#355: FILE: app/test/test_soring.c:248:
+ enqueued = rte_soring_enqueue(sor, queue_objs_p, NULL, 5,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#358: FILE: app/test/test_soring.c:251:
+ SORING_TEST_ASSERT(free_space, 5);
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#359: FILE: app/test/test_soring.c:252:
+ SORING_TEST_ASSERT(enqueued, 5);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#362: FILE: app/test/test_soring.c:255:
+ enqueued = rte_soring_enqueue(sor, queue_objs_p, NULL, 7,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#364: FILE: app/test/test_soring.c:257:
+ SORING_TEST_ASSERT(free_space, 5);
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#365: FILE: app/test/test_soring.c:258:
+ SORING_TEST_ASSERT(enqueued, 0);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#368: FILE: app/test/test_soring.c:261:
+ enqueued = rte_soring_enqueue(sor, queue_objs_p + 5, NULL, 7,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#370: FILE: app/test/test_soring.c:263:
+ SORING_TEST_ASSERT(free_space, 0);
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#371: FILE: app/test/test_soring.c:264:
+ SORING_TEST_ASSERT(enqueued, 5);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#374: FILE: app/test/test_soring.c:267:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, NULL, 10,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#376: FILE: app/test/test_soring.c:269:
+ SORING_TEST_ASSERT(dequeued, 0);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#377: FILE: app/test/test_soring.c:270:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, NULL, 10,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#379: FILE: app/test/test_soring.c:272:
+ SORING_TEST_ASSERT(dequeued, 0);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#384: FILE: app/test/test_soring.c:277:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, NULL, 10,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#386: FILE: app/test/test_soring.c:279:
+ SORING_TEST_ASSERT(dequeued, 0);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#387: FILE: app/test/test_soring.c:280:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, NULL, 10,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#389: FILE: app/test/test_soring.c:282:
+ SORING_TEST_ASSERT(dequeued, 8);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#396: FILE: app/test/test_soring.c:289:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, NULL, 1,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#398: FILE: app/test/test_soring.c:291:
+ SORING_TEST_ASSERT(dequeued, 0);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#401: FILE: app/test/test_soring.c:294:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, NULL, 2,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#403: FILE: app/test/test_soring.c:296:
+ SORING_TEST_ASSERT(dequeued, 2);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#415: FILE: app/test/test_soring.c:308:
+test_soring_acquire_release(void)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#418: FILE: app/test/test_soring.c:311:
+ struct rte_soring *sor = NULL;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#419: FILE: app/test/test_soring.c:312:
+ struct rte_soring_param prm;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#438: FILE: app/test/test_soring.c:331:
+ set_soring_init_param(&prm, "test_acquire_release", sizeof(uint32_t),
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#440: FILE: app/test/test_soring.c:333:
+ sz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#449: FILE: app/test/test_soring.c:342:
+ rc = rte_soring_init(sor, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#450: FILE: app/test/test_soring.c:343:
+ RTE_TEST_ASSERT_SUCCESS(rc, "failed to init soring");
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#453: FILE: app/test/test_soring.c:346:
+ enqueued = rte_soring_enqueue(sor, queue_objs, rc_objs, 5,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#455: FILE: app/test/test_soring.c:348:
+ SORING_TEST_ASSERT(enqueued, 5);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#457: FILE: app/test/test_soring.c:350:
+ enqueued = rte_soring_enqueue(sor, queue_objs + 5, NULL, 5,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#459: FILE: app/test/test_soring.c:352:
+ SORING_TEST_ASSERT(enqueued, 5);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#462: FILE: app/test/test_soring.c:355:
+ acquired = rte_soring_acquire(sor, acquired_objs,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#464: FILE: app/test/test_soring.c:357:
+ SORING_TEST_ASSERT(acquired, 5);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#473: FILE: app/test/test_soring.c:366:
+ rte_soring_release(sor, NULL, NULL, 0, 5, ftoken);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#476: FILE: app/test/test_soring.c:369:
+ acquired = rte_soring_acquire(sor, acquired_objs,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#479: FILE: app/test/test_soring.c:372:
+ SORING_TEST_ASSERT(acquired, 5);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#492: FILE: app/test/test_soring.c:385:
+ rte_soring_release(sor, NULL, rc_objs + 5, 0, 5,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#495: FILE: app/test/test_soring.c:388:
+ acquired = rte_soring_acquire(sor, acquired_objs,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#498: FILE: app/test/test_soring.c:391:
+ SORING_TEST_ASSERT(acquired, 10);
WARNING:TYPO_SPELLING: 'relase' may be misspelled - perhaps 'release'?
#500: FILE: app/test/test_soring.c:393:
+ /* ensure the associated rc's are the ones added at relase */
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#509: FILE: app/test/test_soring.c:402:
+ rte_soring_release(sor, NULL, NULL, 1, 10, ftoken);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#511: FILE: app/test/test_soring.c:404:
+ dequeued = rte_soring_dequeue(sor, dequeued_objs, dequeued_rcs, 10,
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#513: FILE: app/test/test_soring.c:406:
+ SORING_TEST_ASSERT(dequeued, 10);
WARNING:TYPO_SPELLING: 'relase' may be misspelled - perhaps 'release'?
#515: FILE: app/test/test_soring.c:408:
+ /* ensure the associated rc's are the ones added at relase */
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#529: FILE: app/test/test_soring.c:422:
+test_soring(void)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#533: FILE: app/test/test_soring.c:426:
+ if (test_soring_init() < 0)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#537: FILE: app/test/test_soring.c:430:
+ if (test_soring_get_memsize() < 0)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#541: FILE: app/test/test_soring.c:434:
+ if (test_soring_enqueue_dequeue() < 0)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#545: FILE: app/test/test_soring.c:438:
+ if (test_soring_acquire_release() < 0)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#549: FILE: app/test/test_soring.c:442:
+ if (test_soring_stages() < 0)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#558: FILE: app/test/test_soring.c:451:
+REGISTER_FAST_TEST(soring_autotest, true, true, test_soring);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#558: FILE: app/test/test_soring.c:451:
+REGISTER_FAST_TEST(soring_autotest, true, true, test_soring);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#570: FILE: app/test/test_soring_mt_stress.c:5:
+#include "test_soring_stress_impl.h"
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#573: FILE: app/test/test_soring_mt_stress.c:8:
+_st_ring_dequeue_bulk(struct rte_soring *r, void **obj, uint32_t n,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#576: FILE: app/test/test_soring_mt_stress.c:11:
+ return rte_soring_dequeue(r, obj, NULL, n, bhv, avail);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#580: FILE: app/test/test_soring_mt_stress.c:15:
+_st_ring_enqueue_bulk(struct rte_soring *r, void * const *obj, uint32_t n,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#583: FILE: app/test/test_soring_mt_stress.c:18:
+ return rte_soring_enqueue(r, obj, NULL, n, bhv, free);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#587: FILE: app/test/test_soring_mt_stress.c:22:
+_st_ring_stage_acquire(struct rte_soring *r, uint32_t stage, void **obj,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#591: FILE: app/test/test_soring_mt_stress.c:26:
+ return rte_soring_acquire(r, obj, NULL, stage, num, bhv,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#596: FILE: app/test/test_soring_mt_stress.c:31:
+_st_ring_stage_release(struct rte_soring *r, uint32_t stage, uint32_t token,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#600: FILE: app/test/test_soring_mt_stress.c:35:
+ rte_soring_release(r, NULL, NULL, stage, num, token);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#606: FILE: app/test/test_soring_mt_stress.c:41:
+const struct test test_soring_mt_stress = {
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#621: FILE: app/test/test_soring_stress.c:5:
+#include "test_soring_stress.h"
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#656: FILE: app/test/test_soring_stress.c:40:
+ n += test_soring_mt_stress.nb_case;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#657: FILE: app/test/test_soring_stress.c:41:
+ k += run_test(&test_soring_mt_stress);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#664: FILE: app/test/test_soring_stress.c:48:
+REGISTER_TEST_COMMAND(soring_stress_autotest, test_ring_stress);
WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#680: FILE: app/test/test_soring_stress.h:10:
+#include <stdio.h>
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#683: FILE: app/test/test_soring_stress.h:13:
+#include <rte_soring.h>
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#705: FILE: app/test/test_soring_stress.h:35:
+extern const struct test test_soring_mt_stress;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#717: FILE: app/test/test_soring_stress_impl.h:6:
+#include "test_soring_stress.h"
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#720: FILE: app/test/test_soring_stress_impl.h:9:
+ * Stress test for soring enqueue/dequeue/acquire/release operations.
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#725: FILE: app/test/test_soring_stress_impl.h:14:
+ * Serves as both functional and performance test of soring
WARNING:TYPO_SPELLING: 'SORING' may be misspelled - perhaps 'SORTING'?
#730: FILE: app/test/test_soring_stress_impl.h:19:
+#define RING_NAME "SORING_STRESS"
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#768: FILE: app/test/test_soring_stress_impl.h:57:
+ struct rte_soring *rng;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#783: FILE: app/test/test_soring_stress_impl.h:72:
+_st_ring_dequeue_bulk(struct rte_soring *r, void **obj, uint32_t n,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#787: FILE: app/test/test_soring_stress_impl.h:76:
+_st_ring_enqueue_bulk(struct rte_soring *r, void * const *obj, uint32_t n,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#791: FILE: app/test/test_soring_stress_impl.h:80:
+_st_ring_stage_acquire(struct rte_soring *r, uint32_t stage, void **obj,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#796: FILE: app/test/test_soring_stress_impl.h:85:
+_st_ring_stage_release(struct rte_soring *r, uint32_t stage, uint32_t token,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1151: FILE: app/test/test_soring_stress_impl.h:440:
+mt1_fini(struct rte_soring *rng, void *data)
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1158: FILE: app/test/test_soring_stress_impl.h:447:
+mt1_init(struct rte_soring **rng, void **data, uint32_t num,
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1165: FILE: app/test/test_soring_stress_impl.h:454:
+ struct rte_soring *r;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1168: FILE: app/test/test_soring_stress_impl.h:457:
+ struct rte_soring_param prm;
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1183: FILE: app/test/test_soring_stress_impl.h:472:
+ /* alloc soring */
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1193: FILE: app/test/test_soring_stress_impl.h:482:
+ sz = rte_soring_get_memsize(&prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1203: FILE: app/test/test_soring_stress_impl.h:492:
+ rc = rte_soring_init(r, &prm);
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1205: FILE: app/test/test_soring_stress_impl.h:494:
+ printf("%s: rte_soring_init(r=%p,elems=%u,stages=%u) failed, "
WARNING:TYPO_SPELLING: 'soring' may be misspelled - perhaps 'sorting'?
#1235: FILE: app/test/test_soring_stress_impl.h:524:
+ struct rte_soring *r;
WARNING:TYPO_SPELLING: 'enque' may be misspelled - perhaps 'enqueue'?
#1307: FILE: app/test/test_soring_stress_impl.h:596:
+ * - workers from 'even' group do deque+enque
total: 0 errors, 166 warnings, 1421 lines checked
Warning in app/test/test_soring_stress_impl.h:
Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer rte_atomic_xxx/rte_memory_order_xxx
Warning in app/test/test_soring_stress.c:
Using REGISTER_TEST_COMMAND instead of REGISTER_<suite_name>_TEST
Please use __rte_cache_aligned only for struct or union types alignment.
^ permalink raw reply [flat|nested] only message in thread