Xena: Modify aggregate_stats one port no stats when bi-direction 11/18011/1
authorliting <tli@redhat.com>
Thu, 4 Aug 2016 03:28:50 +0000 (23:28 -0400)
committerliting <tli@redhat.com>
Thu, 4 Aug 2016 03:28:50 +0000 (23:28 -0400)
commit76d7d9f3db6549331b1c1762d67f0e7ffb5be4fd
tree87f87095b99b4964d46f54041ae872480b539460
parent40460b1fd291612cca316527c4366e83ae295ce2
Xena: Modify aggregate_stats one port no stats when bi-direction

Xena exception when no stats collected on receive on one port
during bi-directional traffic. Modify aggregate_stats in the
XenaDriver.py, add judge whether the two port both has stats,
if one port has no stats, the result use the port's value which
has stats.

JIRA: VSPERF-327

Change-Id: I18c349d609a2834907f0383dbfbebd5cd281f541
Signed-off-by: liting <tli@redhat.com>
tools/pkt_gen/xena/XenaDriver.py