Enables changing ODP runtime configuration options by using an optional
configuration file (libconfig). Path to the conf file is passed using
environment variable ODP_CONF_FILE. If ODP_CONF_FILE or a particular option
is not set, hardcoded default values are used instead. An template
configuration file is provided in config/odp-linux.conf.
Runtime configuration is initially used by DPDK pktio to set NIC options.
Adds new dependency to libconfig library.

Replaced printf() calls (Bill)
Use PKG_CHECK_MODULES and other build improvements (Dmitry)
Hardcode config/odp-linux.conf contents into odp_libtool_config.h during 
config/build phase. This way default configuration options are always available.
Libconfig configuration is only accessed using internal helper functions


Further build fixes (Dmitry)
Added mandatory 'odp_implementation' and 'config_file_version' fields to config 

/** Email created from pull request 499 (matiaselo:dev/dpdk_dev_config)
 ** https://github.com/Linaro/odp/pull/499
 ** Patch: https://github.com/Linaro/odp/pull/499.patch
 ** Base sha: e1c0e4570a45d05dd9f2e8e052ce71164209d112
 ** Merge commit sha: 530e94ef9a8ec1674d62e14f3e2a52ea7dcb8183

WARNING: externs should be avoided in .c files
#443: FILE: platform/linux-generic/odp_libconfig.c:21:
+extern struct odp_global_data_s odp_global_data;

CHECK: Avoid CamelCase: <PRIu16>
#587: FILE: platform/linux-generic/pktio/dpdk.c:146:
+       ODP_PRINT("DPDK interface (%s): %" PRIu16 "\n", dev_info->driver_name,

total: 0 errors, 1 warnings, 1 checks, 490 lines checked

to_send-p-000.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Reply via email to