From patchwork Mon Jan 30 11:12:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 122627 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F0C4424B9; Mon, 30 Jan 2023 04:15:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1AD140EDD; Mon, 30 Jan 2023 04:15:02 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id E3C6240A8A for ; Mon, 30 Jan 2023 04:15:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675048501; x=1706584501; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xXHjCcD5Xrs+tRTKCRVYLCLIRwxc6Gc1nLxXddluQ0s=; b=QcWp7+q93QLgEjx8rGTXdmUNJJjLLuylVWWFO+/kjcULmXP9kLcdyOUy cqZccSgwjjldWmEMTMWHYuDS42ZOBFALwfCLxoqiq0Qv/TudMQYYtLCAV bD5K/ECZ5gAlffVRXyiFFgqtYXH+Djb90SahKlbw0ntvAMVHBRfqBwuo8 7LaL8W34qWyBk/TjAf5ASxBNx/nT2e5zApZv+zkk3hVsgwbxHOMOrqoDv MY6QfN2c/fPbl8KA8zVEiCvkSy04q7t16Q/HOlyoEigekgDlGt70zvHig iYWATfVLzgU3a+nQABugLzyR5fqL1DWbsPylCusI51KwoPOmRIiQZfbHA Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10605"; a="354780450" X-IronPort-AV: E=Sophos;i="5.97,257,1669104000"; d="scan'208";a="354780450" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2023 19:14:59 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10605"; a="641395484" X-IronPort-AV: E=Sophos;i="5.97,257,1669104000"; d="scan'208";a="641395484" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2023 19:14:57 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify script to adapt the intree kernel driver Date: Mon, 30 Jan 2023 11:12:25 +0000 Message-Id: <20230130111226.4004219-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 modify the script to adapt to the situation that the kernel driver cannot set "vf-vlan-running". Signed-off-by: Song Jiale --- tests/TestSuite_kernelpf_iavf.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 5e955feb..86c12d85 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -869,7 +869,10 @@ class TestKernelpfIavf(TestCase): self.check_vlan_offload(vlan_type="filter", stats="on") out = self.send_pkts_getouput(self.tester_intf, pkt_list1) receive_pkt = re.findall("dst=%s" % self.vf_mac, out) - self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!") + if self.default_stats: + self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!") + else: + self.verify(len(receive_pkt) == 2, "Failed error received vlan packet!") self.vm_testpmd.execute_cmd("rx_vlan add 1 0") self.start_tcpdump(self.tester_intf) @@ -887,7 +890,10 @@ class TestKernelpfIavf(TestCase): self.vm_testpmd.execute_cmd("rx_vlan rm 1 0") out = self.send_pkts_getouput(self.tester_intf, pkt_list1) receive_pkt = re.findall("dst=%s" % self.vf_mac, out) - self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!") + if self.default_stats: + self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!") + else: + self.verify(len(receive_pkt) == 2, "Failed error received vlan packet!") @check_supported_nic(ice_nic) def test_iavf_dual_vlan_strip(self):