X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2Fdpdk%2Fdpdk.c;h=7d9f7abc214143bd90a8cc7e40d3b88980fd91dd;hb=956a2f4996d9fb0526b6f60c29be9b17c0ad27ba;hp=4d05424bee02be013cd22de5c70127dae18d763b;hpb=8f6aa6970bf787e6a11e095322af3338ec781d78;p=collectd.git diff --git a/src/utils/dpdk/dpdk.c b/src/utils/dpdk/dpdk.c index 4d05424b..7d9f7abc 100644 --- a/src/utils/dpdk/dpdk.c +++ b/src/utils/dpdk/dpdk.c @@ -113,7 +113,7 @@ static void dpdk_helper_config_default(dpdk_helper_ctx_t *phc) { ssnprintf(phc->eal_config.coremask, DATA_MAX_NAME_LEN, "%s", "0xf"); ssnprintf(phc->eal_config.memory_channels, DATA_MAX_NAME_LEN, "%s", "1"); ssnprintf(phc->eal_config.file_prefix, DATA_MAX_NAME_LEN, "%s", - DPDK_DEFAULT_RTE_CONFIG); + DPDK_DEFAULT_RTE_CONFIG); } int dpdk_helper_eal_config_set(dpdk_helper_ctx_t *phc, dpdk_eal_config_t *ec) { @@ -190,10 +190,10 @@ int dpdk_helper_eal_config_parse(dpdk_helper_ctx_t *phc, oconfig_item_t *ci) { if (status == 0) { #if RTE_VERSION <= RTE_VERSION_NUM(18, 5, 0, 0) ssnprintf(phc->eal_config.file_prefix, DATA_MAX_NAME_LEN, - "/var/run/.%s_config", prefix); + "/var/run/.%s_config", prefix); #else ssnprintf(phc->eal_config.file_prefix, DATA_MAX_NAME_LEN, - "/var/run/dpdk/%s/config", prefix); + "/var/run/dpdk/%s/config", prefix); #endif DEBUG("dpdk_common: EAL:File prefix %s", phc->eal_config.file_prefix); } @@ -304,8 +304,8 @@ int dpdk_helper_init(const char *name, size_t data_size, DPDK_HELPER_TRACE(name); /* Allocate dpdk_helper_ctx_t and - * initialize a POSIX SHared Memory (SHM) object. - */ + * initialize a POSIX SHared Memory (SHM) object. + */ int err = dpdk_shm_init(name, shm_size, (void **)&phc); if (err != 0) { return -errno; @@ -704,7 +704,8 @@ static void dpdk_helper_check_pipe(dpdk_helper_ctx_t *phc) { /* non blocking check on helper logging pipe */ struct pollfd fds = { - .fd = phc->pipes[0], .events = POLLIN, + .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,