From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C32BAA04BC; Fri, 9 Oct 2020 00:01:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 240CE1BC76; Fri, 9 Oct 2020 00:01:48 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BA1B254AE for ; Fri, 9 Oct 2020 00:01:46 +0200 (CEST) IronPort-SDR: brEKSg9+r3ge1yqONsSJOTNnYSjrbpVoXPsF2FWYPurCO9qfrloJPpt6XRtJLBR0m41iNSwKNo LuAfGjWYIfQw== X-IronPort-AV: E=McAfee;i="6000,8403,9768"; a="162774017" X-IronPort-AV: E=Sophos;i="5.77,352,1596524400"; d="scan'208";a="162774017" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 15:01:44 -0700 IronPort-SDR: DIiJvUq4O5SldPoJSvHOhTTBjuGV+dIvX9eR+f38Lq30ZRDgi/+d8a6AAQzSyPJmtjSUyxnvjD 9KsUnFw2KrmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,352,1596524400"; d="scan'208";a="461959602" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP; 08 Oct 2020 15:01:44 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) 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.1713.5; Thu, 8 Oct 2020 15:01:43 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 8 Oct 2020 15:01:43 -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.1713.5 via Frontend Transport; Thu, 8 Oct 2020 15:01:43 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.171) 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.1713.5; Thu, 8 Oct 2020 15:01:26 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GA+AdNhAFtgehieUuDq/vUQl2UwMCspPkDgGVS0ere6ydLKpD+PnuNDvXdJWLSWiFg+oIeCJZmTqDC1OTRmdoemxpC4sWO3S4Bz1o3q37onPODUdMTbTx+c0xwd+4BHY9kpz4KKB0u+ydUjrD98HSJz40ckis8OiRrLRV8d7Ye5uvsNHXLPGnjZEKzwAIaTi7bZj1/HTyzkPPnJPUeWNfLz/CDkDPw/kL2aJVFof6ok9cUxu4Jse1vd7ep+LMyOlUKCnyDdE/jDCsfuFeYoJ2Xk4J/6fXFgJx8nrL4VxhH7rUEydCibigadjCQYYyE/yc5JbsWahWccAL+DqVEkzyw== 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=O6mtGcI3CXA0vBwgsMgfQiHy98GHbo0Cyc2PmICWwss=; b=EMrROINLxLUNzbBoBskxf6Y8M4hCBpMpqQDDTk6dLsM/uSJN3Zfhsc7rMzelaLCrGcxjWFO7CHyn6Kdazw3PRnA88jD1+CIU5V6NwPzg2m10uRCvH3td6PpmUosNCQ3Z3Czwa8DSXR41eKBW0Yq0Pt8ZxuqHAck7ueo+peNDAmwoQ5TYE7LND4JwdaHM6VPSfmqP+K1yKyHtP+pqhJP95d6h9VfRfhCOIpOrF4r8wD1aNIYXt2kx3y8e6OfvZWLaQz569+Pz0/Bu3mj6prGmqGNl2y9J7PU/8fuNcrFo3GA6dS6huPGKFq/ssNP7AeAvbAfWgbedpRNQbjuJ2vnznA== 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=O6mtGcI3CXA0vBwgsMgfQiHy98GHbo0Cyc2PmICWwss=; b=bI1L8+OKFKouYPTrdJpP8DObENzogPD0fFCnuj5+dewloXAKp/AYZNwfrX7RnzHwlIE07/2drLYRaaSznxZnDkTS64ynDV/MTlrBuO2OwVcOSdLQDweVC+p144T65JbO4SHDwAYZvkfFhjt8Z5oCR7+C3PWxV5QRKcNuOJ918kA= Received: from SN6PR11MB2574.namprd11.prod.outlook.com (2603:10b6:805:59::14) by SA2PR11MB5019.namprd11.prod.outlook.com (2603:10b6:806:f8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34; Thu, 8 Oct 2020 22:01:26 +0000 Received: from SN6PR11MB2574.namprd11.prod.outlook.com ([fe80::902d:8f85:ea05:a7a]) by SN6PR11MB2574.namprd11.prod.outlook.com ([fe80::902d:8f85:ea05:a7a%4]) with mapi id 15.20.3455.024; Thu, 8 Oct 2020 22:01:26 +0000 From: "Eads, Gage" To: "McDaniel, Timothy" CC: "dev@dpdk.org" , "Carrillo, Erik G" , "Van Haaren, Harry" , "jerinj@marvell.com" Thread-Topic: [PATCH v4 21/22] event/dlb: add timeout ticks entry point Thread-Index: AQHWiHDj4ObdIM8ncU+gjeBQ0lkbhKmOaxnw Date: Thu, 8 Oct 2020 22:01:25 +0000 Message-ID: References: <1599851920-16802-1-git-send-email-timothy.mcdaniel@intel.com> <1599851920-16802-22-git-send-email-timothy.mcdaniel@intel.com> In-Reply-To: <1599851920-16802-22-git-send-email-timothy.mcdaniel@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action 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: [68.203.30.51] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8d0dc849-458a-45fc-67a5-08d86bd5b3cd x-ms-traffictypediagnostic: SA2PR11MB5019: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1227; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GDOkv9ndBuslh/k01bc89LeyRl0XLbdCcdDI3FoSG+35lNkUD2P9HDO70kQBXZwD42rvwEQmDeqhNZT9fEE4bvThleKR8dkqkKZ4+/YIyG6LI1rsMksC5xgCxZIo2DJLYR1eo125qxYReUdhVAJAxl7lEFd27KndltoHBfoBYCWe6/658X8Ygd5cCU8T0nFBW1DkWYxiHPPWCIPYpjaaLdpnolp6WG7AciOo54eBQM+fpAYRTNY4qBqV3fca0o6+ymXaRphjSEXH1g/p+YyaohzWQOLei4JoqgsvHlXYoBbIw+E/FC8RioaeemkdevkF x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2574.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(26005)(478600001)(9686003)(55016002)(2906002)(4326008)(6862004)(8936002)(8676002)(316002)(6636002)(66946007)(33656002)(5660300002)(83380400001)(6506007)(66476007)(66446008)(52536014)(64756008)(76116006)(186003)(66556008)(7696005)(86362001)(54906003)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: ZFylQQdHW/t0RFy9iHs8TuZxiny1oAGvy/9rzthzyh2m87qlkytE1v7yZxUy1a+fu3sawRxGQcKOzpzFR63pcLxho/chpqEnqenNQ3M2+6yJK2/UZ6ZDz4WyiyXsy9PpuD71eniLR0gR9GNnRz0zok2XlLAKNQPTBc6jTQ2DhIThNNPXnuBzH1vYnwahNMkIe8k5IOmY3nPc2d9wsmUBfoZ0BETrznNrKy6a1HMtYrbmZ1rpxWP/v9EUZgdbugMPRTuUD20S/y32LJX/8FWTB2/YZTRrcpHA/sN5YlsrTqwdVfz2pUOxWymroqRwhydr9Ad48KC6cIhBKVqQZgq7r7oE5C1LY/MAFET3CRqMAz5W/Nz5Msd4df3YhDC0Jrf5fGRte3fuHxT26Eo0oCrsQ40APLD0q9FMZWdPeXG1V1iKiACvux0+Ue0rCTdlVJekldcyJHpMXEDkV/+LI/olFZzeS5yfkeOOxt+nP13QZ+re8SYwjncIVmv143OHAJxCd5Eq+azYEnltUgqHtHX8geIbB2BaiGcwp2dZFb+BYLrnvPBdJfupFLgwKolNJgvt0w8YYTU9bBMo/4bXtjGSH12DGLGnsZpWE8Yszdd4lPrclB1k0FsvaAEcCMM3du+H/ohFnWKhxDctE4QwFBYdsQ== 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: SN6PR11MB2574.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d0dc849-458a-45fc-67a5-08d86bd5b3cd X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 22:01:25.9575 (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: F/UIVXbVcszp+UfL8k4BudbgqrYQQH4U/3Oq2FtFJekpVuSgLasusQeqoNEtnAy7sbGWmM6qy7uOlg6uS+uiHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5019 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 21/22] event/dlb: add timeout ticks entry point X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: McDaniel, Timothy > Sent: Friday, September 11, 2020 2:19 PM > Cc: dev@dpdk.org; Carrillo, Erik G ; Eads, Gag= e > ; Van Haaren, Harry ; > jerinj@marvell.com > Subject: [PATCH v4 21/22] event/dlb: add timeout ticks entry point >=20 > Adds the timeout ticks conversion function. >=20 > Signed-off-by: Timothy McDaniel > --- > drivers/event/dlb/dlb.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) >=20 > diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb/dlb.c > index d9613ce..b7fa0ca 100644 > --- a/drivers/event/dlb/dlb.c > +++ b/drivers/event/dlb/dlb.c > @@ -3895,6 +3895,18 @@ dlb_eventdev_queue_release(struct rte_eventdev > *dev, uint8_t id) > */ > } >=20 > +static int > +dlb_eventdev_timeout_ticks(struct rte_eventdev *dev, uint64_t ns, > + uint64_t *timeout_ticks) > +{ > + RTE_SET_USED(dev); > + uint64_t cycles_per_ns =3D cycles_per_ns =3D rte_get_timer_hz() / 1E9; I'm a little surprised GCC allowed this :P. With that self-assignment fixed= : Reviewed-by: Gage Eads Thanks, Gage