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 23163A04B5; Wed, 2 Sep 2020 07:25:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C93891C066; Wed, 2 Sep 2020 07:25:08 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 0DEBCE07 for ; Wed, 2 Sep 2020 07:25:06 +0200 (CEST) IronPort-SDR: eHNGOPnRh3ri4Zt+dSdJCzNbLNc0J5fwxFshO8faHLleJ1Bvcwx3F8zAb+M53MXX0sFVgPOUsX c0EIkQ/bFKjA== X-IronPort-AV: E=McAfee;i="6000,8403,9731"; a="136838729" X-IronPort-AV: E=Sophos;i="5.76,381,1592895600"; d="scan'208";a="136838729" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2020 22:25:01 -0700 IronPort-SDR: V2tQcH6acrhmfUNp7fsKzJW8HNehvbJOmhkIr10QepoOFozziEDQqTRxc3jhQnP7r5/7knIIhp vwTnUweWjKXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,381,1592895600"; d="scan'208";a="477499723" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga005.jf.intel.com with ESMTP; 01 Sep 2020 22:25:00 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 1 Sep 2020 22:25:00 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 1 Sep 2020 22:25:00 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.51) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 1 Sep 2020 22:24:59 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d9JpVKevqKB7s6P0RXPkIU0HJK1K+d7+SMRiQSjkiNNVIxtUMm9Bxn/1sS6DTlQohV2CUE/dySQ69Dbi3Sx38DhhhoJYnRi83jdJcJMfU7y/JV5cKOVOtQKxKMZvpA3AvfAyO2S3nyhX5qJHPLLMl0kjLDAzWZ27/OY4ZFfpYka0xBhkxG1GqvmtZw84gyaqkfMOJEog+PAqLGtMwSP/Eliv30O44hHIQGUO5CdUoti5sQlLRaVigygB00ntxzJ9fOH4cMqhTO/L8C93GFoYQMDEj4qr1PAl2h6c717SEII+7oDPqYbkSdUOZmrs//hiHo/kZ46xuY1P28TCa7xe8w== 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-SenderADCheck; bh=mlmKYgVu/m5Kgxkp0l6ChjOjT0IV8kRBtxHfofwcV2c=; b=X/fg181C6cGomfQAgWlgb7/BKjZ2CWF+TBvvTJ+2alPZFSpFuq2vfwWDy0xP8HZluhbJ3JxF0IxIakai+wH5mq2AiMbJ12RxspMIg5WKw2ajzazRMFgz7xNlrQtfQBDwHze0WIJ8d5c6imzvlYtJyQn1OjvDg/ImUnyXhrDpFom67oF4Cqx03WpkkW/AfJKKBhqQRQEv/MefVajb/rrP8xJKhE53z0YIF/ALas6F9Gaji2pW3ttPdwjAAOCS3cMog7poB+HsfU8YUxun27pkSXPOGLaWdJwQXsX82cFS8nBaWAuvDXyU31n5nMBr3WXnP/kyWPD0pRswPGnFjfWi6A== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mlmKYgVu/m5Kgxkp0l6ChjOjT0IV8kRBtxHfofwcV2c=; b=QeZ1GDAmJSIVztE3NAD5jYo0E/z1YIrBJGm8CQljjDipngeQT01s2PNofu7f56CfUfglK5X7HAe24ojr/6yeZBbVPGfek9XIzLda1DSjfsGY3Tdz2wa6jGfRARqUHinb9Dbqy7O6vA2DFivyH535KfpDNiirqr3XyiWQel8GD1o= Received: from BY5PR11MB3973.namprd11.prod.outlook.com (2603:10b6:a03:185::29) by BY5PR11MB4104.namprd11.prod.outlook.com (2603:10b6:a03:18f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.23; Wed, 2 Sep 2020 05:24:58 +0000 Received: from BY5PR11MB3973.namprd11.prod.outlook.com ([fe80::f586:b5a8:4b3d:1e76]) by BY5PR11MB3973.namprd11.prod.outlook.com ([fe80::f586:b5a8:4b3d:1e76%5]) with mapi id 15.20.3326.025; Wed, 2 Sep 2020 05:24:58 +0000 From: "Yu, PingX" To: "dts@dpdk.org" CC: "Peng, Yuan" , "Yu, PingX" Thread-Topic: [dts] [PATCH] change 128 profiles case due to dpdk code update Thread-Index: AQHWgMvayMBEUmU+QE6g7PeVb4ScbalU0Q3g Date: Wed, 2 Sep 2020 05:24:58 +0000 Message-ID: References: <1599036748-32869-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1599036748-32869-1-git-send-email-yuan.peng@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b297d9c9-8dc4-4f47-0d94-08d84f0088d2 x-ms-traffictypediagnostic: BY5PR11MB4104: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9GFKOR8hhM4RxyhjS/WErRxN4YJPyPMJFKtgIy2YZJuaHYgcT9PWo3pZZkW6F7V1k0WtDqVwfJkhHlIL96ox4uiekQScF2tXQ+/tiKZ+Varg6te33XU7y3fv90i6BZokW+IK7FH7tfu7si102TJ/xDs1R8XsUKqEmmuioEnUOZYC2CRehUNXEufLhGj0MGDVWck1OayeLZWL2WITtYvEIPsympN4gDnD6DdKyz/G8VIThFg59ji7ux8nbrM6DJq0SdsIqbR5erGF0T25ZCQg8t1tyz8JlEl9j08Zz0ISiURiwHNxMG3FayPYE0+2reJUbAD4gnwRxNmVC8F+CAXhxQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB3973.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(346002)(39860400002)(376002)(136003)(2906002)(5660300002)(8676002)(15650500001)(478600001)(52536014)(107886003)(4326008)(33656002)(8936002)(83380400001)(71200400001)(64756008)(26005)(66946007)(6506007)(53546011)(76116006)(86362001)(66556008)(9686003)(66476007)(6916009)(186003)(66446008)(55016002)(316002)(54906003)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 9qds4s0KZAESgXqVNOag/JAB88U/Qxm82iqgVbaNn+AHAloqeHDSsADymXK0CpZXdSS9vRxeC2PkhJEeqBKLeV6/A1hZhsTWVXqEewJiuYFM5LMVSrlVfwQiW4QkCefyeVEIyGizQ6nXj7Kaw3Tqxgwwk+wHy4bVnDtwyTNWMOP9FwIo/rN8yNRPwV6U+28kjXIF+prRrIGu6ZqA2bydhX4YSvUhzPOEeQ3UA/5jRKBawhSr/F7CRu4NWv0kJ5MlLXOIRkzhIQ6o14I/3B1HSlzBtWXQqmch49E8i7jTDkWkxugHlunNqDYuSc4yZsFd0jYjm6ra5hOS3N950QDhpZrd5iOm2+tXEnYrxuktNeFOb4KyYn7sv8l10yQvvcDLZWMdbgeyYgRrk3SS68EInT5fui3uqWWgFq+jd1g+I24Viw0k5J5FyBquVhLZOn/eBhLj6AnldmxN3rGCf2Xpg5Csxe1XDn8FJrXCHxNGXqEX9ZydqpIlRhuVIistLrDJ+vASxQTpg7x6g2wdr1tklZBAPcRX5lVPZ30AMT0pM0zcAtNgTTWnXEcJGe60aKmAceyV1Z3w3BUa8PgbPIOhjH2nzt7Qa/QKXlYYJaZ8bNtbPYAHqmpvTz2QURa02NjDlBHAIvigbqXVG6AS+Vpmdw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB3973.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b297d9c9-8dc4-4f47-0d94-08d84f0088d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2020 05:24:58.5537 (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: Buc+fFk0bUcv3e2Rozepln3SCh7rIigUYd5ga8E6JKcOZqeBKxrOX73go1aLRuCjktwafo2mX86Nv+tRIEL7Hw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4104 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH] change 128 profiles case due to dpdk code update 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" Tested-by: Yu, PingX Regards, Yu Ping > -----Original Message----- > From: dts On Behalf Of Peng Yuan > Sent: Wednesday, September 2, 2020 4:52 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] change 128 profiles case due to dpdk code update >=20 > iavf_fdir test plan and script update due to DPDK code update: > if there is not corresponding rule existing, the profile will be deleted. >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/test_plans/iavf_fdir_test_plan.rst > b/test_plans/iavf_fdir_test_plan.rst > index 82e2c2d2..feec2bb5 100644 > --- a/test_plans/iavf_fdir_test_plan.rst > +++ b/test_plans/iavf_fdir_test_plan.rst > @@ -3972,7 +3972,7 @@ Subcase 5: 128 profiles >=20 > ./testpmd -c 0xf -n 6 --file-prefix=3Dvf -- -i --rxq=3D4 --txq=3D4 >=20 > -2. create 10 rules with different patterns on each port:: > +2. create 8 rules with different patterns on each port:: >=20 > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / udp src is 22 dst is 23 / end actions queue index 1 / mark= / end > flow create 0 ingress pattern eth / ipv4 src is 192.168.0.20 dst is > 192.168.0.21 / tcp src is 22 dst is 23 / end actions queue index 1 / mark= / end > @@ -3995,7 +3995,7 @@ Subcase 5: 128 profiles >=20 > 3. list the rules on port 0-12:: >=20 > - testpmd> flow list 10 > + testpmd> flow list 12 > ID Group Prio Attr Rule > 0 0 0 i-- ETH IPV4 UDP =3D> QUEUE MARK > 1 0 0 i-- ETH IPV4 TCP =3D> QUEUE MARK > @@ -4020,7 +4020,7 @@ Subcase 5: 128 profiles 4. send matched packets > to vf 12, > the packets are redirected to the expected queue. >=20 > -5. flush rules on port 12:: > +5. flush rules on vf port 12:: >=20 > flow flush 12 >=20 > @@ -4032,13 +4032,10 @@ Subcase 5: 128 profiles 6. create rule on port 1= 3 > again:: >=20 > testpmd> flow create 13 ingress pattern eth type is 0x8863 / end act= ions > queue index 1 / mark id 1 / end > - eth > - iavf_execute_vf_cmd(): No response or return failure (-5) for cmd 47 > - iavf_fdir_add(): fail to execute command OP_ADD_FDIR_FILTER > - iavf_flow_create(): Failed to create flow > - port_flow_complain(): Caught PMD error type 2 (flow rule (handle)): = Add > filter rule failed.: Operation not permitted >=20 > - still failed. > + the rule can be created successfully. > + send the matched packet port 13, > + the packets are redirected to the expected queue. >=20 > Test case: Stress test > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py = index > 553d4bf0..eaea13fc 100644 > --- a/tests/TestSuite_iavf_fdir.py > +++ b/tests/TestSuite_iavf_fdir.py > @@ -3357,16 +3357,21 @@ class TestIAVFFdir(TestCase): >=20 > rule =3D "flow create {} ingress pattern eth type is 0x8863 / en= d actions > queue index 1 / mark id 1 / end".format(nex_cnt) > self.create_fdir_rule(rule, check_stats=3DFalse) > - pkt =3D > 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20",dst=3D"192.168.= 0.21" > )/UDP(sport=3D22, dport=3D23)/ Raw("x" * 80)' > - out =3D self.send_pkts_getouput(pkts=3Dpkt) > + pkt1 =3D > 'Ether(dst=3D"00:11:22:33:44:55")/IP(src=3D"192.168.0.20",dst=3D"192.168.= 0.21" > )/UDP(sport=3D22, dport=3D23)/ Raw("x" * 80)' > + out =3D self.send_pkts_getouput(pkts=3Dpkt1) > rfc.check_iavf_fdir_mark(out, pkt_num=3D1, check_param=3D{"port_= id": > nex_cnt, "mark_id": 0, "queue": 1}, stats=3DTrue) > + pkt2 =3D 'Ether(dst=3D"00:11:22:33:44:55", type=3D0x8863)/IP()/R= aw("x" * > 80)' > + out =3D self.send_pkts_getouput(pkts=3Dpkt2) > + rfc.check_iavf_fdir_mark(out, pkt_num=3D1, > + check_param=3D{"port_id": nex_cnt, "mark_id": 1, "queue": 1}, > + stats=3DFalse) >=20 > self.dut.send_expect("flow flush {}".format(nex_cnt), "testpmd> = ") > self.check_fdir_rule(port_id=3D(nex_cnt), stats=3DFalse) > - out =3D self.send_pkts_getouput(pkts=3Dpkt) > + out =3D self.send_pkts_getouput(pkts=3Dpkt1) > rfc.check_iavf_fdir_mark(out, pkt_num=3D1, check_param=3D{"port_= id": > nex_cnt, "mark_id": 0, "queue": 1}, stats=3DFalse) >=20 > - self.create_fdir_rule(rule, check_stats=3DFalse) > + self.create_fdir_rule(rule, check_stats=3DTrue) > + out =3D self.send_pkts_getouput(pkts=3Dpkt2) > + rfc.check_iavf_fdir_mark(out, pkt_num=3D1, > + check_param=3D{"port_id": nex_cnt, "mark_id": 1, "queue": 1}, > + stats=3DTrue) >=20 > def test_stress_port_stop_start(self): > """ > -- > 2.17.1