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 CEA49A0C43; Thu, 21 Oct 2021 05:24:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD3544114F; Thu, 21 Oct 2021 05:24:47 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 5BCAB40142 for ; Thu, 21 Oct 2021 05:24:45 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10143"; a="227704453" X-IronPort-AV: E=Sophos;i="5.87,168,1631602800"; d="scan'208";a="227704453" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 20:24:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,168,1631602800"; d="scan'208";a="568151307" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by FMSMGA003.fm.intel.com with ESMTP; 20 Oct 2021 20:24:40 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2242.12; Wed, 20 Oct 2021 20:24:39 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.2242.12 via Frontend Transport; Wed, 20 Oct 2021 20:24:39 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.104) 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.2242.12; Wed, 20 Oct 2021 20:24:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U1zukskywxIAPDLpteJLdUCFf35x1XiEZQmxQHvhQtRWACDWG7QXm4W2x2d7UGm8017wguuCTInmHPKrYNFfvUMdILXCin4vkcnOODRwX47dNFMO0ZxYdtNsHEX4pHwjnErqmxfdXJCZr49C7eozylbcKVAKb9/1Iu5RTb5MmaW6UEd5TO7k9nysGxnde8W+JBX6tDN6ORlBswlKVu87QHpwstK7sNkRy+H+VP6jIwjMB/v0b4J33Z2xLa8god6+R2+miP6H9R79ZBUi9qV7BnI0S+scBWwCyBhf8FnVc6igApbQ+yJMwRte6TWPAfgssEvKf5bLWu/JzXovVThs+A== 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=VOwtywFy4RXmodCnmVy4hOm7oHpeYJndIskFvkD5FC0=; b=XoGyt9tXVqdobdrThbjp+jYGjcmutL3Rfgazvcn4fL626AhryZU5rpU6APN554mVStkko9m4CY6/qJ3tDAn7bKja+nwqT6KwjlqWEbyCg7SaCtBkr6XQCCO9uj0Avib6xa9ba7d6aMQtk6CpwMxgRTh7banLQDxRHrEFDWm48P4VFqO4N70nqfylop2a56BzTFW42+2g/6QXycZESZ5OBIS2U6R9uhKKs9Y4B/GKQdRRfv1KIOFYdLSv5dSC+CYjkAp1eoLPSSP7abCS3jGQNgKQxzugxrfTOiy5GLa4cE2kEfrcuU6Dg4ICImEognV6U8EYmD9FArF3ZLNsbEBaNg== 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=VOwtywFy4RXmodCnmVy4hOm7oHpeYJndIskFvkD5FC0=; b=fg1/7s+uHfYdFtW3NHAvOVnhyuUzx08KY9mhaJTRrZv3P7KV6FEhhnYYUKBkngF5prdmn/EFOb/MW0kjDhXZdI9P0aIQWr32t5ow8EOllxpRe619XcqPgdme/H0pS8paisZWFHgIg2l99W/etNaX6LRPTeBmpeaB2kHhpDwQIUI= Received: from DM4PR11MB5534.namprd11.prod.outlook.com (2603:10b6:5:391::22) by DM6PR11MB2762.namprd11.prod.outlook.com (2603:10b6:5:c8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Thu, 21 Oct 2021 03:24:31 +0000 Received: from DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::3d9b:76d7:e274:bad3]) by DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::3d9b:76d7:e274:bad3%4]) with mapi id 15.20.4608.018; Thu, 21 Oct 2021 03:24:31 +0000 From: "Li, Xiaoyun" To: Xueming Li , "dev@dpdk.org" , "Zhang, Yuying" CC: Jerin Jacob , "Yigit, Ferruh" , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev, Konstantin" , Ajit Khaparde Thread-Topic: [PATCH v11 5/7] app/testpmd: dump port info for shared Rx queue Thread-Index: AQHXxYfY0XxE4takAE2u4he1OnNkq6vcv+Sg Date: Thu, 21 Oct 2021 03:24:31 +0000 Message-ID: References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211020075319.2397551-1-xuemingl@nvidia.com> <20211020075319.2397551-6-xuemingl@nvidia.com> In-Reply-To: <20211020075319.2397551-6-xuemingl@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 33fdd348-9eb9-499e-0c06-08d994424c3d x-ms-traffictypediagnostic: DM6PR11MB2762: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:243; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aI6VQZCfgnTAxUEpMWQJ0Ph8nyN4nj8qQalyakvGd40iPEMigXuY+n+UCjxWSJuMgOwSt85tkP8SAkQ3IrxkdQ/gc6XA5GaPiN7XtrwhtDePx1GtbMNqYFY2+l+4cL8jrRW3BfkI9FAaCT6RrN3wBM+oMXeL+f2dUnKt+0Bk5kHz/SaJYALK/tDOrwZ8uxla81PvxwuGYbBUsvzSKgc5ELHEIbq0V8v45NxgtyIQiAzRjhkrIWzNu8nvAaacSvYAijusouMyzO73yGA93DHf3VcI64s9M3jqqOtvZBO5iMUfcAVvMZbc6Yf3d6tU4fChmY9pM087cJjwUEP8dbp9iG+xlk/7a3TTaVl4vZTRavGbuOFAPFOqkcQSzvF9tLFaiaRYsZLuHpSNd7rVB/eD6NO/akIW2IauF6f6lNeA+p1Wc9JO37zPd5s29duFoYf3UoErEMuuyqmeqzVGG+DdqynNY5TffR59y02YirRv3lKa7NGuCm40JlUtpbKyTj0l8HDLhjJnsXEt2+0sR7c0s21mwde5zQyZPGW2xCyhSgSx6naR7xVDVFXfjiWcdswq2FEEofEvGcazXjdMvgSi7A4sNEEC7lPzxCDumJm/1330AbdRE69zWHi6lpLy5yhqtOFDrPj0c+GjxEvVi4YgZKXe7a2M6WRPnH3zpzux/12xjggIb20qTEIqR97WefE9ZjQffCCijJSQqzFvyHiP8w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5534.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(53546011)(9686003)(122000001)(110136005)(66946007)(38100700002)(6506007)(71200400001)(2906002)(8936002)(52536014)(76116006)(54906003)(66476007)(33656002)(86362001)(26005)(5660300002)(186003)(66556008)(64756008)(66446008)(83380400001)(4326008)(8676002)(6636002)(7696005)(316002)(38070700005)(508600001)(82960400001)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rOHNO9wb6VgC8w1t12vJaQCPCsRxCj9l+7cjZzMN0JsKZcFVDOUXp6J1FAmR?= =?us-ascii?Q?+qF/2erj3RGvyRNru42//ltdlRuw2vmSNAbosIS3eVLycgPTZkAcBwNxziCd?= =?us-ascii?Q?K46OFa3qPxvFNtFP8mXe3zu6xMNjxpgahID6Hqrb72qHiRjxN4oo4gSKH5Ad?= =?us-ascii?Q?J1P4P1G/cxCDi+rpguFW2zC4Z0NWWl13bnsrdoRJlovf+xe4rYnZK91qtyNO?= =?us-ascii?Q?adZXkCaPcx7HC6EOBZ3HnMnvrFvC52iqFuPSmXsbZVtyTjCESxYTD+8n3KHI?= =?us-ascii?Q?iSMyyIX5pdcsvErtdUSswKVjvYIcl6e00rcnI1JXNCJlxWcUVsNCtTh8RqDB?= =?us-ascii?Q?HjDBeWvdSaj9YqBL+VIX1MciOoyU8/3AEN8DxTGClnkSJosiLgbqZvuuDqvI?= =?us-ascii?Q?Mq2Fyh5Uz05IolaFAPUgpqb25pFkSpMr9vKM2tSlGT49peXd3sHSGlqdPjX9?= =?us-ascii?Q?SWElLMKiNqCt2l/u//3apIEtZ4YfIPKTIJEBZafTvUqE0N5DfQPxFmx1r2N0?= =?us-ascii?Q?JHMFQfY4MJOihwsboxRJeFKD4Vxx0/jDrFOhyjl9kc5zIaCRzJYWgTZTFqXI?= =?us-ascii?Q?/gWSB2GHL/GkamH7Dv+5MqBqZDk6+UBrMA6ItFUjVQsdHyQEPljoZjCfcXZu?= =?us-ascii?Q?TvM/tPRn/0eaw2TFvk7Q6vdX4RQocPIc0eUpXNEOPpVWlPC/4ny8QqwnOzA6?= =?us-ascii?Q?nsuTJbDXbIqG4PoY7rC9jjYRxMFO8+T3wtPC6Pp8dCawcytxqlQ3NTuBeqwS?= =?us-ascii?Q?5IgdM0woUU5OeMDYoyJpbR9wHbQjOHhSIRN/Hpf+X8fHxUtC3yX77kAPBroU?= =?us-ascii?Q?2ysbWciqpL64dzO/tDRkn+0Sd+/HG9Z+yabR7Y0Y5E0mZrmOVYHKJp6FEXZY?= =?us-ascii?Q?wZZtA3rHsAiK9pm1azmvmFC/yzlgO3NmwYO4eTMeEeTSjExjcadjOIX5bmgb?= =?us-ascii?Q?WuXAtJeRhCZG4jIV2rXZG6zd0+GB6dGAIyByYG+cSDwvMeGR20bd7VtS63eJ?= =?us-ascii?Q?L49+PCCJafp+Z2xxfIUE7paCmVh6TkgZqEoHGbUhYesTqt/FJ3gjA4X0Xkbw?= =?us-ascii?Q?1tEds2zmDnK+zqEWFIV/qH6pYPy40BNxDDilTNNJ2dc3mx9JtW1aFbHiKATM?= =?us-ascii?Q?bW8pHParintGnpZ7zE8Qs7j3ncgiE9SR/13eHWTqSJB07URTNEnc1POJiBnp?= =?us-ascii?Q?p/RsVRZnfkhuyW8EIve7984SY3F64ShQmn0cN3D3ji6rWscI07zO/NwdAqMY?= =?us-ascii?Q?K6O+xlBoTff5xpQI5FVfEg1LmxQklQ7H2JasqVl8LNF+vU7Xg/gOHdjcTMRT?= =?us-ascii?Q?+dA=3D?= 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: DM4PR11MB5534.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33fdd348-9eb9-499e-0c06-08d994424c3d X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2021 03:24:31.5874 (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: xiaoyun.li@intel.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2762 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v11 5/7] app/testpmd: dump port info for shared Rx queue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Xueming Li > Sent: Wednesday, October 20, 2021 15:53 > To: dev@dpdk.org; Zhang, Yuying > Cc: xuemingl@nvidia.com; Jerin Jacob ; Yigit, Ferr= uh > ; Andrew Rybchenko > ; Viacheslav Ovsiienko > ; Thomas Monjalon ; Lior > Margalit ; Ananyev, Konstantin > ; Ajit Khaparde > ; Li, Xiaoyun > Subject: [PATCH v11 5/7] app/testpmd: dump port info for shared Rx queue >=20 > In case of shared Rx queue, polling any member port returns mbufs for all > members. This patch dumps mbuf->port for each packet. >=20 > Signed-off-by: Xueming Li > --- > app/test-pmd/util.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c index > 51506e49404..e98f136d5ed 100644 > --- a/app/test-pmd/util.c > +++ b/app/test-pmd/util.c > @@ -100,6 +100,9 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, > struct rte_mbuf *pkts[], > struct rte_flow_restore_info info =3D { 0, }; >=20 > mb =3D pkts[i]; > + if (rxq_share > 0) > + MKDUMPSTR(print_buf, buf_size, cur_len, "port %u, ", > + mb->port); > eth_hdr =3D rte_pktmbuf_read(mb, 0, sizeof(_eth_hdr), > &_eth_hdr); > eth_type =3D RTE_BE_TO_CPU_16(eth_hdr->ether_type); > packet_type =3D mb->packet_type; > -- > 2.33.0 Acked-by: Xiaoyun Li