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 644F7A054F for ; Tue, 2 Mar 2021 11:26:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54A944014E; Tue, 2 Mar 2021 11:26:27 +0100 (CET) Received: from mail1.bemta25.messagelabs.com (mail1.bemta25.messagelabs.com [195.245.230.4]) by mails.dpdk.org (Postfix) with ESMTP id 8DE0C40142 for ; Tue, 2 Mar 2021 11:26:26 +0100 (CET) Received: from [100.112.193.211] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-4.bemta.az-a.eu-west-1.aws.symcld.net id 5D/FA-14660-2D21E306; Tue, 02 Mar 2021 10:26:26 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGJsWRWlGSWpSXmKPExsWSoS9YoHtRyC7 B4PIna4vmg+tZHBg9fi1YyhrAGMWamZeUX5HAmjFzwwW2gs/sFR/2sjQw7mXrYuTiYBRYyizx ++s6RgjnGItE48WbTBDOHkaJmz/awMpYBLYyS8zeD9EjJLCASeLA6TZmCOcOo8SElQ9Zuxg5O dgETCRe7W1mArFFBFQlvszay9LFyMEhLCAjcbVdHyKsKPF5Th8jhK0ncfjubmYQm0VARWLJph tgcV6BWImDTbvBbEYBWYkvjavBapgFxCVuPZkPNl5CQEBiyZ7zzBC2qMTLx/9YIc7uYZRYf/E 6K0TCSuJMzy4WCFtW4tL8bkYI21fizPU97BC2lsSJvWeh7ByJ78uPsEHYahI33nRALZCTWNX7 EGqOjMSDG9vBISEhsIdFYm7PFiYI5xWzxLLmw+wQTh+HxKFrq8FuYhCYzSbRsBgUyBxAGRWJf 4cqIf7RkViw+xPbBEadWUjem4UkBWFrSyxb+Jp5FjhoBCVOznzCsoCRZRWjRVJRZnpGSW5iZo 6uoYGBrqGhka6hpZGukYGJXmKVbqJeaqlueWpxia6hXmJ5sV5xZW5yTopeXmrJJkZgkkkpOHB mB+Op1x/0DjFKcjApifLuErBLEOJLyk+pzEgszogvKs1JLT7EKMPBoSTB2y8IlBMsSk1PrUjL zAEmPJi0BAePkghvD0grb3FBYm5xZjpE6hSjLseEl3MXMQux5OXnpUqJ88aAzBAAKcoozYMbA Uu+lxhlpYR5GRkYGIR4ClKLcjNLUOVfMYpzMCoJ8y4FmcKTmVcCt+kV0BFMQEdsD7QCOaIkES El1cAU9qFP85uSTN8XCaVvRw6tuda+LHnLo/g7ca9t0v6c1/825d0ml4M9+Y/26JxOCHCs8Z+ 4bKfvM8OUtCnxtT+ltulXClzOCX6R5R76sr4+VrXwwyS9vvroyx4cC+c8Xe/2x1HU80Lnqc6i H3HVHO/ubYm6bPz2hltGktu39Od3/r++ny71c2J3zMP6rAI/c7cDHzK1uFytROf9N3tw+rDM+ 0faFskWmlu6X2/ZZtmlO/tGv05a/NS37MJNNgEhF2WTpY8//jVHf0WSd8KvX7aTJbqyE3r9El ZF3t162Eu8vXr9DLtzG6alWwuZer9RPb2PIzjtl8fWO2UXV76Y7760ynDBNc+thqbpZfVP55g osRRnJBpqMRcVJwIA+EkLBDkEAAA= X-Env-Sender: John.Alexander@datapath.co.uk X-Msg-Ref: server-24.tower-268.messagelabs.com!1614680785!598908!1 X-Originating-IP: [104.47.17.112] X-SYMC-ESS-Client-Auth: mailfrom-relay-check=pass X-StarScan-Received: X-StarScan-Version: 9.60.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1879 invoked from network); 2 Mar 2021 10:26:25 -0000 Received: from mail-db8eur05lp2112.outbound.protection.outlook.com (HELO EUR05-DB8-obe.outbound.protection.outlook.com) (104.47.17.112) by server-24.tower-268.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Mar 2021 10:26:25 -0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQiOnM3wpSgYiKUc2n4gIDGau87OC+alGi/wsWLpgvWw4XyGsSfuGDyICC5gYUxTEoXyttBhQx9L6EsncXSBDY3bBRa9XXRvKUOWMOiTpBPhwp/ZMclLV4xdTlv9ama77fWVGySypTWbcTmUjVPeXXTgAI8lYLpHzh/u/gmtbDC+MBNfJBqvqgKCYtXhC51xUhjpxw6t4ZcvsYMIxk7Jfn4WPziQaUMFnQ50LnGIXPfs4M2T2ahbmtoJMsKqw58PBJC/2clDVZSeyROQdyg6QsFAcQnNr1JWcGMXjDifIbUpMXnJkK0u0OBIA2luS71yE7rNnDkxOadvZfTfr0+AqA== 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=Ng/rcfC05MFtTFYEMnVKUdkYGug8r0i/E6gQQst54u4=; b=f1Iv+5Mu8zYB9m/kPXC7mIrBKjJv+7WFP0mTfKWRoN0LW3826lKkZpKAvnETUKmcCodCCrFplM0VaQMbEw59Dz9Wei5pI02JpzV+O70tsA0B0P7aM/uSxURe0rjkJQgxwSXP27DvYqj+yjHVbTPCdfcck9+CCp5rZjSeHOnqC9ip2+D4eOQ2EALwocjLCgMaT8OiCaF5I3k/knlgONUtS1NMYthGyhaILa28Sfcz37AWmq9gxIZewCgwRKXdBZLDEHh2yN1G2m18eR3XRnk6eC53w7TlWqNiMW9HGpXfdMqMjlluqrLEZnMEiNhDd6xgEzK1UscKRCiNlSG0mYpIGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=datapath.co.uk; dmarc=pass action=none header.from=datapath.co.uk; dkim=pass header.d=datapath.co.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datapathuk.onmicrosoft.com; s=selector2-datapathuk-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ng/rcfC05MFtTFYEMnVKUdkYGug8r0i/E6gQQst54u4=; b=tEJqhdzbJCNMEZbNqZm4ZWP31+HnKO248kRTS5eCz20gQUE7V80Qwx+vJAwbEiGQ4u96lTYpCam04vF6aS1YR7W13vgReh4lZmZPudv+c8QdDfW154K7ogYMZplyrYIYoy+kEb78RJmJx/cn966GrjKP/WfuQ7w2eHWuBAMNzU4= Received: from AM9PR09MB4900.eurprd09.prod.outlook.com (2603:10a6:20b:30e::18) by AM9PR09MB4964.eurprd09.prod.outlook.com (2603:10a6:20b:300::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Tue, 2 Mar 2021 10:26:25 +0000 Received: from AM9PR09MB4900.eurprd09.prod.outlook.com ([fe80::920:fa3a:8689:903e]) by AM9PR09MB4900.eurprd09.prod.outlook.com ([fe80::920:fa3a:8689:903e%5]) with mapi id 15.20.3890.029; Tue, 2 Mar 2021 10:26:24 +0000 From: John Alexander To: "users@dpdk.org" Thread-Topic: Transmit Completion Thread-Index: AdcPTjRh5hNa+VrgQfeduSZexer5DQ== Date: Tue, 2 Mar 2021 10:26:24 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2a00:23c4:403:e001:c46d:874e:dda5:6e6c] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e9123f19-a506-49f7-3291-08d8dd65a1dc x-ms-traffictypediagnostic: AM9PR09MB4964: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hhG/sw8wYlzzEXwEnzrL5WySmMchcfZXZe2VuDeGNvtcx+j3/wI8IJDGE3s21aEP0U0LVM44uD2lzhk7QxEzAlL+pGXf1MJGA6/EpG4e+D2HlRORaJy8qy9kTlK+Lgsm3nwqfWswchQ45jcFzNF6+RVarvJ+15gtJtq/EICINv0sccbxk1OYxZ97LtHnGNThS6YqGIkf1qL/4Ba4ZSsc49mEnSeUBFuYwh7LqGv2f5wzgYJJYAeT9DKJRYKn3F3Q/GH0LUo/6F/ZllELhbi5UR7dbEkSp0ZzcPoW3SjeICSmJJYeQNq/I2/9ns7y1zs3oiUh/LWlnN8y6iassZ1ycf7fTRaqcNKRtmWA2IhZEtWpeqJSo3qcfIpdTR8G/NyhXSPoacBewFH6hV1avbbT5ifLAUcSoJgqJe2bRplIWVmihu/7o5XOVrMp18vLXEFNb0PPtclG9bKUSurvaP+u74qcWz0S98wIejgkc7yGOsK0MQyky/G69MhXmrXeI2TUbUMgrqi9YIZ9W89b2BY6uw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR09MB4900.eurprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(39840400004)(396003)(366004)(376002)(83380400001)(2906002)(3480700007)(4744005)(71200400001)(478600001)(66476007)(66946007)(64756008)(66446008)(8676002)(66556008)(6506007)(7696005)(33656002)(186003)(6916009)(76116006)(316002)(9686003)(86362001)(5660300002)(8936002)(52536014)(7116003)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?P14b5dwPl4a95VojIhlQg5omZGu05PilcznTA1JnzNtD5E0y146UJ3Ema27i?= =?us-ascii?Q?j+cHDd8x/LIL3WEUvuMx1JsXdVvSr84xmjQ4YZuNhMfxRkBMSy755EttU1Ek?= =?us-ascii?Q?iHWHhjqCtWuXSlGJqt8Sm0OO2UJjbj0YV0bbspNyaNIvBiCyTQwpJ38eHPHz?= =?us-ascii?Q?3sF/URAVklYOuN46SE6a5GMalPGCLzR/X2B8+xUiFUiLF3MVSO0n7zK5vXuj?= =?us-ascii?Q?RrPXQFQeepYdpcE1we1fQkN+kJCS01XmqLTxLLVpT7O0UUb8NdZFzZDAsM0e?= =?us-ascii?Q?QLbYJM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0nJLf5K7gzlX1fM?= =?us-ascii?Q?B2T8ZRJwRQfoW+6W8aHrImc405TFDGVALtA76+9bkO2kvDCBjRDpDsPrm3qk?= =?us-ascii?Q?NVvZl8NyaRshQP4rwwygcSTVAhTH+iUlRP4ty6FkEDkf0SElO0JSeWLz9WEy?= =?us-ascii?Q?WIjS5SSHtFzVhWfnzlGz8217DXlefo0aW+yneXUqDfZ5yLPlFkswuvnZC8hA?= =?us-ascii?Q?7G0mVEM=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: datapath.co.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4900.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9123f19-a506-49f7-3291-08d8dd65a1dc X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2021 10:26:24.9435 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 102e0f24-523c-4823-a9ce-5a8ebc4e32a7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9kPvA4tmg4LgEyQ7YuFB+2Ucq48H0D0NMl/y2cVjejh/EWXmRoYckNx9HlHw2PQXK4JG20XowouFvLTMqIZV0JV6bVIYEsJoVyyw5I/kfGg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR09MB4964 Subject: [dpdk-users] Transmit Completion 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 Sender: "users" Hi, Once a packet has been transmitted using an API call such as rte_eth_tx_bur= st(), what is the preferred method of determining that the packet has been = transmitted? I need to provide a notification to an application so that it= can re-use/re-claim some application resources that were associated with t= he mbuf in the mbuf custom private data; this is a lazy re-claim, we're not= after immediate per-packets events just eventual reclaim. I've been finding that rte_eth_tx_done_cleanup() isn't very widely supporte= d by many PMDs and when used with the Intel i40e PMD, it doesn't flush out = mbufs where the associated descriptor hasn't yet been updated due to the de= scriptor update granularity (setting that down to 1 seems to result in at l= east 1 mbuf still remaining stuck in the PMD). The reclaim cycle works fin= e when I'm continually sending, when I pause or stop sending, I never get m= y mbufs back so I'm wondering what the preferred way of achieving this is? Many Thanks, John A.