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 C6094A0540; Mon, 12 Dec 2022 11:37:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63FD34021D; Mon, 12 Dec 2022 11:37:11 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id E05B440151 for ; Mon, 12 Dec 2022 11:37:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670841429; x=1702377429; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=mYDo3AomwHaVzMBstpCbNJG1VCmtPK6HU7exDTuqrqU=; b=ZUyth98pB86Y6qkecrKFopcqTOHeF8LISV13iZfw8yqsve8H/aj/YtOh EpaDp/PLA3z0jpggoQqxiXvTY8NmMAxKD9VuLTZARxB+SdXJh/ISjbOdN S1Kzl7NJxI1fWf0svIgSzP8VYfSZoFpJTFFgW0h47tO1VPdF9hlG9nymO 9BIVp0/Rb3vi6yvlJy/uxEr9mbrFj5h5cp0aO1tmTNMCv9Npj9DyzGc30 CXOmDJq1ikUscshpz1B5tlJEvg8bTGBe8Wyqxaw6WO2Bvl+k6uq5PdLTI NCZQBfoRVgZxcg0BelbdXU9QKEXXZAgK0z6uSddSQMAHzf7NV4gldq13K A==; X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="298172219" X-IronPort-AV: E=Sophos;i="5.96,238,1665471600"; d="scan'208";a="298172219" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2022 02:37:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10558"; a="641693884" X-IronPort-AV: E=Sophos;i="5.96,238,1665471600"; d="scan'208";a="641693884" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga007.jf.intel.com with ESMTP; 12 Dec 2022 02:37:04 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 12 Dec 2022 02:37:04 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.16 via Frontend Transport; Mon, 12 Dec 2022 02:37:04 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.102) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Mon, 12 Dec 2022 02:37:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YmFI8uIBwcCql+HGsufJPCu5qGNoG2pkkMcRYJbZ7mQ+NeiMeOjDIMLxWx53uXkg44irY/pah/csWhgORBvmoVTqcIYzyi5mSsoy2KJaNI83wMftI1Vsli0Kk2kUBh/MLsl0A/f2FFMJaIfmdv06fb3HBpgQXXWdbFgsRFfIjafy+YaRrjINXwqfeYWE9ATcJJhaOKf3g0aNKfQpX4H9LAmTJ4ElKLBPWIvoJaQhv70fzzgULhsnMgeUnG6PV2frnakn/6py00gOl2zTrLjDEqKXj4yc0zbZJZahJolVoehv0T2/VsZRdbRnsAFwSUJpRwdfOefS8agtL8Sy90FMyA== 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=53bSN7cnD/V/0lXYWUK79TEqscV0t9FfDI20Zrvp0dg=; b=oVyGMIfboKNixnv5Kbtx31gz3ZqTFM55bnPerxSikk85+zgSu07Etm5A9VXQbVB/2kW1FPCYg47UxN8kFfsjp88lnghBQz7QFUU7oD0OTGuG7j5u5D8vT+X0EWWNeZh+Gtm78LRNsDch02tm9mHQFhaIfpIJ93Nwd3eJU7d/q1gjnMav8xcKRQFuX381CWgWveWHqwKbRlVelq7o14lgSP2YpmoWFF9FIP/rYXQ28UzJntCDK8MkvS6Y0bHV1/xACobLILKfw5Cem0rpVvvepP8hFWNZubSt0IIU9oh4V7ofREaYCEfSK58NH2d7wCKpKxziCqUQphChW96FJ2vdbA== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) by BL1PR11MB5480.namprd11.prod.outlook.com (2603:10b6:208:314::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Mon, 12 Dec 2022 10:37:02 +0000 Received: from MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::18bd:edae:ad31:a228]) by MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::18bd:edae:ad31:a228%3]) with mapi id 15.20.5880.019; Mon, 12 Dec 2022 10:37:02 +0000 Date: Mon, 12 Dec 2022 10:36:56 +0000 From: Bruce Richardson To: Kamaraj P CC: dev , Stephen Hemminger , "Burakov, Anatoly" Subject: Re: DPDK RX Ring number dump Message-ID: References: Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: LO4P265CA0032.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ae::18) To MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB1629:EE_|BL1PR11MB5480:EE_ X-MS-Office365-Filtering-Correlation-Id: 747bad2d-cc7b-464c-3f44-08dadc2ccdfb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aSYu4oc5si+tzMX+TusWlhzmeXHrZYooZu/2pblH3v9x8o9ZFUf7lgJGb3W4Ppt/V1PXtH6kymKXAWbyacphrDjm0K9s0UsBqX0ORQROdLy8hfs96V06Vtr3i5cfqYjp2PFY06ztbJnEWWBZlGzquEXtF0nY9zKss31zBQdJU4ghmsq+CqiBI0KfxR/RUGRfIIR7Uv5aZi4A2gKvdreKyt/53BczObinsZZIBs3EHstmH5Q/H2g+Qh74lhQQF2qB0tlm03tuIRTrRfcgopH/9kA6R6Gh15gVFWuAKOnR0ix9HtZiH05xYS8Npxk/JkYwSLGBqocqwEwMqmXttJzuhIbNOweBbrmN9455K5Z+Yfm08MPwJMlSSmAPaJEEe9N45sKbaBXLtWdFOUC9SkigDbJawlo5mnb9ON+ktxZOby3ZMc02CIIQbUXZRG1uJNGhs+++vxlTmKIfI2+UUu5PK9cPbZxr2+jJZvKPOGvF4gaXFj964pJccyi61POctOl3iI7LaW7JRDIXilKu3G5m/w6jLrNkjCRLjvWL3xDbP1Lmb66MyzT25HdUWx/jxOpeCeol6bJxeO9gCDisOAZ2FcKnQwMBWSK1XelLbRIoOnBlXuEEDbAanyg8GSkKP4ltquaRI/xgEHTyf/K8j0dKwTLrJrJ6u6Sg2EYbZ1qe5mYL/HWcrY1wLA2cwHtPRSxk X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1629.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(376002)(346002)(136003)(39860400002)(366004)(451199015)(316002)(6666004)(6916009)(107886003)(54906003)(2906002)(6486002)(83380400001)(8936002)(478600001)(4744005)(38100700002)(82960400001)(44832011)(6506007)(5660300002)(4326008)(66946007)(8676002)(86362001)(186003)(41300700001)(6512007)(66556008)(66476007)(26005)(67856001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xWGpM/kgtGeGwH3FDmf/saI4PXYo3Yk2E0JAGR9kkayZ/7j+7RSIWwpk+Y50?= =?us-ascii?Q?FGy8HMtg69C7z84HIRQV1B6PSh59TW0M85dFLVKTP/Da1dUYS4jVcir/mQFS?= =?us-ascii?Q?VS87MeYL5yhK04zWnngQIZYBZZowZMxmWdqTF/kTkgRKPYuVEfPcLwHeDV9f?= =?us-ascii?Q?Kml4fjfq+YRTFTjT4wMCVMKXhSE+3chjbk9iAnAVLRtxTM35XB2oW2+yUGZr?= =?us-ascii?Q?cjQ5iRZZPiXzMBa94jhe0r2fdHJ1JKgbZxmGVqpbb07+7bGlr08R7RPRbVlM?= =?us-ascii?Q?6xiatXOWUAJCl9Wn7IC5Cz4PEbJVU7dMwMR2+z839G/O6ztAVJ1M2SlHT7gq?= =?us-ascii?Q?CblC8HX6ELO+mJgXYnBmr4tIR8hPjbF1FdAJhlmq5akUXiLXvWqIxjvRl51t?= =?us-ascii?Q?9rjqnIweSUpbVgUugTz7aK19Kp8VrTnd79SqnSA1LBl6esVFMv7H/4q0IJh3?= =?us-ascii?Q?FJT4AuXhUnssSkTnGBN+sGZah+u9I8pQR1gqTt+qSXxUxqAlJy1QZHxrwjF1?= =?us-ascii?Q?b7JrHgHjeWW1fcHwIaeuUh+aTkW8arxlBFr0ANkRFXye5epsftjFKR9Wkrxm?= =?us-ascii?Q?afvIn2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M3yAJsNzFUK46Qu?= =?us-ascii?Q?PmrDI6Etp+ocQBhxU42VPO+/8Q7fjsmQg8DRCoUu3NYN8QN3svyziBW/4KPb?= =?us-ascii?Q?Lq21Uqt1ggnlJIkQ8hU7gtaYO7podOVhUawJsqpE8IbwFxpySjeH6toj4GDu?= =?us-ascii?Q?bQ=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 747bad2d-cc7b-464c-3f44-08dadc2ccdfb X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1629.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2022 10:37:02.0063 (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: 9HQKDE7ciuyQ65iHylTPNzqlq0MmeGBdfjRcByx5YT7g55FOy1dOV/cdK5e7rAOHChJ7ZflJnS87lIaREMb0jTCnak0hMxYEiHUebCqNECQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5480 X-OriginatorOrg: intel.com 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 On Mon, Dec 12, 2022 at 10:29:58AM +0530, Kamaraj P wrote: > Hello All, > We have an application where we need to dump the received packet rx > ring number from the queue. > Can anyone share the DPDK api to dump the rx ringnumber for the packet > which we received (debug and troubleshoot)? > Thanks, > Kamaraj Hi, this information is not preserved in the DPDK mbuf structure, so is lost after the call to rx-burst. The DPDK port field stores the port number on return from rx_burst, but your app could look to reuse this field to store the queue number also. For example, if you have only a few input ports, you could encode the port number in the high bits of the "port" field, and store the rx queue in the lower bits. This could be done as an rx-callback if you want to avoid adjusting your app following each and every rx-burst call. /Bruce