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 D141BA0567; Tue, 9 Mar 2021 21:04:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D291522A541; Tue, 9 Mar 2021 21:04:45 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 4EFA24069D for ; Tue, 9 Mar 2021 21:04:44 +0100 (CET) IronPort-SDR: yioz1syy0H/BriuyzweyWQAq5thtLhPv63hcfHePbSpBQy38sLAneMvcMUcYP22P2FctFSqFYi YHE+fcT+4NjQ== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="175915638" X-IronPort-AV: E=Sophos;i="5.81,236,1610438400"; d="scan'208";a="175915638" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 12:04:41 -0800 IronPort-SDR: 3fqpCFpP9LbqK0bQabjyN+oqlAzyJSFzOEER1/AS0G/ATIQvsQiDFqnUUTRABQQ/Nqh+XyFHnU svACwz/Cx2WQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,236,1610438400"; d="scan'208";a="369907524" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 09 Mar 2021 12:04:40 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) 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.2106.2; Tue, 9 Mar 2021 12:04:38 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Tue, 9 Mar 2021 12:04:38 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.173) 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.2106.2; Tue, 9 Mar 2021 12:04:38 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jRqNe6+XBZNHWNYtaU9zCdsSGIMHlN9jhPDgsVejt3iJQSKfauwymW9Y1VoH/907375WNvP7YX9nmpS3d0KB6rATKGzSTDkO0vhLB58+N6UaWrfGluAgwDTYVqTr/N97wRmhittCoYldZbOApk/5kNJBioRcUToiYdjsL04xxCWqA36SbMMimmu0GRs6IwIpAnfecVgKFddyR290xnhARs8gwLC58FcqWHCFK7pfeZmHKPHTWFBeHSn6Q+tMyIg3cMgk+G5AEgy4Bvm3khmoyr/ac7ZPLQfo0woLMUyhP7oUs4kjEaVIpXDXv/z9MPuzUWzBIYBZZSi9UFUS0dgZNg== 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=mqfB1RT3GpwbHsryavL4XXUKip082BA8YAX01zrEvlU=; b=BRx/7gWTzJajUGWrLUJaGOwBsUx/jmlUViw9O3qmLO2ePEqOnjSBAry3IxliRcMPmDxvH2g2ZCkVqKxK3XL+ELqrvp+88qWQZT7ydKr1nxV6/xgR0hve2VfwQzN+w5OAUQq9kJJfI8MwUWanLqOpD7bPxJWRcUJaQOlVIHuluvqy3iT5WobztVDnGaXciU3krExXi1XpfRItlW77KiR0xaoHK8L4akaNCusdf6vHXVuz/w14f4T9hHWGVcHhk2R5NOUiHzkLAyU4nfqVSSp9p4DWnz1gtNVwmWgWYcks54560ZH6CkVyYROIr7ouTVxetWxau2Tl2YfZKtZXg6Ikxg== 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=mqfB1RT3GpwbHsryavL4XXUKip082BA8YAX01zrEvlU=; b=i9z9A+ADiZY/3KtdhbB2FXF4OG8Jrn29QrHSKsCmkZSxmJJIWK8mE/tXEOBRc+H6UJvT+L1Yk0ofHXLLpoAbqM+sqwqvVV4SvstoI+HQqDV8sYryFglnoB5p64v7hb8J9j2Up/5XLtBzwwyXX33UF+w29O0Y7yRZKM0B+Vm+P9o= Received: from SA2PR11MB5196.namprd11.prod.outlook.com (2603:10b6:806:119::18) by SN6PR11MB3006.namprd11.prod.outlook.com (2603:10b6:805:d1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.26; Tue, 9 Mar 2021 20:04:32 +0000 Received: from SA2PR11MB5196.namprd11.prod.outlook.com ([fe80::e5ae:2c7e:c1b4:c0ae]) by SA2PR11MB5196.namprd11.prod.outlook.com ([fe80::e5ae:2c7e:c1b4:c0ae%7]) with mapi id 15.20.3912.029; Tue, 9 Mar 2021 20:04:32 +0000 From: "Carrillo, Erik G" To: Shijith Thotton CC: Pavan Nikhilesh , Jerin Jacob , "dev@dpdk.org" Thread-Topic: [PATCH 1/3] eventdev: introduce adapter flags for periodic mode Thread-Index: AQHXFFwNfpZBEmZFzEyZzTHySVF7cKp8E6CA Date: Tue, 9 Mar 2021 20:04:32 +0000 Message-ID: References: <20210308204543.2903723-1-sthotton@marvell.com> <20210308204543.2903723-2-sthotton@marvell.com> In-Reply-To: <20210308204543.2903723-2-sthotton@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [136.49.192.164] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 03781713-b2e1-4050-a65d-08d8e3368e05 x-ms-traffictypediagnostic: SN6PR11MB3006: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jLaBuVamvJeZsbOniApTgDnqWRaK6UedTyAzHbWYnTFgyUaICKvnJXG+9Rb66AGqLEATOt/lnu6V+ectLs9eHWmWv/h36UIcIvwkzOU5RPftd937fUKj1tJEm32qKFjYViWDlawms6jRJMSKsfaAtBNmMp8I9LhIZrtZiXLRPRqkOQZrTToMxWpDnXegM6xuNZnTAaKZxpSOW2TnUkdX/A0bSR5xkY4fvzzc8pazn6pq8xdxH/9sOgAhZgXh1v/fZxAxixFoB62eO+5OmCS0ynBgwTMPZobXfNDASQkPoGnYDxzdFD93d6hWNIP0swswZaLpiZbQZ0eV1GKP4OzCGnkmsLQkms894jea9XdBXu4WUfF95W/d8O4v/C11/NkAMUBZUB88U9qLKYSc5Erk56KwJJ6MfqkuknJI3hiPOlW99KU4GMoOPJLdUzqjttis7RpbFq+IchF+pEd1jT7l/1esA5TtKhhjiskyTdbkKugYDEZiAJs3aSRD/TgVGCBGEpuN0yjTooJgRvgoUWNCoQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR11MB5196.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(396003)(376002)(136003)(39860400002)(346002)(33656002)(86362001)(8936002)(8676002)(7696005)(4326008)(6916009)(52536014)(26005)(71200400001)(55016002)(9686003)(186003)(53546011)(6506007)(2906002)(83380400001)(66476007)(66556008)(76116006)(5660300002)(316002)(54906003)(66946007)(478600001)(64756008)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?W4lD/Xzty8VaqNdVY05ogqGkE6QkVakfVOWLRbOQQmkXdbyf9ISnPsjG4sC7?= =?us-ascii?Q?TbiogcBL7KHC3zeGEerT7ZMj2fya9I/xbFPeKGlY37MnCNLd17qrjaOrjhj1?= =?us-ascii?Q?7WzLc7ZZbBz4GBcLWWmLbxZu6t7zRhln4QSvuue9s1IPFkt9c4ZQWKI1JE4T?= =?us-ascii?Q?NV0LT38GhREQt9HrNj7hikWyoRj7S9YRk/ROaxKWCV8RLJ6FOdnRgUC5f3DI?= =?us-ascii?Q?628OCrSuyd4v/OPB0HlpwcFNeKLOa5W05lkFf0e2Y7C5H4NqVJ1Vek/LUutQ?= =?us-ascii?Q?ad5BW0WEk4r1mpqANt9XZ8eU2IBJT4NJa2Rg3pZxwauP5TDnQtC2OMHX4GmN?= =?us-ascii?Q?qY6iGCjyOpcNLIZ5asK07H8ENBPlcXdNj/gnaxi2M0zIiQg/HSsabRLnx8R3?= =?us-ascii?Q?kHzZydQXuGbNcCinUa/Sme87M9rNrRc/OoO5InJrsHGxAkMoCta8/sTJXoKp?= =?us-ascii?Q?AYU3h8XvWJq6MhKR++KPc5PnpUZHpz+nN1vJ0bWWIAlUXVCjsP1QuHA18haP?= =?us-ascii?Q?jGsPPi0hKM2vqnjhpex8+LxaUREWyhG4KRfAzkFJFUjh1oXCJGDLO4R+/wUR?= =?us-ascii?Q?eHtARYL/EbBQGmm5DtJTl5kS5A+gVA+8LCeSGi9P2RUYatrJ8eFX7iW52xnC?= =?us-ascii?Q?6fTSuMA0P7OckgGVIntb5gHDuot9TtUiI+ZlB04B9CX1w3u+wRUDQ5Ip1nGA?= =?us-ascii?Q?xxJgS2Q3Y5jvhZCNcwREbNDcLi5iz58iv8MnJ/oNUTui6ii8rXAUgM8RujyW?= =?us-ascii?Q?lKkoAb7UrufLB3cgLYhbaASrty/WC0yr7EcznnTi/8qQjgmb2bWnEf5hlC/0?= =?us-ascii?Q?oADttbeVYtNvyBZL4wciN2IMK9axp5OS44+5lhlbZ8St0GB5dnh2GGYfpKG4?= =?us-ascii?Q?J8ZJGQ9ZZnVfTkcTLI6lLoYZvh8KwNah6dQdiB2/heYwzc8+91kOxbF2FXAi?= =?us-ascii?Q?MWMMWFe9Vf8UpyjnCU9b1I3K+6idmlEPBzVhogOzmBZf53R1VF1lE8vSwj2D?= =?us-ascii?Q?NmFwBaNlyC7DYXSR2r49xzU4zpX8aJHSPEJL+7iyTy/zcUkARA9prNZEzNHr?= =?us-ascii?Q?R358GHueKcZmCVUmZ2De3W8eYx4Y8BEHmUTsnASiuGdlFCTuYmvnxZagbvfc?= =?us-ascii?Q?HOORoTZu7YnHHIIeJAB5K8LwYfZ8om2Nk4XGT71SGJctQBxWPGk8WwihoO6J?= =?us-ascii?Q?eR+Y6dx5aHHMKv5CBB0XBxgDonInGf0HI9DvR1B5cPhBHkIHag7IS5bhWINi?= =?us-ascii?Q?1+Li0fFUSFt9Mp3eDWYlLGaKhxwPLLNNrnNd9UijLbP/K/IqCFF97U1s9skT?= =?us-ascii?Q?oVhAKXoMbqwq+M1RVKF1/I1H?= x-ms-exchange-transport-forked: True 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: SA2PR11MB5196.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03781713-b2e1-4050-a65d-08d8e3368e05 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Mar 2021 20:04:32.2005 (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: 0+YZP8wkVFYhLm47rcC1EI5kEjLU4gUuOINSffR+d/i35ukEgBfpcgoc6wWVCzOMO3NG2r2phhZA23uPkD2CxWkON/243wKW46Nhv28hN6Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3006 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 1/3] eventdev: introduce adapter flags for periodic mode 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" Hi Shijith, Please see a question in-line: > -----Original Message----- > From: Shijith Thotton > Sent: Monday, March 8, 2021 2:46 PM > To: Carrillo, Erik G > Cc: Shijith Thotton ; Pavan Nikhilesh > ; Jerin Jacob ; > dev@dpdk.org > Subject: [PATCH 1/3] eventdev: introduce adapter flags for periodic mode >=20 > A timer adapter in periodic mode can be used to arm periodic timers. > This patch adds flags used to advertise capability and configure timer ad= apter > in periodic mode. Capability flag should be set for adapters which suppor= t > periodic mode. >=20 > Below is a programming sequence on the usage: > /* check for periodic mode support by reading capability. */ > rte_event_timer_adapter_caps_get(...); >=20 > /* create adapter in periodic mode by setting periodic flag > (RTE_EVENT_TIMER_ADAPTER_F_PERIODIC) and resolution. */ > rte_event_timer_adapter_create_ext(...); It looks like periodic support is an operating mode of the adapter itself, = and that all timers created with a periodic adapter instance will be period= ic timers. Is it possible to instead have "periodic/single-shot" be an attribute of an= event timer itself, such that a single adapter instance could support eith= er type of timer? Thanks, Erik >=20 > /* arm periodic timer of configured resolution */ > rte_event_timer_arm_burst(...); >=20 > /* timer event will be periodically generated at configured > resolution till cancel is called. */ > while (running) { rte_event_dequeue_burst(...); } >=20 > /* cancel periodic timer which stops generating events */ > rte_event_timer_cancel_burst(...); >=20 > Signed-off-by: Shijith Thotton > ---