aboutsummaryrefslogtreecommitdiff
path: root/test/performance
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-20 13:44:51 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-20 13:44:51 +0300
commit5f7ae0d9887da32614f3caa430a18ec8b7a80b76 (patch)
treeecdd155eafbc454fbfd868a8d4abd74dff215cb6 /test/performance
parentc62924bc9eae5eacca1b463ee76929badd186c4a (diff)
parent99ba15f45a35cf57357c6673ea9b29cdf3681106 (diff)
Merge branch 'master' into api-next
Diffstat (limited to 'test/performance')
-rw-r--r--test/performance/odp_l2fwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index 232107f0d..f5bfd55c7 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -231,6 +231,7 @@ static void *pktio_ifburst_thread(void *arg)
if (pkts_ok > 0) {
int sent = odp_pktio_send(pktio_dst, pkt_tbl, pkts_ok);
+ sent = sent > 0 ? sent : 0;
if (odp_unlikely(sent < pkts_ok)) {
stats->drops += pkts_ok - sent;
do