[V1,2/2] tests/TestSuite_veb_switch:vf1 RX-bytes need add four bytes
Commit Message
DTS framework has switched i40evf to iavf, so align with it.
After testing, found that:
when send a packet which length is 60 bytes.
for iavf driver; the statistic from "show port stats 0" is: RX-bytes:56,
but set verbose 1, we can see the packet length is 60.
for i40evf driver; the statistic from "show port stats 0" is: RX-bytes: 60
Signed-off-by: Xie wei <weix.xie@intel.com>
---
tests/TestSuite_veb_switch.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
@@ -286,8 +286,7 @@ class TestVEBSwitching(TestCase):
vf0_tx_stats = self.veb_get_pmd_stats("first", 0, "tx")
vf1_rx_stats = self.veb_get_pmd_stats("second", 0, "rx")
- if self.kdriver == 'ice':
- vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4
+ vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4
self.verify(vf0_tx_stats[0] != 0, "no packet was sent by VF0")
self.verify(vf0_tx_stats == vf1_rx_stats, "VF1 failed to receive packets from VF0")