Skip to content

Commit 9e4ac2d

Browse files
committed
DPDK: Upgrade to 20.11.9(LTS).
1 parent e63c364 commit 9e4ac2d

File tree

379 files changed

+7417
-3788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+7417
-3788
lines changed

dpdk/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.11.6
1+
20.11.9

dpdk/app/test-bbdev/test_bbdev_perf.c

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,12 @@
7070

7171
#define SYNC_WAIT 0
7272
#define SYNC_START 1
73-
#define INVALID_OPAQUE -1
7473

7574
#define INVALID_QUEUE_ID -1
7675
/* Increment for next code block in external HARQ memory */
7776
#define HARQ_INCR 32768
7877
/* Headroom for filler LLRs insertion in HARQ buffer */
79-
#define FILLER_HEADROOM 1024
78+
#define FILLER_HEADROOM 2048
8079
/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */
8180
#define N_ZC_1 66 /* N = 66 Zc for BG 1 */
8281
#define N_ZC_2 50 /* N = 50 Zc for BG 2 */
@@ -87,6 +86,7 @@
8786
#define K0_3_1 56 /* K0 fraction numerator for rv 3 and BG 1 */
8887
#define K0_3_2 43 /* K0 fraction numerator for rv 3 and BG 2 */
8988

89+
#define HARQ_MEM_TOLERANCE 256
9090
static struct test_bbdev_vector test_vector;
9191

9292
/* Switch between PMD and Interrupt for throughput TC */
@@ -1779,10 +1779,9 @@ check_enc_status_and_ordering(struct rte_bbdev_enc_op *op,
17791779
"op_status (%d) != expected_status (%d)",
17801780
op->status, expected_status);
17811781

1782-
if (op->opaque_data != (void *)(uintptr_t)INVALID_OPAQUE)
1783-
TEST_ASSERT((void *)(uintptr_t)order_idx == op->opaque_data,
1784-
"Ordering error, expected %p, got %p",
1785-
(void *)(uintptr_t)order_idx, op->opaque_data);
1782+
TEST_ASSERT((void *)(uintptr_t)order_idx == op->opaque_data,
1783+
"Ordering error, expected %p, got %p",
1784+
(void *)(uintptr_t)order_idx, op->opaque_data);
17861785

17871786
return TEST_SUCCESS;
17881787
}
@@ -1904,13 +1903,17 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op,
19041903
uint16_t data_len = rte_pktmbuf_data_len(m) - offset;
19051904
total_data_size += orig_op->segments[i].length;
19061905

