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 3AC49A034F; Thu, 25 Feb 2021 10:02:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30E44160813; Thu, 25 Feb 2021 10:02:00 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 034AF40692 for ; Thu, 25 Feb 2021 10:01:57 +0100 (CET) IronPort-SDR: CnQ2cMkV10kA/8cEb6sY5PtgxLMRy4T8oj5fLWLH7kYjh8GEMRkxvv8JxULlQhIaaY9ApwKh+D w4+rI+fMIaqQ== X-IronPort-AV: E=McAfee;i="6000,8403,9905"; a="182998483" X-IronPort-AV: E=Sophos;i="5.81,205,1610438400"; d="scan'208";a="182998483" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2021 01:01:56 -0800 IronPort-SDR: p2s3IMpaYmfuzY9SHbTJHEIi7vd2puptkGIdg1Tn40wqJL7wLgNKNrYS9nZZCNkXcdi2RkGaer 1Gi9qyn7RL0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,205,1610438400"; d="scan'208";a="365361704" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by orsmga003.jf.intel.com with ESMTP; 25 Feb 2021 01:01:56 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 25 Feb 2021 01:01:56 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 25 Feb 2021 01:01:55 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Thu, 25 Feb 2021 01:01:55 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.51) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Thu, 25 Feb 2021 01:01:55 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cX154j6UYAF2ZgIRzGTeNiW1zIJ4UyJCfsvbZjXVoWH23hSpv0ym6g7RpZdnbwhOyDFw7fk0Lkuf8COzGGTFE8Ikjq7w4MjNWQ8cy525QKfw+alsP1dJmD5oPR6SbNHmtwENyRI0iAqfNQLTc3WzYy7yyj2upbPnfog14N4ONmhtduX9pv33ZH4WPse9XN8+1pXLhBf0P5cebXC/04yQ4aFU3x+yLjaCwJzi+lodYnZsLt/kcWsR7w3a8iXlKjSwOYsBlN5k04lBOaePCTBxg3j/tU1kQx5Mct2WygzvopgjVn04vv8wvS/ldS8f2+MYkkAwawnaPyLhEA1f+2hWEQ== 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=hDl4+PjXvadJLLb8qzGhhGEBHZ2W5F9F9HX+E+uWSe8=; b=hVUU3KuRy6GL6PguueHKOGk7tA8JaFQLWvqRJhBfQvFnUvQbbuhlkfRsIeiHNdtn1W+40bGlSwyjAGa/bWcyx6SK/SAw+J0AC6cxA7rzVue+v8ZctNs4CYY3G2OSjJvJyu2JosLe3thIqfFLUj01olQmerkONLTAciwdW9jwEJuWRjAxo1HjFak7h9VYi5xB+JHZm8hT30y+CxGLPlMAv6UqwuEzbetPemdhOhBJjpsiXReKfCqBVXr3qIfinUyAXkJKKXkNint4ykFpAInwr1oEceurxjJsSa8kFq0KLxzYYSOKU4U0iCDipur4q66aj7o+rwDUUcKT1X0MCfpVIw== 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=hDl4+PjXvadJLLb8qzGhhGEBHZ2W5F9F9HX+E+uWSe8=; b=ydNbQ24r2QqnAmlVTAxwK57zqshFF3MmAzTWZ1HXbaVRTDwXaGaf7+uvIPK1HbCiQftwaCqjPWaEnsnd6yXEVc/F58WHgZZxVnPLmUAPZg39xkrmlM1W4VBF6XWjBjcw2I0h0+jU9dq0q7DVSFxhIWKUimcbYDWxw00mXfkDFjA= Received: from BN7PR11MB2658.namprd11.prod.outlook.com (2603:10b6:406:ae::16) by BN6PR11MB4034.namprd11.prod.outlook.com (2603:10b6:405:7d::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.29; Thu, 25 Feb 2021 09:01:53 +0000 Received: from BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::2d12:3f96:5231:b0e2]) by BN7PR11MB2658.namprd11.prod.outlook.com ([fe80::2d12:3f96:5231:b0e2%5]) with mapi id 15.20.3868.033; Thu, 25 Feb 2021 09:01:53 +0000 From: "Lin, Xueqin" To: "Xu, HailinX" , "dts@dpdk.org" Thread-Topic: [dts][PATCH v1] test_plans/flexible_rxd:add MPLS test cases Thread-Index: AQHXCn9Iy1Mh+Pp6k0+ErUPFEpaWC6pok+OQ Date: Thu, 25 Feb 2021 09:01:52 +0000 Message-ID: References: <1614151254-6495-1-git-send-email-hailinx.xu@intel.com> In-Reply-To: <1614151254-6495-1-git-send-email-hailinx.xu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 17ee6bfc-3814-458f-3a6b-08d8d96bfeb6 x-ms-traffictypediagnostic: BN6PR11MB4034: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:519; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RwCDaKm/sa3cVep6d85ynAV4hPHfyr1N7UUktunkc26S33Ae0yLwvKaQ/aT+ytu2/5j8cXt2tUU1zvtdMsOurRd9KyUlFGE3A3CkwXyZurHOz50Mo+rXgPHtRMc0x0ZzUAMTnXzrh9XG9Ymu7kiPgPycJ04aYF8f1sDVTdGQs8usmI3iPp2TXNwNdErspARtNRMZQxkolclzhwhWbaM/1RBQlAxIds/I7VSKJTuIeFp/rWWyjrmeKFWFwPqbg06htd89YNgbCs+hXGda7EItqd+4bZ1yAcagszxIpSnpg4K4FeJJaOMhcvs8AAxskIJjCBlESA+KCrzt/UaOtc0nrY9lXBN/FLcsQbIvXSJ/AAuBHDFViDN8O6vHttNNoSJf07yDEVCM5H4/i+ZuMQtVIGLFpf/THcZEXmg7SIEJtsyca+5/StB90ihx1pI/zY/R1rOXdc+o2vaa8JH2hqDpzjZMHJ5hFvDiExQa/KGk0uUf2v7ekS9Bc2D1rMGarWOMluFp7WwdTBerqtmPilSVEQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR11MB2658.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(346002)(376002)(396003)(136003)(39860400002)(6506007)(64756008)(66556008)(55016002)(66476007)(8676002)(86362001)(5660300002)(9686003)(66446008)(2906002)(26005)(110136005)(30864003)(8936002)(66946007)(186003)(76116006)(71200400001)(316002)(33656002)(53546011)(52536014)(7696005)(478600001)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?sH5rALPMS5TUVKlok9u1cXPINB8GAyM21ZCPghNmZyJ9boxzgDnpz+OdlEy3?= =?us-ascii?Q?UFAqS5pbArC4HpTW3LBN0MnXRPyKzpuI4mvZTo0TYNTVTcf6nzP15YB/RDzE?= =?us-ascii?Q?2Hnr7ZbCUv0DkOEIJbGyo83V7Shkmsq2akfzWx3vjNigYmqmDyZAEsxJTkPi?= =?us-ascii?Q?txTBJqkjoWrlYdak0ete3sOMrJcMJqpqQ+FZT9NfxyiOGq9w1Ly/a86ZahLS?= =?us-ascii?Q?jyAl/ARZK00oOii1d79IXn3Ej9h9cCyf5HzeqHWfx5s/i4mooKxoyuYbVOBB?= =?us-ascii?Q?0yn7Vqzvi5QB3oNjMW+lbQ2Rn5OyPX43Haws4F3cWsnziv5cL4V0KvhCSiha?= =?us-ascii?Q?EW5lw1yGxD7VpF3EJPzyPjNs6En6Pj2VVcqWpLGayFhdhB+n5AGiZDhfj2/l?= =?us-ascii?Q?Wgf0zKdPEZmpDf5DzkBPXFVEYeRLKqO4+dFaKF6xjgiklpKzlekthf0WSaXN?= =?us-ascii?Q?UkpE+OFJxNrsceDlaETxGFG/slrAYKRg4ggZLHWwqzVmy9+ji/2yxHLeGP+B?= =?us-ascii?Q?Z5vj8hXLV3gAuAHdQuaR1ZpJOkjRS6sWN7trSJ0Xr9HV1QJ2yMmXW+Ib/eUG?= =?us-ascii?Q?VfGm4Kilez4ZDUtpJ6kXMyZR/hnv+9iMdZ/dCxWYOUC0HOjKZd8giZFRBX3c?= =?us-ascii?Q?bdXwhhfW5QrtIGXCgbNNvUB83BnVXATweoHLz0c/pMvdAQwR/kgu95Mrza5A?= =?us-ascii?Q?ZA0/DrLpvSgU88uMiBpXUHBjbPAT07+99lW0gTUHZpxpXKJOkvJFb+ciJC3i?= =?us-ascii?Q?mRmAgBs2v356NR//Po8JS0h8RMCTetLWoceUhkx2XHs/dCX//XyEQBTzFFX8?= =?us-ascii?Q?CCrvQI0vjYGrINAtyNnzF7ztw5nEW4LXxHmGb5MrxAdExcPWxdW+Mej+2Xnm?= =?us-ascii?Q?rfXIBiysneAO9wptCIAd7gJrbXqWa3YxxHInliuoZhm+PRDo6Cf8egnbxcmR?= =?us-ascii?Q?QyZl5R9/p9g02prQ/3BU4pd0chgF3lV6V+ScrPoQU7NNUxudfHIymxi26Lzo?= =?us-ascii?Q?uSByTK9e7vkctDBbuKQWAB3HTleu4OLmAPMSgCgtos83rqG2ioFjAYmF8al1?= =?us-ascii?Q?C7IgOSDgQk059hGfHytZuUeicEPy88JGQrn/xKEv+2m9IZCu0i2d9fND0HpQ?= =?us-ascii?Q?BaSmUv/MQr/ql6jEimDowXxLy74Q37KPfhoeVEb+05UL+Sfeq8PkSCyG4TaS?= =?us-ascii?Q?20tpunrEcIqv0U9OLocmR9z9252vLdsHoc2y+VOdwV06yh2yH/AZ8wACSOPa?= =?us-ascii?Q?Mi5WpXDBFvGk+W/zt9SUO26Uyr5tDjnTFfRFiJSWGAZ1VxPxp05jTxPRrRVW?= =?us-ascii?Q?bzOFPi3Z6Y+OLJLMdOpUERwJ?= 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: BN7PR11MB2658.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17ee6bfc-3814-458f-3a6b-08d8d96bfeb6 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2021 09:01:52.9399 (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: YWFUxkQ30hG6uHfBxLhtQBURQPKyBGT4BG8ek919enaTcWQRwWvHarNtkMbXpNCsiOnTPos5jV6w6KrGOUgATg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB4034 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH v1] test_plans/flexible_rxd:add MPLS test cases 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 Sender: "dts" Hi Hailin, Why case 12 only support OS package? Pls double confirm it. =20 Best regards, Xueqin > -----Original Message----- > From: Xu, HailinX > Sent: Wednesday, February 24, 2021 3:21 PM > To: dts@dpdk.org > Cc: Lin, Xueqin ; Xu, HailinX > Subject: [dts][PATCH v1] test_plans/flexible_rxd:add MPLS test cases >=20 > add MPLS test cases. >=20 > Signed-off-by: Hailin Xu > --- > test_plans/flexible_rxd_test_plan.rst | 363 +++++++++++++++++++++++++- > 1 file changed, 360 insertions(+), 3 deletions(-) >=20 > diff --git a/test_plans/flexible_rxd_test_plan.rst > b/test_plans/flexible_rxd_test_plan.rst > index 1520d5f6..47b8fbff 100644 > --- a/test_plans/flexible_rxd_test_plan.rst > +++ b/test_plans/flexible_rxd_test_plan.rst > @@ -46,9 +46,9 @@ Prerequisites > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Copy correct ``ice.pkg`` into ``/usr/lib/firmware/intel/ice/ddp/``, \ -F= or the > test cases, comms package is expected. > +For the test cases, os/comms/wireless package is expected, except that "= test > case 12" only support os package. [xueqin] why? Commos and wireless could cover all protocols supported by O= S. >=20 > -Prepare test toplogoy, in the test case, it requires > +Prepare test toplogy, in the test case, it requires >=20 > - 1 Intel E810 interface > - 1 network interface for sending test packet, @@ -57,6 +57,22 @@ Prepar= e > test toplogoy, in the test case, it requires >=20 > Patch testpmd for dumping flexible fields from RXD:: >=20 > + diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build > + index 7e9c7bdd6..b75b90a9c 100644 > + --- a/app/test-pmd/meson.build > + +++ b/app/test-pmd/meson.build > + @@ -49,6 +49,9 @@ endif > + if dpdk_conf.has('RTE_NET_I40E') > + deps +=3D 'net_i40e' > + endif > + +if dpdk_conf.has('RTE_NET_ICE') > + + deps +=3D ['net_ice', 'net_iavf'] > + +endif > + if dpdk_conf.has('RTE_NET_IXGBE') > + deps +=3D 'net_ixgbe' > + endif > + > + > diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c > index a1164b7..b90344d 100644 > --- a/app/test-pmd/util.c > @@ -116,7 +132,7 @@ Send a packet with VLAN tag from test network > interface:: > Please notice >=20 > - Change ethernet source address with your test network interface's addr= ess > -- Make sure the ethernet destination addres is NOT your real E810 interf= ace's > address > +- Make sure the ethernet destination address is NOT your real E810 > +interface's address >=20 > Check the output in testpmd, **ctag=3D1:0:23** is expected, which is > consistent with VLAN tag set in test packet:: >=20 > @@ -345,6 +361,7 @@ Expected output in testpmd:: >=20 > Test Case 12: Check effect of replacing pkg from RXID #22 to RXID #16 > =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 > +the case only support os pkg >=20 > Put the ice.pkg with RXID #16(ice-1.3.7.0.pkg and more) to > /lib/firmware/updates/intel/ice/ddp/ice.pkg, then reload ice driver:: >=20 > @@ -372,3 +389,343 @@ Replace correct ice.pkg to > /lib/firmware/updates/intel/ice/ddp/ice.pkg,then relo >=20 > rmmod ice > modprobe ice.ko > + > +Test Case 13: Check testpmd use different parameters start > +=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 > +Test steps are same to ``Test Case 01``, use different "proto_xtr" param= eters > the launch command of testpmd, check RXDID value. > + > +use error parameter Launch testpmd:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w > + af:01.0,proto_xtr=3Dvxlan -- -i --rxq=3D4 --txq=3D4 --portmask=3D0x1 > + --nb-cores=3D2 > + > +testpmd can't started, check "iavf_lookup_flex_desc_type(): wrong flex_d= esc > type, it should be: vlan|ipv4|ipv6|ipv6_flow|tcp|ovs|ip_offset" in testpm= d > output. > + > +don't use parameter launch testpmd:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0 > + -- -i --rxq=3D4 --txq=3D4 --portmask=3D0x1 --nb-cores=3D2 > + > +testpmd started, check "iavf_configure_queues(): request RXDID[16] in > +Queue[0]" in testpmd output > + > +MPLS TEST > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Test steps are same to ``Test Case 01``, just change the launch command > +of testpmd, test packet and expected output > + > +all MPLS cases use same parameter Launch testpmd:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w > + af:01.0,proto_xtr=3Dip_offset -- -i --portmask=3D0x1 --nb-cores=3D2 > + > +check RXDID value correct:: > + > + expected: RXDID[25] > + > +scapy prepare: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +about scapy: > +from scapy.contrib.mpls import MPLS > + > +Test Case 14: Check ip offset of ip > +=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 > + > +Test packet:: > + > + p =3D Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D1)/IP(= ) > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D18 > + > +Test packet:: > + > + p =3D Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D1)/IP(= ) > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D18 > + > +Test Case 15: check ip offset with vlan > +=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 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D1 > + )/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D22 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D1 > + )/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D22 > + > +Test Case 16: check offset with 2 vlan tag > +=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 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test Case 17: check ip offset with multi MPLS > +=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 > + > +Test packet:: > + > + p =3D Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D1)/IP(= ) > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D18 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D1)/= IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D22 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/= MPLS(s=3D > + 1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/= MPLS(s=3D > + 0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D30 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/= MPLS(s=3D > + 0)/MPLS(s=3D0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D34 > + > +Test packet:: > + > + p =3D Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D1)/IPv= 6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D18 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D1)/= IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D22 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/= MPLS(s=3D > + 1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/= MPLS(s=3D > + 0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D30 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/= MPLS(s=3D > + 0)/MPLS(s=3D0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D34 > + > +Test Case 18: check ip offset with multi MPLS with vlan tag > +=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 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D1 > + )/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D22 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D30 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D34 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D38 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D1 > + )/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D22 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D30 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D34 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x8100)/Dot1Q(type=3D0x8847)/MPL= S(s=3D0 > + )/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D38 > + > +Test Case 19: check ip offset with multi MPLS with 2 vlan tag > +=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 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D30 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D34 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D38 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1= )/IP() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D42 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D26 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D30 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D34 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1)/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D38 > + > +Test packet:: > + > + p =3D > + Ether(dst=3D"00:11:22:33:44:55",type=3D0x88A8)/Dot1Q(type=3D0x8100)/Dot= 1Q(ty > + pe=3D0x8847)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D0)/MPLS(s=3D1= )/IPv6() > + > +Expected output in testpmd:: > + > + Protocol Offset:ip_offset=3D42 > -- > 2.17.1