Skip to content

Commit f259140

Browse files
committed
DPDK: upgrade to DPDK-19.11.13(LTS).
1 parent bf68b4f commit f259140

File tree

859 files changed

+13899
-6306
lines changed

Some content is hidden

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

859 files changed

+13899
-6306
lines changed

dpdk/MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ T: git://dpdk.org/next/dpdk-next-pipeline
7373
Stable Branches
7474
M: Luca Boccassi <[email protected]>
7575
M: Kevin Traynor <[email protected]>
76+
M: Christian Ehrhardt <[email protected]>
77+
M: Xueming Li <[email protected]>
7678
T: git://dpdk.org/dpdk-stable
7779

7880
Security Issues
@@ -131,8 +133,6 @@ F: config/rte_config.h
131133
F: buildtools/call-sphinx-build.py
132134
F: buildtools/gen-pmdinfo-cfile.sh
133135
F: buildtools/map_to_def.py
134-
F: buildtools/list-dir-globs.py
135-
F: buildtools/pkg-config/
136136
F: buildtools/symlink-drivers-solibs.sh
137137

138138
Public CI

dpdk/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.11.6
1+
19.11.13

dpdk/app/meson.build

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ apps = [
1818
'test-pmd',
1919
'test-sad']
2020

21-
# for BSD only
22-
lib_execinfo = cc.find_library('execinfo', required: false)
2321

2422
default_cflags = machine_args
23+
default_ldflags = []
24+
if get_option('default_library') == 'static' and not is_windows
25+
default_ldflags += ['-Wl,--export-dynamic']
26+
endif
2527

2628
foreach app:apps
2729
build = true
@@ -30,6 +32,7 @@ foreach app:apps
3032
sources = []
3133
includes = []
3234
cflags = default_cflags
35+
ldflags = default_ldflags
3336
objs = [] # other object files to link against, used e.g. for
3437
# instruction-set optimized versions of code
3538

@@ -46,7 +49,6 @@ foreach app:apps
4649
dep_objs += get_variable(get_option('default_library')
4750
+ '_rte_' + d)
4851
endforeach
49-
dep_objs += lib_execinfo
5052

5153
link_libs = []
5254
if get_option('default_library') == 'static'
@@ -60,8 +62,10 @@ foreach app:apps
6062
executable('dpdk-' + name,
6163
sources,
6264
c_args: cflags,
65+
link_args: ldflags,
6366
link_whole: link_libs,
6467
dependencies: dep_objs,
68+
include_directories: includes,
6569
install_rpath: join_paths(get_option('prefix'),
6670
driver_install_path),
6771
install: true)

dpdk/app/pdump/main.c

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,11 +906,21 @@ dump_packets_core(void *arg)
906906
return 0;
907907
}
908908

