From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 52831A0A02; Wed, 6 Jan 2021 07:50:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 872251608D3; Wed, 6 Jan 2021 07:50:31 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 6C58D16089F for ; Wed, 6 Jan 2021 07:50:30 +0100 (CET) IronPort-SDR: JjbnZ0/Utvs5uyhU0VqcitCQBANcHz1fuKla7wsIhoJBL00KOG+WMIXLmd5O08pCeoeF2j6i5F Jnm/9pvdDyvQ== X-IronPort-AV: E=McAfee;i="6000,8403,9855"; a="177391547" X-IronPort-AV: E=Sophos;i="5.78,479,1599548400"; d="scan'208";a="177391547" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 22:50:30 -0800 IronPort-SDR: LivX8aF3N3NASqd5SWtXDBMCPA8EP0XqcunpJGKdKBS4tpXIILk+wGC4QtwXmamQ5R3jst6Qk/ vzGYcsi8E6cw== X-IronPort-AV: E=Sophos;i="5.78,479,1599548400"; d="scan'208";a="462581795" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 22:50:28 -0800 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Wed, 6 Jan 2021 14:52:33 +0800 Message-Id: <20210106065233.5401-3-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210106065233.5401-1-weix.xie@intel.com> References: <20210106065233.5401-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 2/2] tests/TestSuite_veb_switch:vf1 RX-bytes need add four bytes X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" 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 --- tests/TestSuite_veb_switch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py index 00dd76e7..915296ff 100644 --- a/tests/TestSuite_veb_switch.py +++ b/tests/TestSuite_veb_switch.py @@ -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") -- 2.17.1