From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3F3FAA00C5; Fri, 29 May 2020 07:37:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E365A1DC06; Fri, 29 May 2020 07:37:13 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 90FF11DC05 for ; Fri, 29 May 2020 07:37:12 +0200 (CEST) IronPort-SDR: 2JmuBnBALLioQpSQtMeHAOHwtT/EOKuNOvY4/qeUem1KcHe6V92qBLLh2xDloNRA1vnL80a8sS kOoSKZ6lNK0Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 22:37:10 -0700 IronPort-SDR: CUELob45P1SgP5RIpV62gqZIhnKHIatu8WhHUedXXfpi9KoJAXo8Dfd6cvKlXi7DvUsGBCSBmW 6Ls02cAyEQ5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,447,1583222400"; d="scan'208";a="285418801" Received: from unknown (HELO dpdk-zhushuai-tetser.icx.intel.com) ([10.240.183.103]) by orsmga002.jf.intel.com with ESMTP; 28 May 2020 22:37:09 -0700 From: Zeng Xiaoxiao To: dts@dpdk.org Cc: Zeng Xiaoxiao Date: Fri, 29 May 2020 14:19:51 +0000 Message-Id: <20200529141951.30482-1-xiaoxiaox.zeng@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/kernelpf_iavf:add_pvid add test steps X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" *.pf reset vlan, vf need reset Signed-off-by: Zeng Xiaoxiao --- tests/TestSuite_kernelpf_iavf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 5653d42..fd48fa2 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -408,10 +408,15 @@ class TestKernelpfIavf(TestCase): self.verify(len(receive_pkt) == 1, "tester received wrong vlan packet!!!") # remove vlan + self.vm_testpmd.execute_cmd("stop") + self.vm_testpmd.execute_cmd("port stop all") self.dut.send_expect("ip link set %s vf 0 vlan 0" % self.host_intf, "# ") out = self.dut.send_expect("ip link show %s" % self.host_intf, "# ") self.verify("vlan %d" % random_vlan not in out, "Failed to remove pvid on VF0") # send packet without vlan + self.vm_testpmd.execute_cmd("port reset 0") + self.vm_testpmd.execute_cmd("port start all") + self.vm_testpmd.execute_cmd("start") out = self.send_and_getout(vlan=0, pkt_type="UDP") self.verify(self.vf_mac in out, "Not received packet without vlan!!!") -- 2.17.1