1907-
TEST_ASSERT(orig_op->segments[i].length <
1908-
(uint32_t)(data_len + 64),
1906+
TEST_ASSERT(orig_op->segments[i].length < (uint32_t)(data_len + HARQ_MEM_TOLERANCE),
19091907
"Length of segment differ in original (%u) and filled (%u) op",
19101908
orig_op->segments[i].length, data_len);
19111909
harq_orig = (int8_t *) orig_op->segments[i].addr;
19121910
harq_out = rte_pktmbuf_mtod_offset(m, int8_t *, offset);
19131911

1912+
/* Cannot compare HARQ output data for such cases */
1913+
if ((ldpc_llr_decimals > 1) && ((ops_ld->op_flags & RTE_BBDEV_LDPC_LLR_COMPRESSION)
1914+
|| (ops_ld->op_flags & RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION)))
1915+
break;
1916+
19141917
if (!(ldpc_cap_flags &
19151918
RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS
19161919
) || (ops_ld->op_flags &
@@ -1925,9 +1928,9 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op,
19251928
ops_ld->n_filler;
19261929
if (data_len > deRmOutSize)
19271930
data_len = deRmOutSize;
1928-
if (data_len > orig_op->segments[i].length)
1929-
data_len = orig_op->segments[i].length;
19301931
}
1932+
if (data_len > orig_op->segments[i].length)
1933+
data_len = orig_op->segments[i].length;
19311934
/*
19321935
* HARQ output can have minor differences
19331936
* due to integer representation and related scaling
@@ -1986,7 +1989,7 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op,
19861989

19871990
/* Validate total mbuf pkt length */
19881991
uint32_t pkt_len = rte_pktmbuf_pkt_len(op->data) - op->offset;
1989-
TEST_ASSERT(total_data_size < pkt_len + 64,
1992+
TEST_ASSERT(total_data_size < pkt_len + HARQ_MEM_TOLERANCE,
19901993
"Length of data differ in original (%u) and filled (%u) op",
19911994
total_data_size, pkt_len);
19921995

@@ -4361,7 +4364,8 @@ offload_latency_test_dec(struct rte_mempool *mempool, struct test_buffers *bufs,
43614364
if (unlikely(num_to_process - dequeued < burst_sz))
43624365
burst_sz = num_to_process - dequeued;
43634366

4364-
rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
4367+
ret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
4368+
TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz);
43654369
if (test_vector.op_type != RTE_BBDEV_OP_NONE)
43664370
copy_reference_dec_op(ops_enq, burst_sz, dequeued,
43674371
bufs->inputs,
@@ -4446,7 +4450,8 @@ offload_latency_test_ldpc_dec(struct rte_mempool *mempool,
44464450
if (unlikely(num_to_process - dequeued < burst_sz))
44474451
burst_sz = num_to_process - dequeued;
44484452

4449-
rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
4453+
ret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz);
4454+
TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz);
44504455
if (test_vector.op_type != RTE_BBDEV_OP_NONE)
44514456
copy_reference_ldpc_dec_op(ops_enq, burst_sz, dequeued,
44524457
bufs->inputs,
@@ -4698,7 +4703,7 @@ offload_cost_test(struct active_device *ad,
46984703
printf("Set RTE_BBDEV_OFFLOAD_COST to 'y' to turn the test on.\n");
46994704
return TEST_SKIPPED;
47004705
#else
4701-
int iter;
4706+
int iter, ret;
47024707
uint16_t burst_sz = op_params->burst_sz;
47034708
const uint16_t num_to_process = op_params->num_to_process;
47044709
const enum rte_bbdev_op_type op_type = test_vector.op_type;
@@ -4789,7 +4794,10 @@ offload_cost_test(struct active_device *ad,
47894794
rte_get_tsc_hz());
47904795

47914796
struct rte_bbdev_stats stats = {0};
4792-
get_bbdev_queue_stats(ad->dev_id, queue_id, &stats);
4797+
ret = get_bbdev_queue_stats(ad->dev_id, queue_id, &stats);
4798+
TEST_ASSERT_SUCCESS(ret,
4799+
"Failed to get stats for queue (%u) of device (%u)",
4800+
queue_id, ad->dev_id);
47934801
if (op_type != RTE_BBDEV_OP_LDPC_DEC) {
47944802
TEST_ASSERT_SUCCESS(stats.enqueued_count != num_to_process,
47954803
"Mismatch in enqueue count %10"PRIu64" %d",

dpdk/app/test-compress-perf/comp_perf_options.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ enum cperf_test_type {
3030
};
3131

3232
enum comp_operation {
33-
COMPRESS_ONLY,
34-
DECOMPRESS_ONLY,
35-
COMPRESS_DECOMPRESS
33+
COMPRESS = (1 << 0),
34+
DECOMPRESS = (1 << 1),
35+
COMPRESS_DECOMPRESS = (COMPRESS | DECOMPRESS),
3636
};
3737

3838
struct range_list {

dpdk/app/test-compress-perf/comp_perf_options_parse.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,11 @@ parse_op_type(struct comp_test_data *test_data, const char *arg)
446446
struct name_id_map optype_namemap[] = {
447447
{
448448
"comp",
449-
COMPRESS_ONLY
449+
COMPRESS
450450
},
451451
{
452452
"decomp",
453-
DECOMPRESS_ONLY
453+
DECOMPRESS
454454
},
455455
{
456456
"comp_and_decomp",
@@ -491,7 +491,7 @@ parse_huffman_enc(struct comp_test_data *test_data, const char *arg)
491491
int id = get_str_key_id_mapping(huffman_namemap,
492492
RTE_DIM(huffman_namemap), arg);
493493
if (id < 0) {
494-
RTE_LOG(ERR, USER1, "Invalid Huffmane encoding specified\n");
494+
RTE_LOG(ERR, USER1, "Invalid Huffman encoding specified\n");
495495
return -1;
496496
}
497497

@@ -507,7 +507,7 @@ parse_level(struct comp_test_data *test_data, const char *arg)
507507

508508
/*
509509
* Try parsing the argument as a range, if it fails,
510-
* arse it as a list
510+
* parse it as a list
511511
*/
512512
if (parse_range(arg, &test_data->level_lst.min,
513513
&test_data->level_lst.max,

0 commit comments

Comments
 (0)