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 7F1BAA04A4; Tue, 26 May 2020 04:08:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4CA431D978; Tue, 26 May 2020 04:08:20 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 48D611D62C for ; Tue, 26 May 2020 04:08:18 +0200 (CEST) IronPort-SDR: I7Vfl2nxu+h+OW/ue+1ksq1UHkwrKn7F2TuHTcGdz6Cj2Td4uO+VpfVCYVLj/Pl0BdgUaXNBuh +FVdFRt/nKbA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2020 19:08:17 -0700 IronPort-SDR: FwbKuRIGGOWL2wSnS5b1ezhy9/80wE/13byzlHJV2YjKGVnqSjfF7SHwvTWzbibQzU/cPxOtkd EXBl/RuJvdOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,435,1583222400"; d="scan'208";a="255028616" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga007.fm.intel.com with ESMTP; 25 May 2020 19:08:17 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 25 May 2020 19:08:16 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 26 May 2020 10:08:14 +0800 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Tue, 26 May 2020 10:08:14 +0800 From: "Yao, Lei A" To: "Mo, YufengX" , "dts@dpdk.org" Thread-Topic: [dts][PATCH V3 2/3] tests/malicious_driver_event_indication: update test plan Thread-Index: AQHWMjs5lPwt8nnhFUqm81zX9Rtwz6i5oAeA Date: Tue, 26 May 2020 02:08:14 +0000 Message-ID: References: <20200525022315.3214-1-yufengx.mo@intel.com> <20200525022315.3214-3-yufengx.mo@intel.com> In-Reply-To: <20200525022315.3214-3-yufengx.mo@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-reaction: no-action dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V3 2/3] tests/malicious_driver_event_indication: update test plan 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" > -----Original Message----- > From: Mo, YufengX > Sent: Monday, May 25, 2020 10:23 AM > To: dts@dpdk.org; Yao, Lei A > Cc: Mo, YufengX > Subject: [dts][PATCH V3 2/3] tests/malicious_driver_event_indication: > update test plan >=20 >=20 > +2. Launch PF by testpmd > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x03 -n 4 --file-prefix= =3Dtest1 > -w [pic of PF] -- -i Should be pci > + > +3. Launch VF by testpmd > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x03 -n 4 --file-prefix= =3Dlei1 - > w [pic of VF] -- -i Should be pci > + > set fwd txonly > + > start > + > +4. Check the PF can detect the VF's unexpected behavior and output > warning log > + testpmd> > + i40e_dev_alarm_handler(): ICR0: malicious programming detected > + i40e_handle_mdd_event(): Malicious Driver Detection event 0x00 on TX > queue 65 PF number 0x01 VF number 0x40 device 0000:18:00.1 > + i40e_handle_mdd_event(): TX driver issue detected on PF > + i40e_handle_mdd_event(): TX driver issue detected on VF 0 1times > + > + > +Test Case2: Check the event counter number for malicious driver events > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. Generate i40e VF when PF is binded to igb_uio driver > + echo 1 > /sys/bus/pci/devices/0000\:18\:00.1/max_vfs > + > +2. Launch PF by testpmd > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x03 -n 4 --file-prefix= =3Dtest1 > -w [pic of PF] -- -i Should be pci > + > +3. launch VF by testpmd and start txonly mode 3 times: > + repeat following step 3 times > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x03 -n 4 --file-prefix= =3Dlei1 - > w [pic of VF] -- -i Should be pci > + > set fwd txonly > + > start