numam-dpdk/app
Daniel Mrzyglod 1ef6012ec1 acl: fix division by float zero in test app
Fix issue reported by Coverity.
Coverity ID 13240

This could cause an immediate crash or incorrect computation.

In search_ip5tuples: An expression which may be zero is used
as a divisor in floating-point arithmetic.

divide_by_zero: In expression (long double)tm / pkt,
division by expression pkt which may be zero has undefined behavior.

Fixes: 26c057ab6c ("acl: new test-acl application")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2016-04-27 17:41:46 +02:00
..
cmdline_test app/cmdline_test: add missing dependencies 2015-12-03 00:02:26 +01:00
proc_info config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
test hash: remove aliases for bulk lookup 2016-04-20 13:49:36 +02:00
test-acl acl: fix division by float zero in test app 2016-04-27 17:41:46 +02:00
test-pipeline ethdev: use constants for link state 2016-04-01 21:38:34 +02:00
test-pmd app/testpmd: fix running without Xen whereas enabled 2016-04-11 16:44:15 +02:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00