From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E94DAA00C2; Fri, 6 Jan 2023 03:07:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5C7B4067C; Fri, 6 Jan 2023 03:07:48 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 16B5D4021F for ; Fri, 6 Jan 2023 03:07:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672970867; x=1704506867; h=from:to:cc:subject:date:message-id; bh=FoDzwo5ub+IXHUa/Khqj1hslK2sfd6JoC+VDZKqM/KM=; b=fczsj63notdMepYur0C6w9sRcHObyQUkF/SPFDbOY4sX/8enrkP+OMJH GiJ+Huq3BL15gQg9PpJtlc0uwOMpBrXKxH6Vzdb6lnFk8RJUNo57Lw8FI tdI0lZbtlfpdNxGSH1zW9vSp8rPXBAco5a0WAkCNY4oPwwkTGlLOoYPr9 4+KNROybBpX2ouXaM5r8VDOUE5qdQM26rZUw4aZeN1lvZV1lyFfKueshe MVoKwJ4ALpbBZYFFwkHZEEmpgC1IwXeElPUayLRTEtSFzGK5YVG9kPr6p mlFK/ml1qw/bOCSBZluUdeILAVwltte7VD5pTyCd0hF4y8SfZ/0yropKp w==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="323632850" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="323632850" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 18:07:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="719040200" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="719040200" Received: from unknown (HELO localhost.localdomain) ([10.239.252.93]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 18:07:44 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li , Tang Yaqi Subject: [dts][PATCH V2 1/2] test_plans/vf_pf_reset: add new case and plan for pf_reset_trigger_vf_reset Date: Fri, 6 Jan 2023 18:27:57 +0800 Message-Id: <20230106102758.11043-1-hongbox.li@intel.com> X-Mailer: git-send-email 2.17.1 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 add case test_pf_reset_trigger_vf_reset according to test plan. Signed-off-by: Tang Yaqi Signed-off-by: Hongbo Li --- v2: -modify git comments test_plans/vf_pf_reset_test_plan.rst | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/test_plans/vf_pf_reset_test_plan.rst b/test_plans/vf_pf_reset_test_plan.rst index 866214f7..cc204e26 100644 --- a/test_plans/vf_pf_reset_test_plan.rst +++ b/test_plans/vf_pf_reset_test_plan.rst @@ -630,3 +630,43 @@ test Case 10: vf reset (two vfs passed through to two VM) 8. Reset vf0 and vf1, send the two packets, vf0 can forward both of the two type packets to VF1. + +test case 11: pf reset trigger vf reset +======================================= + +1. Execute step1-step6 of test case 1. + +2. Reset PF:: + + echo 1 > /sys/bus/pci/devices/0000:81:00.0/reset + +3. Testpmd shows:: + + Port 0: reset event + Port 1: reset event + +4. Reset the vfs:: + + testpmd> stop + testpmd> port stop all + testpmd> port reset all + testpmd> port start all + testpmd> start + + Send the same 1000 packets with scapy from tester, verify the packets can be + received by one VF and can be forward to another VF correctly, + check the port info:: + + testpmd> show port info all + + ********************* Infos for port 0 ********************* + MAC address: 00:11:22:33:44:11 + Promiscuous mode: disabled + Allmulticast mode: enabled + + ********************* Infos for port 1 ********************* + MAC address: 00:11:22:33:44:12 + Promiscuous mode: disabled + Allmulticast mode: enabled + + The info status is consistent to the status before reset. -- 2.17.1