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 22E30A0556 for ; Mon, 17 Oct 2022 06:42:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5162840143; Mon, 17 Oct 2022 06:42:56 +0200 (CEST) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2076.outbound.protection.outlook.com [40.107.105.76]) by mails.dpdk.org (Postfix) with ESMTP id 64282400D7 for ; Mon, 17 Oct 2022 06:42:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=evFKyMh0JKgzCk32Ob3rIq1/NKwpg/4kGGeGjBSPeIr7mj8WJek8OOTVD54fX9wlBgQ5fIaUVpq62KMiB7/DvLBud6eKgMxvLj+UTJAgOHkuX59eGCrQbORf+Q9mpG3ztof5WS7wDfQ4J5rQUownypRppH3PtvowbdToNXdtrZ1P7amJjkn3qE3CKwUYCL78LvZJHl82Gsrlx9q2pt+YenBcoYCyIn7GWOwKH42qGTG7E1ehJVB5LoeakxUtFWcbbFj54KWEzdZ79ti68kY5AmJPWO0UxM2hbnS8o8Gpo/VCSFVwzr0xGX/zraG+2agvxrLnuPugAC9ySSYsp4u7Kw== 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=iOhgLQN0kqlGT6l3UmeeXIxPOyyzCeqgfiDu9SDmTGQ=; b=X2Qw2gHah/GAbUoOdJbnKnL+693grxFshMXpOv3779/c/2YmV67gZfGPNL2Y3VPBB8VIpPwY8/9rn9qebh3uN4FLSCoaykBsWWR/8OgXXXR6OzCHHmsFEKsnOJNoT0CTkVYFot1ItdoKl5OFRgC/M7QXJKa+BBwvYxUsSZGUG/ZjJbyi5Ka9knw2/MXqy4eegC/TQSuKs14m1f0XUzG3/ab3+cTgwAjX5HbtcpnW3D9EcShHu96nYS6jtgkbA2GRWySqFZEta5HXekWLRl7LRpA294JLuO5fSdCAPwB3F0xDhGj17PbW3eYaU5zpt+mCc3H0vhsldcULX4Ihxm9B/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iOhgLQN0kqlGT6l3UmeeXIxPOyyzCeqgfiDu9SDmTGQ=; b=F2cwhTJAPqlejv9SvvmTl7IM38VXaoysyu87e8IJX/dkgRNvgD54ixroKF9C2hMCNwAvpDDRuFO1X8bHrPnv35fZKYSEu/nJW7byKbElx7RWL8thJ2BtP/SyRdZ8Sl6zdPElEnY/5w428EuelDsY+CUc/W67eaH//qbEC2gaIJk= Received: from PAXPR04MB9422.eurprd04.prod.outlook.com (2603:10a6:102:2b4::21) by PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Mon, 17 Oct 2022 04:42:54 +0000 Received: from PAXPR04MB9422.eurprd04.prod.outlook.com ([fe80::9574:c999:ed8a:3047]) by PAXPR04MB9422.eurprd04.prod.outlook.com ([fe80::9574:c999:ed8a:3047%5]) with mapi id 15.20.5723.032; Mon, 17 Oct 2022 04:42:54 +0000 From: Sridhar Pothuganti To: "users@dpdk.org" Subject: Facing an issue with eth RX/TX call backs Thread-Topic: Facing an issue with eth RX/TX call backs Thread-Index: Adjh4HNmSOk1YC7PQXWYdR5AHnvJ8A== Date: Mon, 17 Oct 2022 04:42:54 +0000 Message-ID: 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=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAXPR04MB9422:EE_|PAXPR04MB9642:EE_ x-ms-office365-filtering-correlation-id: 3db3877d-4af5-489c-9e88-08daaffa0e4c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: E45vpYoHFFXWL4ppcw9PGVcLT9ed0eRCYXg61S9p9d+w9Pn+arUJV6Cj5swpPYqQ7jhZ8OVLNCoAaoGPqzQTRv008UGLsNW5IOUGnxu+sH3hJJGCyrd7KTBbr4a6Plh94fNoJlcLGem0P1bZPz76VpYniptS948KXqjriglAR8rg7mnaXBLmLVuX799f0DBBv6fOxQHcsevUilaSLw5/f7jCgXKf43CKe1GYHepTfpGqJKoV/X8a55+Sj+e1oNm0NrP0QfAfP7vCQU7wI/NVMyTEGx2WxfnH4uEenew/2+Me+xD4xy06s6nOxcFZ8ySm+xfNeMbOPbB+8DP0+owvYZTlacXATwIHQ5em6SRXBbHiIIztLr8IpGrG5fLz5mNsoxjdFt8b8N3nVHx6pptHuAM/oBd9yagrhQchRLievSfqCyU1UTipNnM3lPrne18JAMlYTy9Vo6Lpp0yeXC5EIlBS/DlgOpVW1Fl34OnT5TJ9LPBQMjl3FZ9ZLarFZMSpIpYFxbLXUwi0c++vfAMNScQBnrjzJy+x7dI8KluW0y3kdmM3cYzuwAZYB3Mh6MSz63OhfiBDwQSubCa2auY2IzWG0ercovTYC6aF6/H1kioW+o3qvElg8CDHlZPk7rB/NAXHWppTqnMEc4MpcenHX+qn38WdtKmZt0FdQ7gz4/AWQ9osAGjK6xQwOYTKU+jhLQADwzVDwrY+4/WcbpK1tGBB88OEgHBTHn8Xz1bJ3uD2hCy5ShyKkoBTGpfs5KTosAEJb4O3HXclFRMiUqGa8Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9422.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(39860400002)(366004)(136003)(346002)(451199015)(38070700005)(55016003)(33656002)(86362001)(38100700002)(83380400001)(122000001)(66946007)(76116006)(64756008)(66476007)(316002)(6916009)(8676002)(66446008)(4744005)(44832011)(5660300002)(186003)(71200400001)(2906002)(8936002)(6506007)(7696005)(478600001)(9686003)(66556008)(9326002)(52536014)(55236004)(41300700001)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?KuSXfuR22ZMu95JPSKUcQIO6BWV9ZOcNMY4UWTlvktRmImmes9xMZejWrxxa?= =?us-ascii?Q?rTbebIdk1Qgif1cgh6fTWkGLIocRmpZOcQjo2nHtN1DAew49QiQnLxeAzrwr?= =?us-ascii?Q?a3SkIt5KtMGByBkZNCcArjZDjwdqvPnU1865gjsfVz88WkNagnajEWmm5Krg?= =?us-ascii?Q?kWikoxioP2hF3CDZ5eyToJnRIWVQWKKQAJc1mgIHMh6ufAPRkTDji0IqvD5b?= =?us-ascii?Q?cKj42RbZl1kJhwI0tNGXTN079ak9kc4sy84KwDdqrA9boaXD+0g6+UTgzYgq?= =?us-ascii?Q?eQR+3vwiRaulVeCliJHvdrXldH7rFQd+qx5cACI6g1WZ+sFB9vXjIVvrVLaF?= =?us-ascii?Q?VrkpCrAm20qtqh7KJKVtkxFZs+iENB2MEtV7zI9GsuM3EihfWZlcts8PBo5S?= =?us-ascii?Q?YNRPxDV//U1qGCtPCLUTw3DtHTy008W5bVeNqVwyniTqvbynVIIlS62k2riZ?= =?us-ascii?Q?wLKns9VsWbkbB3G+ElDca8HA4smM1eMuqaQLc4Kcx31c3+G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pV8pSAgaWgiNIQHr5HNMN79KLV+pM0o6T6+cZt?= =?us-ascii?Q?GwKxcPb7SYahBVo0BU7OSM/LerY/nuB6vIIFOfPrzhB80LsD+320f9QrrncY?= =?us-ascii?Q?EwrqtSowmK0+p1Qxat7AwBNBlIW8SUnXTEgubOSJIBa/K3fGymjiUvm51BIF?= =?us-ascii?Q?S6B8DyiBuhaVz77nqiFGmVqLOblVKpCOqusfZXHiOPttJQgyqGLaEwMzVzpF?= =?us-ascii?Q?lQ=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PAXPR04MB942270296263242970A8ECD989299PAXPR04MB9422eurp_" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9422.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3db3877d-4af5-489c-9e88-08daaffa0e4c X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2022 04:42:54.2621 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: D3qpqYqnwDqg+GbawbY5alBJs2VKfDM7yfzDSdzwyTvGOngTlRbEs4VqiueuYoam+4cgi1YpI3pXcuu7WkjLgwnuGkW6Gv/xbIRDBWSgs24= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9642 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_PAXPR04MB942270296263242970A8ECD989299PAXPR04MB9422eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello All, I am trying to use the "dpdk-pdump" application to capture the packets. The= pdump library is registering the RX/TX callbacks, but the callback pointer= is getting NULL in the RX/TX function during packet transmission. The callbacks are set using the function "rte_eth_add_tx_callback" and the = code is using GCC atomic built-in "__atomic_store_n" with memory order "__A= TOMIC_RELEASE". In the "rte_eth_tx_burst" the same pointer is being read using "__atomic_lo= ad_n" with memory order "__ATOMIC_RELAXED". I have gone through the code, and the "pre_tx_burst_cbs" is not being clear= ed no where else except "rte_eth_remove_tx_callback". But this function is = not being called till the termination of pdump application. Can someone please point me to where am I missing? Regards, Sridhar --_000_PAXPR04MB942270296263242970A8ECD989299PAXPR04MB9422eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello All,

 

I am trying to use the “dpdk-pdump” appl= ication to capture the packets. The pdump library is registering the RX/TX = callbacks, but the callback pointer is getting NULL in the RX/TX function d= uring packet transmission.

 

The callbacks are set using the function “rte_= eth_add_tx_callback” and the code is using GCC atomic built-in “= ;__atomic_store_n” with memory order “__ATOMIC_RELEASE”.<= o:p>

 

In the “rte_eth_tx_burst” the same point= er is being read using “__atomic_load_n” with memory order R= 20;__ATOMIC_RELAXED”.

 

I have gone through the code, and the “pre_tx_= burst_cbs” is not being cleared no where else except “rte_eth_r= emove_tx_callback”. But this function is not being called till the te= rmination of pdump application.

 

Can someone please point me to where am I missing?

 

Regards,

Sridhar

 

--_000_PAXPR04MB942270296263242970A8ECD989299PAXPR04MB9422eurp_--