Go to file
Olivier Matz 3c1a5444d4 app/testpmd: fix crash at mbuf pool creation
Since
commit 999b2ee0fe ("app/testpmd: enable NUMA support by default"),
testpmd is started with numa enabled by default. This highlights a
floating point exception when started with --total-num-mbufs without any
port (division by 0). This bug was already triggered before this commit
if the --no-numa option was given.

This commit adds a check of the nb_ports value before doing the
division. By looking at this code, it appears that the creation of the
mbuf pool is not consistent for the number of mbufs depending on the
configuration. This is fixed in the next commit.

Fixes: b6ea6408fb ("ethdev: store numa_node per device")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
2017-05-01 15:14:31 +02:00
app app/testpmd: fix crash at mbuf pool creation 2017-05-01 15:14:31 +02:00
buildtools mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
config config: make AVX and AVX512 configurable 2017-04-30 23:17:53 +02:00
devtools vhost: fix header for strict compilation flags 2017-05-01 00:13:15 +02:00
doc doc: add limitation of AAD size to QAT guide 2017-04-28 17:46:19 +02:00
drivers crypto/qat: fix dequeue statistics 2017-04-28 17:46:19 +02:00
examples examples/l2fwd-crypto: fix packets array index 2017-04-28 17:46:19 +02:00
lib cryptodev: fix API digest length comments 2017-04-28 17:46:19 +02:00
mk config: make AVX and AVX512 configurable 2017-04-30 23:17:53 +02:00
pkg version: 17.02.0 2017-02-14 22:17:45 +01:00
test test/crypto: add DPAA2 crypto functional test 2017-04-20 11:32:45 +02:00
usertools usertools: fix CPU layout for more than 2 threads 2017-04-30 15:28:01 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore devtools: add tags and cscope index generation 2017-04-30 12:57:04 +02:00
GNUmakefile mk: do not build tests by default 2017-02-28 16:04:18 +01:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS doc: add NXP DPAA2 SEC 2017-04-20 11:32:45 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
README doc: add readme file 2015-12-13 22:06:58 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD license for the core libraries and
drivers. The kernel components are GPLv2 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org