numam-dpdk/app
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
..
pdump ring: return remaining entry count when dequeuing 2017-03-29 22:32:20 +02:00
proc_info app/procinfo: fix description of --xstats-name option 2017-04-21 15:13:02 +02:00
test-crypto-perf app/crypto-perf: fix AEAD tests when AAD is zero 2017-04-20 11:32:45 +02:00
test-pmd app/testpmd: fix crash at mbuf pool creation 2017-05-01 15:14:31 +02:00
Makefile app: do not build test-crypto-perf if cryptodev disabled 2017-04-10 12:00:06 +02:00