909+
static unsigned int
910+
get_next_core(unsigned int lcore)
911+
{
912+
lcore = rte_get_next_lcore(lcore, 1, 0);
913+
if (lcore == RTE_MAX_LCORE)
914+
rte_exit(EXIT_FAILURE,
915+
"Max core limit %u reached for packet capture", lcore);
916+
return lcore;
917+
}
918+
909919
static inline void
910920
dump_packets(void)
911921
{
912922
int i;
913-
uint32_t lcore_id = 0;
923+
unsigned int lcore_id = 0;
914924

915925
if (!multiple_core_capture) {
916926
printf(" core (%u), capture for (%d) tuples\n",
@@ -936,12 +946,12 @@ dump_packets(void)
936946
return;
937947
}
938948

939-
lcore_id = rte_get_next_lcore(lcore_id, 1, 0);
949+
lcore_id = get_next_core(lcore_id);
940950

941951
for (i = 0; i < num_tuples; i++) {
942952
rte_eal_remote_launch(dump_packets_core,
943953
&pdump_t[i], lcore_id);
944-
lcore_id = rte_get_next_lcore(lcore_id, 1, 0);
954+
lcore_id = get_next_core(lcore_id);
945955

946956
if (rte_eal_wait_lcore(lcore_id) < 0)
947957
rte_exit(EXIT_FAILURE, "failed to wait\n");

dpdk/app/proc-info/main.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,13 @@ proc_info_parse_args(int argc, char **argv)
310310
} else if (!strncmp(long_option[option_index].name,
311311
"xstats-ids",
312312
MAX_LONG_OPT_SZ)) {
313-
nb_xstats_ids = parse_xstats_ids(optarg,
313+
int ret = parse_xstats_ids(optarg,
314314
xstats_ids, MAX_NB_XSTATS_IDS);
315-
316-
if (nb_xstats_ids <= 0) {
315+
if (ret <= 0) {
317316
printf("xstats-id list parse error.\n");
318317
return -1;
319318
}
320-
319+
nb_xstats_ids = ret;
321320
}
322321
break;
323322
default:
@@ -429,11 +428,9 @@ static void collectd_resolve_cnt_type(char *cnt_type, size_t cnt_type_len,
429428
} else if ((type_end != NULL) &&
430429
(strncmp(cnt_name, "flow_", strlen("flow_"))) == 0) {
431430
if (strncmp(type_end, "_filters", strlen("_filters")) == 0)
432-
strlcpy(cnt_type, "operations", cnt_type_len);
431+
strlcpy(cnt_type, "filter_result", cnt_type_len);
433432
else if (strncmp(type_end, "_errors", strlen("_errors")) == 0)
434433
strlcpy(cnt_type, "errors", cnt_type_len);
435-
else if (strncmp(type_end, "_filters", strlen("_filters")) == 0)
436-
strlcpy(cnt_type, "filter_result", cnt_type_len);
437434
} else if ((type_end != NULL) &&
438435
(strncmp(cnt_name, "mac_", strlen("mac_"))) == 0) {
439436
if (strncmp(type_end, "_errors", strlen("_errors")) == 0)
@@ -1110,7 +1107,6 @@ show_crypto(void)
11101107

11111108
display_crypto_feature_info(dev_info.feature_flags);
11121109

1113-
memset(&stats, 0, sizeof(0));
11141110
if (rte_cryptodev_stats_get(i, &stats) == 0) {
11151111
printf("\t -- stats\n");
11161112
printf("\t\t + enqueue count (%"PRIu64")"

dpdk/app/test-bbdev/test_bbdev_perf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,14 @@ check_dev_cap(const struct rte_bbdev_info *dev_info)
327327
if (nb_harq_inputs > cap->num_buffers_hard_out) {
328328
printf(
329329
"Too many HARQ inputs defined: %u, max: %u\n",
330-
nb_hard_outputs,
330+
nb_harq_inputs,
331331
cap->num_buffers_hard_out);
332332
return TEST_FAILED;
333333
}
334334
if (nb_harq_outputs > cap->num_buffers_hard_out) {
335335
printf(
336336
"Too many HARQ outputs defined: %u, max: %u\n",
337-
nb_hard_outputs,
337+
nb_harq_outputs,
338338
cap->num_buffers_hard_out);
339339
return TEST_FAILED;
340340
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ comp_perf_options_parse(struct comp_test_data *test_data, int argc, char **argv)
598598
switch (opt) {
599599
case 'h':
600600
usage(argv[0]);
601-
rte_exit(EXIT_SUCCESS, "Displayed help\n");
601+
exit(EXIT_SUCCESS);
602602
break;
603603
/* long options */
604604
case 0:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ comp_perf_initialize_compressdev(struct comp_test_data *test_data,
158158
cdev_id = enabled_cdevs[i];
159159

160160
struct rte_compressdev_info cdev_info;
161-
uint8_t socket_id = rte_compressdev_socket_id(cdev_id);
161+
int socket_id = rte_compressdev_socket_id(cdev_id);
162162

163163
rte_compressdev_info_get(cdev_id, &cdev_info);
164164
if (cdev_info.max_nb_queue_pairs &&
@@ -184,6 +184,7 @@ comp_perf_initialize_compressdev(struct comp_test_data *test_data,
184184
.max_nb_priv_xforms = NUM_MAX_XFORMS,
185185
.max_nb_streams = 0
186186
};
187+
test_data->nb_qps = config.nb_queue_pairs;
187188

188189
if (rte_compressdev_configure(cdev_id, &config) < 0) {
189190
RTE_LOG(ERR, USER1, "Device configuration failed\n");

dpdk/app/test-crypto-perf/cperf_options_parsing.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ usage(char *progname)
2323
{
2424
printf("%s [EAL options] --\n"
2525
" --silent: disable options dump\n"
26-
" --ptest throughput / latency / verify / pmd-cycleount :"
26+
" --ptest throughput / latency / verify / pmd-cyclecount :"
2727
" set test type\n"
2828
" --pool_sz N: set the number of crypto ops/mbufs allocated\n"
2929
" --total-ops N: set the number of total operations performed\n"
@@ -495,6 +495,12 @@ parse_test_name(struct cperf_options *opts,
495495
{
496496
char *test_name = (char *) rte_zmalloc(NULL,
497497
sizeof(char) * (strlen(arg) + 3), 0);
498+
if (test_name == NULL) {
499+
RTE_LOG(ERR, USER1, "Failed to rte zmalloc with size: %zu\n",
500+
strlen(arg) + 3);
501+
return -1;
502+
}
503+
498504
snprintf(test_name, strlen(arg) + 3, "[%s]", arg);
499505
opts->test_name = test_name;
500506

@@ -953,7 +959,7 @@ cperf_options_parse(struct cperf_options *options, int argc, char **argv)
953959
switch (opt) {
954960
case 'h':
955961
usage(argv[0]);
956-
rte_exit(EXIT_SUCCESS, "Displayed help\n");
962+
exit(EXIT_SUCCESS);
957963
break;
958964
/* long options */
959965
case 0:

dpdk/app/test-crypto-perf/cperf_test_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ cperf_alloc_common_memory(const struct cperf_options *options,
194194
(mbuf_size * segments_nb);
195195
params.dst_buf_offset = *dst_buf_offset;
196196
/* Destination buffer will be one segment only */
197-
obj_size += max_size;
197+
obj_size += max_size + sizeof(struct rte_mbuf);
198198
}
199199

200200
*pool = rte_mempool_create_empty(pool_name,

0 commit comments

Comments
 (0)