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 3D80BA00C2; Thu, 5 Jan 2023 09:05:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0EB16400EF; Thu, 5 Jan 2023 09:05:40 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 1036640041 for ; Thu, 5 Jan 2023 09:05:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672905939; x=1704441939; h=from:to:cc:subject:date:message-id; bh=aYCkHiKqndjpfOdh/imxyYb39DlWbtrUaZtQMR+D700=; b=BCutigXfBTyu+72EKUY8GCwOvyDp1tp6Re+vd1MUV7D3J0Baaz1ZcdBY 1zNtYbhYdebweAiyWbU6m53LBlcSbr5zKpB+ggLeHQMqgNII5YJXcEGzg mfZJOaw7ucYch2cPqond3B7pZa6Yh1gQGE+w1aJmf5przQ+hEqfFG2Ju0 sodxzEy8O2c/a9mdft0B/A6liQBkr3eGAIUx1Z+Mv6Q3dsFbVbWCq4ihq r5Yj1xIk9qK6GFYw3bghRDNVhnLs+boMRhZPY76I1weWc8zo8y6oL40mf f52XLHmJ0dYVFmVGk5nI1LTti7OHAC71CbqT5UHGLrVWpAc3m3q5nAgzs w==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="408396316" X-IronPort-AV: E=Sophos;i="5.96,302,1665471600"; d="scan'208";a="408396316" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 00:05:38 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="900844327" X-IronPort-AV: E=Sophos;i="5.96,302,1665471600"; d="scan'208";a="900844327" Received: from unknown (HELO localhost.localdomain) ([10.239.252.93]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 00:05:36 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li , Tang Yaqi Subject: [dts][PATCH V1 1/2] vf_pf_reset/pf_reset_trigger_Vf_reset: add new case and plan for pf_reset_trigger_vf_reset Date: Fri, 6 Jan 2023 00:25:45 +0800 Message-Id: <20230105162546.24235-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 --- 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