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 3EF12A00C2; Thu, 5 Jan 2023 04:14:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0CE544067C; Thu, 5 Jan 2023 04:14:06 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id D37FC40041 for ; Thu, 5 Jan 2023 04:14:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672888445; x=1704424445; h=from:to:cc:subject:date:message-id; bh=VvhpEcYxU/pRPECtQXpbARQ5CBx7SUHO9lXrJfSojTM=; b=Ma5YtE2GiyEKARM1U+cYYtvIfOWq6nvclOkmqUwTp0PCj8/9cHNUedXK JAD0w5Ca7D89ivo2Zc1jB/2pkSx7058pOA6ZwenKXmEI4/qqn0dvAi/Iu vRvEULYRug+iXXdm4vsNF984U8Px74DxULyA4lSdoBoLmwC8oEmcp7qy0 dNwBLs75mZA1dTErwDdoYdmhK/zdbkX7fKgxztAzd7zWjTvZjFpQMcDJu WbarUclm972J2skvrobInDOojv8zrAB2nMLkmYBAQsC2NUfv9PQzekJ+8 naaKiXdwTpMnxEillDd1K9lz14PrPJ7LIYD8L9bQ69kKKR8UNP5cJW30/ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="349325209" X-IronPort-AV: E=Sophos;i="5.96,301,1665471600"; d="scan'208";a="349325209" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 19:14:03 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="829389462" X-IronPort-AV: E=Sophos;i="5.96,301,1665471600"; d="scan'208";a="829389462" Received: from unknown (HELO localhost.localdomain) ([10.239.252.93]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 19:14:02 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li , Tang Yaqi Subject: [dts][PATCH V1 1/2] test_plans/vf_pf_reset: add new cases according to testplan Date: Thu, 5 Jan 2023 19:34:23 +0800 Message-Id: <20230105113424.22730-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 to test pf reset trigger vf reset 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