projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into fix_deprecated_func
[collectd.git]
/
src
/
utils_dpdk.c
diff --git
a/src/utils_dpdk.c
b/src/utils_dpdk.c
index
07ec8ae
..
aee9791
100644
(file)
--- a/
src/utils_dpdk.c
+++ b/
src/utils_dpdk.c
@@
-831,7
+831,7
@@
uint128_t str_to_uint128(const char *str, int len) {
return lcore_mask;
} else {
char low_str[DATA_MAX_NAME_LEN];
return lcore_mask;
} else {
char low_str[DATA_MAX_NAME_LEN];
- char high_str[DATA_MAX_NAME_LEN];
+ char high_str[DATA_MAX_NAME_LEN
* 2
];
memset(high_str, 0, sizeof(high_str));
memset(low_str, 0, sizeof(low_str));
memset(high_str, 0, sizeof(high_str));
memset(low_str, 0, sizeof(low_str));
@@
-852,7
+852,7
@@
uint128_t str_to_uint128(const char *str, int len) {
return lcore_mask;
}
return lcore_mask;
}
-uint8_t dpdk_helper_eth_dev_count() {
+uint8_t dpdk_helper_eth_dev_count(
void
) {
#if RTE_VERSION < RTE_VERSION_NUM(18, 05, 0, 0)
uint8_t ports = rte_eth_dev_count();
#else
#if RTE_VERSION < RTE_VERSION_NUM(18, 05, 0, 0)
uint8_t ports = rte_eth_dev_count();
#else