summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf291ad)
raw | patch | inline | side by side (parent: bf291ad)
author | Jiri Prokes <jirix.x.prokes@intel.com> | |
Tue, 24 Oct 2017 14:32:39 +0000 (07:32 -0700) | ||
committer | Jiri Prokes <jirix.x.prokes@intel.com> | |
Tue, 24 Oct 2017 14:32:39 +0000 (07:32 -0700) |
Signed-off-by: Jiri Prokes <jirix.x.prokes@intel.com>
src/utils_dpdk.c | patch | blob | history |
diff --git a/src/utils_dpdk.c b/src/utils_dpdk.c
index 55ff7bc4e32446d023dc140a3ab7fd0ccd4b8c11..2f37818bfcc73044f2f4641eb6a88dcd5b4004ea 100644 (file)
--- a/src/utils_dpdk.c
+++ b/src/utils_dpdk.c
#define DPDK_DEFAULT_RTE_CONFIG "/var/run/.rte_config"
#define DPDK_EAL_ARGC 10
-//Complete trace should fit into 1024 chars
+// Complete trace should fit into 1024 chars
#define DPDK_MAX_BUFFER_SIZE 896
#define DPDK_CDM_DEFAULT_TIMEOUT 10000
status = cf_util_get_string_buffer(child, prefix, sizeof(prefix));
if (status == 0) {
snprintf(phc->eal_config.file_prefix, DATA_MAX_NAME_LEN,
- "/var/run/.%s_config", prefix);
+ "/var/run/.%s_config", prefix);
DEBUG("dpdk_common: EAL:File prefix %s", phc->eal_config.file_prefix);
}
} else if (strcasecmp("LogLevel", child->key) == 0) {
sizeof(phc->eal_config.log_level));
DEBUG("dpdk_common: EAL:LogLevel %s", phc->eal_config.log_level);
} else if (strcasecmp("RteDriverLibPath", child->key) == 0) {
- status = cf_util_get_string_buffer(child, phc->eal_config.rte_driver_lib_path,
- sizeof(phc->eal_config.rte_driver_lib_path));
- DEBUG("dpdk_common: EAL:RteDriverLibPath %s", phc->eal_config.rte_driver_lib_path);
+ status = cf_util_get_string_buffer(
+ child, phc->eal_config.rte_driver_lib_path,
+ sizeof(phc->eal_config.rte_driver_lib_path));
+ DEBUG("dpdk_common: EAL:RteDriverLibPath %s",
+ phc->eal_config.rte_driver_lib_path);
} else {
ERROR("dpdk_common: Invalid '%s' configuration option", child->key);
status = -EINVAL;
argp[argc++] = phc->eal_config.log_level;
}
if (strcasecmp(phc->eal_config.rte_driver_lib_path, "") != 0) {
- argp[argc++] = "-d";
- argp[argc++] = phc->eal_config.rte_driver_lib_path;
+ argp[argc++] = "-d";
+ argp[argc++] = phc->eal_config.rte_driver_lib_path;
}
assert(argc <= (DPDK_EAL_ARGC * 2 + 1));
.fd = phc->pipes[0], .events = POLLIN,
};
int data_avail = poll(&fds, 1, 0);
- DEBUG("%s:dpdk_helper_check_pipe: poll data_avail=%d", phc->shm_name, data_avail);
+ DEBUG("%s:dpdk_helper_check_pipe: poll data_avail=%d", phc->shm_name,
+ data_avail);
if (data_avail < 0) {
if (errno != EINTR || errno != EAGAIN) {
char errbuf[ERR_BUF_SIZE];