numam-dpdk/app/test-pmd
Bruce Richardson 4dccdc789b app/testpmd: simplify handling of stats mappings error
Simplifiy the logic in the error checking branch. Rather than having a
single error branch which checked both RX and TX conditions and made
extensive use of the ? operator, move the error checking explicitly into
the RX and TX individual branches.

The original code caused compilation issues when attempting compilation
with clang on BSD, due to type mismatches. This change fixes the issues
while making the code easier to read and maintain overall.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-06-19 00:57:50 +02:00
..
cmdline.c app/testpmd: fix cmdline variable types 2014-06-19 00:57:50 +02:00
config.c app/testpmd: command to configure MTU 2014-06-18 00:55:22 +02:00
csumonly.c app/testpmd: add L3 packet type in offload flags 2014-06-17 18:22:31 +02:00
flowgen.c app/testpmd: add flowgen forwarding engine 2014-05-16 13:25:02 +02:00
icmpecho.c app/testpmd: add engine that replies to ARP and ICMP echo requests 2014-05-16 13:25:16 +02:00
ieee1588fwd.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
iofwd.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
macfwd-retry.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
macfwd.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
macswap.c app/testpmd: add macswap forwarding engine 2014-05-16 13:24:52 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
mempool_anon.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
mempool_osdep.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
parameters.c app/testpmd: simplify handling of stats mappings error 2014-06-19 00:57:50 +02:00
rxonly.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
testpmd.c ethdev: more RSS flags 2014-06-17 18:21:41 +02:00
testpmd.h app/testpmd: command to configure MTU 2014-06-18 00:55:22 +02:00
txonly.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00