This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 45caf39520a1f7aac3e40265bc46bc4dba695cbc (commit) from de255937275a99cebe62f159f3fc7c4b70bc04bb (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 45caf39520a1f7aac3e40265bc46bc4dba695cbc Author: Matias Elo matias.elo@nokia.com Date: Thu Jan 17 11:12:16 2019 +0200
linux-gen: dpdk: add a fallback value for the number of numa nodes
numa_num_configured_nodes() may return 0 on some platforms. In that case use 1 as a replacement value.
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/pktio/dpdk.c b/platform/linux-generic/pktio/dpdk.c index 1edd2488..1d322057 100644 --- a/platform/linux-generic/pktio/dpdk.c +++ b/platform/linux-generic/pktio/dpdk.c @@ -1197,7 +1197,11 @@ static int dpdk_pktio_init(void) }
mem_str_len = snprintf(NULL, 0, "%d,", DPDK_MEMORY_MB); + + /* numa_num_configured_nodes() may return 0 on some platforms */ numa_nodes = numa_num_configured_nodes(); + if (numa_nodes <= 0) + numa_nodes = 1;
char mem_str[mem_str_len * numa_nodes];
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/pktio/dpdk.c | 4 ++++ 1 file changed, 4 insertions(+)
hooks/post-receive