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 98673429F0; Wed, 26 Apr 2023 04:59:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B137410DC; Wed, 26 Apr 2023 04:59:11 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 6A93F40DDA for ; Wed, 26 Apr 2023 04:59:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682477949; x=1714013949; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=EEPmRDYWjvlVH8LXnxO/eMuIwYBzzeBr2iRJp/MX0JA=; b=YtMFM8+jC/+GbXlwwNpUyyWn4Z4AkLNZyUnZVpDD//q7SwBge2eOapgN VXjPObSG4csW/CaM3Ft8Xt9EuPc3EKAWt3h77cJNVly5da3UbtEqfGM9S AISJ1JGwOCMQyPaIB7DCW80vf5tWtzj/qJ/DfMviFNyou32jwzchsD9xV PUnVGeEH2HiRRSieDURSFHVpxz5aaG+lqKStcrSS6oV7crW3uPbYQNZIG yktpbeCrLho/IUqhmPh4bMX0hCHSLff4b6pMimMq+FAosCOiMhW+PCTPn he7/IburbtYi9CJLrhIO3Lw2/qNztGLNlKBEX015/toAcJeHue8wK0enD Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="412274034" X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="412274034" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 25 Apr 2023 19:58:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="783108303" X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="783108303" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP; 25 Apr 2023 19:58:56 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 25 Apr 2023 19:58:55 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 25 Apr 2023 19:58:55 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Tue, 25 Apr 2023 19:58:55 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 25 Apr 2023 19:58:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iskbV1U25s+TqvE5tA9FMIUawhc2Q/zk75QIt8Vl7C9eEvFegUZVKAyk02ZvIRpNV3Cy8ithjf5iDsPXPJ+xaSgAget8wg3t7csI6Cxmwu3yDP1gwYT9ntXcQXp23UQWeFsgb1JVqIP0mGd1+i/UHq/lwo9TGv9ZTi9ot2j4tWpnHeIbAzTBskXHjzQXwj0ieGRdPxSAmegVTJgW4u44aRBP7Wo/DvZBgknybRnYjJMU8i3JRIMQ7BeIjyN0WFtP/ETXdIQXqtpKupVFfsMPUoc9MYoxh35/symW5Z6OsK3lTXggL5XmXNQpwL6KeUtjSkynL3I2EIClRBAHkCYqvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z5JgWihdHoMHsF+9tPwzoI1xOtNlUTwWU2fEzyfcSdM=; b=DXmARCgoccNUuYvDah/NCFtsoEmVKKpA6m+xFvUXdnMPvovK+QAjLVVjIw712eNlMAJ5+omaZZFcj5hnagsrWmnfJnrdlG4/dq6LbwTNuBxLJOWO/a836kzAYZIyjg0ETAIuSlmPRBbnaXbhpzt3CT8ZwFq5iLcNxSEUfD/hJl8iAQ7ylIbdmdzM+wlp8Crxt4l2VeYA/vGm/nS/CN7UhuqYf0iKTKo1l8e144RRIBlcX+1tQdPGc5ceTW4SMo15it4gBQZWI7xZBkEHuZCbYeDKyyv9NvEyUtdcvjg1Nj9/j101S2QmeuLwR7QTmN1SYmYCp7AArUYb2aqX946FLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CY5PR11MB6187.namprd11.prod.outlook.com (2603:10b6:930:25::11) by MW3PR11MB4539.namprd11.prod.outlook.com (2603:10b6:303:2f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.20; Wed, 26 Apr 2023 02:58:53 +0000 Received: from CY5PR11MB6187.namprd11.prod.outlook.com ([fe80::41b:9ed1:3c5e:32a9]) by CY5PR11MB6187.namprd11.prod.outlook.com ([fe80::41b:9ed1:3c5e:32a9%6]) with mapi id 15.20.6319.034; Wed, 26 Apr 2023 02:58:53 +0000 From: "Tu, Lijuan" To: "Chen, LingliX" , "dts@dpdk.org" CC: "Peng, Yuan" , "Chen, LingliX" Subject: RE: [dts][PATCH V1 1/2] test_plans/vf_queue_start_stop: add new vf test_plan Thread-Topic: [dts][PATCH V1 1/2] test_plans/vf_queue_start_stop: add new vf test_plan Thread-Index: AQHZbdmC1BhXMXmahkaTfUvkFmx8aq88+aHA Date: Wed, 26 Apr 2023 02:58:53 +0000 Message-ID: References: <20230413061730.69065-1-linglix.chen@intel.com> In-Reply-To: <20230413061730.69065-1-linglix.chen@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CY5PR11MB6187:EE_|MW3PR11MB4539:EE_ x-ms-office365-filtering-correlation-id: def0743e-30ae-40c1-8018-08db46022b3a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k0s0Iea0d/2nDXcXyZssiPuy8wfb9OD6RF7ksExUGHjJilyS2ZZf9U2vtuZz+IAoCSZrNxk3NFghQ0SrOClkXYWahLSUYzpsZq+6nDefFTtYieKsjnk332GyzFJpoticZG5phAd7tlmOXlE0yx1wpwwtCQsoVZMQZ8CX33Otl0cmevHxxFVoPIkiTYp6cJlW//mzCHRKpq9dU9cdNuIQjLCMq7Q5S/zfeZrPNiiGnflZRMFfRnpwLwDWRII7fSz8KYV/XwDUBW4lL1mj/Rdk7KL2EOm+HfQGsZ05l62xUGU1PQFuD2oUQsK2OEvEheRI6r9UdCdCRZwnso80ipitZiZOt1Owlm/08ROk+yMaivRs0GezkD22mY5k1jQAMHSVhy3bYDcrvFec8EOpMYGBtFDuF/lX2Q/UeXU6zVHBUV4ZCvxM1IjZ4sk+tZQ9KfRYY6QNmRztu9eOg1Qqp3u6kWlfeQuCIb1x+ToY+3WsXKWNQghm5gTIqkE5eA8kbCiti/36qZP28CxpIskuoEIG/eHNyhJ3JI57Gw3xIEsOaRvRcf87T31RA+Zn6ffZGcrALwTaQTFfwMZWkZJra/070Gw6mEIemgPqvERkiWzlL0sUyMotTzWVPxrmqrQJS5dg x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY5PR11MB6187.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(346002)(136003)(376002)(39860400002)(396003)(366004)(451199021)(9686003)(6506007)(82960400001)(53546011)(52536014)(7696005)(5660300002)(186003)(26005)(54906003)(41300700001)(122000001)(8676002)(8936002)(86362001)(107886003)(38100700002)(33656002)(55016003)(316002)(76116006)(66946007)(66556008)(66476007)(66446008)(64756008)(110136005)(4326008)(71200400001)(38070700005)(83380400001)(2906002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?nlknPV5+R49uCnlpFUsFBAfV9EqO/67M57Qu5wfiRU5Ts9Oc9o/haaFHGV?= =?iso-8859-1?Q?Sk8hpIrdjsx9+8Rq2qEFgjHo/5IyWr+bpRgnHgurmMIn+wmv11s6HaKcCQ?= =?iso-8859-1?Q?KtKaJSgcS+9DwkIyuiLe5Lp2migTPLoWwX5QIqT2PXwwex/KDNFiXDDnFY?= =?iso-8859-1?Q?ESMAROMex7TySj7jVRnrmaYsGpKxKAWBjulN+zLr11zSoJnQS9fAnFq3Zc?= =?iso-8859-1?Q?pXwCiaQSXd1rzUTsalGiI78mM9pqkfWFfEzBW/5KK9CDGpa/IDh8F+pfcS?= =?iso-8859-1?Q?6gkd296bvqcT6XdeLbtxNcwGkxquYV7aNPkAjnjSdlwx8BDc+VQ78ciJsi?= =?iso-8859-1?Q?L3Jc+mgySykIEVuDfGOtBHN5zsKf+fPRqciuiI3+/yYCDiluyr2f2jCRIk?= =?iso-8859-1?Q?Zl+qWug5E8Un2thSNxsQPHfAy/gbEbAD81aNxx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TSoMkc7Ttl7je1E+CZWxtI7TCLawXsHh/aeUEUa+zXIOn4beA?= =?iso-8859-1?Q?piK3zYVWsAokNbcZ/GoN0bY0vt9ss4ZuMeWIxu1Bm/USjX7Hbgy1dPQiMC?= =?iso-8859-1?Q?CHv+xXXAR+0H7Y/FeaJ7plPX1pBL3alJWDqywh82AUGV8fITBjIwVPbmfP?= =?iso-8859-1?Q?0em3pRuxHb5mrhFTuxKs75ffNm3pqUY72+XWS3hQwDTDbcKzCY2Mxc5OjN?= =?iso-8859-1?Q?ObFzlBwGHlh3aGtGpULb+SldIu1njL/870wDQN0An6Bxa57ozYJZpIY9js?= =?iso-8859-1?Q?cA3iX/TZr3+smfw8UyhbblaXOSfmGs0tAE?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY5PR11MB6187.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: def0743e-30ae-40c1-8018-08db46022b3a X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2023 02:58:53.2151 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7JB+rjnJHdIrxSJo/CKRt7qScbV4OsNH17OYo6eudJ5rb6w88ZkbUzzkCYJfzmKRnzKJGPuI47CVkxrmjwzhvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4539 X-OriginatorOrg: intel.com 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 I thinks this is a generic test case, it's not necessary to create a new te= st suite, add it to iavf test plan is more make sense. By the way, the title and description of test plan are not align with conte= nt. > -----Original Message----- > From: Lingli Chen > Sent: Thursday, April 13, 2023 2:17 PM > To: dts@dpdk.org > Cc: Peng, Yuan ; Chen, LingliX > Subject: [dts][PATCH V1 1/2] test_plans/vf_queue_start_stop: add new vf > test_plan >=20 > add vf_queue_start_stop_test_plan >=20 > Signed-off-by: Lingli Chen > --- > test_plans/index.rst | 1 + > test_plans/vf_queue_start_stop_test_plan.rst | 94 ++++++++++++++++++++ > 2 files changed, 95 insertions(+) > create mode 100644 test_plans/vf_queue_start_stop_test_plan.rst >=20 > diff --git a/test_plans/index.rst b/test_plans/index.rst index 2008f50b..= 7c72d6eb > 100644 > --- a/test_plans/index.rst > +++ b/test_plans/index.rst > @@ -192,6 +192,7 @@ The following are the test plans for the DPDK DTS > automated test system. > vf_packet_rxtx_test_plan > vf_pf_reset_test_plan > vf_port_start_stop_test_plan > + vf_queue_start_stop_test_plan > vf_rss_test_plan > vf_single_core_perf_test_plan > vf_smoke_test_plan > diff --git a/test_plans/vf_queue_start_stop_test_plan.rst > b/test_plans/vf_queue_start_stop_test_plan.rst > new file mode 100644 > index 00000000..a1a83450 > --- /dev/null > +++ b/test_plans/vf_queue_start_stop_test_plan.rst > @@ -0,0 +1,94 @@ > +.. SPDX-License-Identifier: BSD-3-Clause > + Copyright(c) 2023 Intel Corporation > + > +=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 > +VF Shutdown API Queue Tests > +=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 > + > +This tests for Shutdown API feature can be run on linux userspace. It > +will check if NIC vf port can be stopped and restarted without exiting > +the application process. Furthermore, it will check if it can > +reconfigure new configurations for a port after the port is stopped, > +and if it is able to restart with those new configurations. It is based > +on testpmd application. > + > +The test is performed by running the testpmd application and using a > +traffic generator. Port/queue configurations can be set interactively, > +and still be set at the command line when launching the application in > +order to be compatible with previous test framework. > + > +Prerequisites > +------------- > + > +Assume port A and B are connected to the remote ports, e.g. packet gener= ator. > +Get the pci device id of DUT, for example:: > + > + ./usertools/dpdk-devbind.py -s > + > + 0000:af:00.0 'Ethernet Controller XXV710 for 25GbE SFP28 158b' > + if=3Denp175s0f0 drv=3Di40e unused=3Dvfio-pci > + > +Generate 1 VF on PF:: > + > + echo 1 > /sys/bus/pci/devices/0000:af:00.0/sriov_numvfs > + > +Bind VFs to dpdk driver:: > + > + modprobe vfio-pci > + ./usertools/dpdk-devbind.py -b vfio-pci 0000:af:01.0 > + > +Test Case: vf queue start/stop > +------------------------------ > + > +This case support VF (Intel=C2=AE Ethernet 700 Series/Intel=C2=AE Ethern= et 800 > +Series) > + > +#. Launch testpmd:: > + x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 -a > +0000:af:01.0 -- -i --portmask=3D0x1 --port-topology=3Dloop > + > +#. Run "set verbose 1" to set verbose > +#. Run "set fwd mac" to set fwd type > +#. Run "start" to start fwd package > + > +#. Start a packet capture on the tester in the background:: > + tcpdump -i ens7 'ether[12:2] !=3D 0x88cc' -Q in -w > +/tmp/tester/sniff_ens7.pcap > + > +#. Start packet generator to transmit packets:: > + sendp([Ether(dst=3D'3c:fd:fe:c1:0f:4c', > +src=3D'00:00:20:00:00:00')/IP()/UDP()/Raw(load=3Db'XXXXXXXXXXXXXXXXXX')]= ,if > +ace=3D"ens7",count=3D4,inter=3D0,verbose=3DFalse) > + > +#. Stop testpmd:: > + > + --------------------- Forward statistics for port 0 ---------------= ------- > + RX-packets: 4 RX-dropped: 0 RX-total: 4 > + TX-packets: 4 TX-dropped: 0 TX-total: 4 > + > + ---------------------------------------------------------------------- > + ------ > + > +#. Quit tcpdump and check tester port receive 4 packets > + > +#. Run "port 0 rxq 0 stop" to stop rxq 0 in port 0 #. Start packet > +generator to transmit and check tester port not receive packets #. Stop > +testpmd:: > + > + ---------------------- Forward statistics for port 0 --------------= -------- > + RX-packets: 0 RX-dropped: 4 RX-total: 4 > + TX-packets: 0 TX-dropped: 0 TX-total: 0 > + > + ---------------------------------------------------------------------- > + ------ > + > +#. Run "port 0 rxq 0 start" to start rxq 0 in port 0 #. Run "port 0 txq > +0 stop" to stop txq 0 in port 0 #. Start packet generator to transmit > +and check tester port not receive packets > + and in testpmd it not has "port 0/queue 0: received 1 packets" print > +#. Stop testpmd:: > + > + ---------------------- Forward statistics for port 0 --------------= -------- > + RX-packets: 4 RX-dropped: 0 RX-total: 4 > + TX-packets: 0 TX-dropped: 0 TX-total: 0 > + > + ---------------------------------------------------------------------- > + ------ > + > +#. Run "port 0 txq 0 start" to start txq 0 in port 0 #. Start packet > +generator to transmit and check tester port receive 4 packets > + and in testpmd it has "port 0/queue 0: received 1 packets" print #. > +Stop testpmd:: > + > + ---------------------- Forward statistics for port 0 --------------= -------- > + RX-packets: 4 RX-dropped: 0 RX-total: 4 > + TX-packets: 4 TX-dropped: 0 TX-total: 4 > + > + ---------------------------------------------------------------------- > + ------ > -- > 2.17.1