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 4198643B55; Tue, 20 Feb 2024 17:34:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06305402A7; Tue, 20 Feb 2024 17:34:04 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 875C840289 for ; Tue, 20 Feb 2024 17:34:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708446843; x=1739982843; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=ZB/KXZQY1ja8YfKoqe51mNYYyaLPmqOWndkMSNld/tw=; b=lKTq3IMkGe0M4xPgfXFQ7tLj7D0t1AE+2C1G/NI1jMgboCqCvAdk5Z/o BnEiUt+pbNfahp7W3EG4u/RP179di4uIaKts8vaI43Q3lIKu/0uLeAqSS yP4NCjIcjCzG8Wm6GObwVs02LrQA5D5YC69dBgcODl0myMC3JEMsiOKxb eW1PgglMBazcWhaH3TvWQZpJK6sbRNYTPNfMlxxzVhInCW0jHOTw937Qz qH4tUMv/1VcC8qB265XPkRj3bsKahMRJdvi6JH+lH8OI20ZRCkebUoTjb 0L8Pp7a0H6PpTKisNsEgu+AcrUxRJ8QuK5djS6wuomCj7ejemCWhnU3Xi w==; X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="2700642" X-IronPort-AV: E=Sophos;i="6.06,174,1705392000"; d="scan'208";a="2700642" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2024 08:34:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,174,1705392000"; d="scan'208";a="35600731" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Feb 2024 08:34:01 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) 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.2507.35; Tue, 20 Feb 2024 08:34:00 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 20 Feb 2024 08:34:00 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.41) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 20 Feb 2024 08:34:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l8UFVyw6OUE1s+hNdkHCEWlVZpyigsYylV6xxsmaR4PpWaCkD0qppWnN9HtwVX7AG8rTX3bLd9/dcR5gfgOV5kQiA1yKJg4KHqPEX01+S6Z64MwU7+DpSJJyUWg/xpDb/qA/e2W+hqmhELjdVpbb1KhwPs2MUiPEC8zF31nweicc8L1ayBQ2y1ikvOwwyNcpLp7/xlGPwnmk57OV8UZiZHgezBSYpeIwmalCasQkvC8REXvEvMtyjEF20RMJqtj4XEgu6IoCJNraTzKjnCLwgjOGLHJ1mq2Zw1MMxwhdZ28N/Zll2R6tW3i1e2cQKi55a/wYRSxQSB4Rx9i+q9fIBQ== 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=DWZ/ITY9s0kzFuwk4H+9QD09eCzmJVQ9hBmPlpUoa8U=; b=MD215nqTiw6VGqB/nHvtKtqfBgH7OBd05qXIoKT7S0JA8DWDjNQJsI2pd30PAqfhHB+KtuKDLzj7oYsdipmo1SbLnwM3xoa7cxacodG/tiiYTtoqgU9FljRoxdXtEF0Q/YiuNeqcYxwBdbsFkdQHub5feXC9BARYYgCnYvtYtEnzWT3vK4h1pydxJ+xiMq2A/JjrXg3gEM/Ejip3Qw/W4HykcTDQE4VvzBQ+jiylryBAC5gLkqjzHLfpOfa6F7m1oZD+JYbxcTBodyACinsq6oFLfKMIEjp5C1DAExGDHSAjLo15MgSki/sDA7ZIsIcYYv+V8MnhNt9AplMm+TAxLQ== 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 DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by CH3PR11MB7348.namprd11.prod.outlook.com (2603:10b6:610:14d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.38; Tue, 20 Feb 2024 16:33:56 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::d10:3009:a8d3:1d2e]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::d10:3009:a8d3:1d2e%7]) with mapi id 15.20.7292.036; Tue, 20 Feb 2024 16:33:56 +0000 Date: Tue, 20 Feb 2024 16:33:49 +0000 From: Bruce Richardson To: Jerin Jacob CC: , , , , , , , Subject: Re: [PATCH v3 01/11] eventdev: improve doxygen introduction text Message-ID: References: <20240119174346.108905-1-bruce.richardson@intel.com> <20240202123953.77166-1-bruce.richardson@intel.com> <20240202123953.77166-2-bruce.richardson@intel.com> Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: DU2P250CA0022.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::27) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|CH3PR11MB7348:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e2a848c-ca40-4847-aee0-08dc3231bb71 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tHni1+7OkRplJJiHCTqrbzXpRvqFeutxaWT+xKD9pQrPW4iCbCXaH5thtzsyybgL4btKcDrKB/VT3d8lBMv0g/GyjWxz+KkQ7/8YUOIx79+OwhRyUbu8fC3FPDKN+TME2K6fywqhhWjADY1b6ZxrgOXIpG12sR+Nvo1Nxb2nWTAtLyL+NLdN4hmSBsj+OAgepsYkaMknLIS4TyVLULYTX2629yhH7jq0To/sMCm+P8L+E7ibSWT/+g/OegekZs4//Oih5LsxhYP7oflLETNyo4Wme/OEd+qKjmNnfmgJ96bWVwJbDpR5eJOfx647HfK1vUcuw6aoV4vHInUWmYzPf8mF+p92LmGnwYIlnSnyzY55FAuez0XM/CwYt79aErf8TiKMQWREBpWzZL3dWG2t+OZXaYKnjPq1AVPRxT3UFgtf7fQbEzfOUEFcXWtaFqhMUXm3bgIMFyMF+Il842wEa42BQE6oOyXVbcsDJAbX9x1bzjtnfmlA7yqVRtxuhbhACXBQJEilRUSBeCYJOm8yXK3W+MzX6wPwmonCqTL7Q6I= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com;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vVHJuMk9q?= =?utf-8?B?bFFSYlpiYU44bFk2NVlnRm0zMUh6TXY3OHpFK09hTG5hWDBJKzZZbGZLcjkv?= =?utf-8?B?bWtja3VJZzlGK0xvM0h5TzYrZHRYdEIycC8ydDNzK0ZvZG1IS2d4ckxjZk5p?= =?utf-8?B?SmZicXl6eEJsVEtSM1RDc0hCS0VjQ2NKZ29DLzNtdU9KSjR6TEpwVHJ5MHF4?= =?utf-8?B?aHJHWkVuSUhXY2IySHZjNlI3cmJiNXBTaGcyUUNVR3JGUVdqRWxHaGdsVEtu?= =?utf-8?B?eWNLa3NWdHVCUlU0Nzl5dEI4UnRKZFZrelJ5cTdvVzlWeER2REhOSnFpY3M1?= =?utf-8?B?UVkybFkxYVBmdjVWL0R2Wi9RTUZFYTNESFBxT1dDdzlzZEZLZVM5UlVXYzdt?= =?utf-8?B?bzVmdTBnV1RGNWdZazFJNG1EYjVMbnk1MGRYMDZucHpDSGErS1ZSUG9Qa0pw?= =?utf-8?B?dWhrcmtlM3lvTlZ4ZVF3R1JQYUJqNXFLcHJEWTFLQSt6SkRkbkVMSHRuUTdy?= =?utf-8?B?d1E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 1e2a848c-ca40-4847-aee0-08dc3231bb71 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 16:33:56.0853 (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: H/srz6Jq67zEYLRuotQxE05s4JYWzAcSBEofXSrh0mDiMWHcIZK/RKyeyP3KSiC3E7XvnLZgXz80jRNs9Wk81zv3tHGA6bUkrGLCRpDWy8U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7348 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 Wed, Feb 07, 2024 at 03:44:37PM +0530, Jerin Jacob wrote: > On Fri, Feb 2, 2024 at 7:29 PM Bruce Richardson > wrote: > > > > Make some textual improvements to the introduction to eventdev and event > > devices in the eventdev header file. This text appears in the doxygen > > output for the header file, and introduces the key concepts, for > > example: events, event devices, queues, ports and scheduling. > > > > This patch makes the following improvements: > > * small textual fixups, e.g. correcting use of singular/plural > > * rewrites of some sentences to improve clarity > > * using doxygen markdown to split the whole large block up into > > sections, thereby making it easier to read. > > > > No large-scale changes are made, and blocks are not reordered > > > > Signed-off-by: Bruce Richardson > > Thanks Bruce, While you are cleaning up, Please add following or > similar change to fix for not properly > parsing the struct rte_event_vector. i.e it is coming as global > variables in html files. > > l[dpdk.org] $ git diff > diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h > index e31c927905..ce4a195a8f 100644 > --- a/lib/eventdev/rte_eventdev.h > +++ b/lib/eventdev/rte_eventdev.h > @@ -1309,9 +1309,9 @@ struct rte_event_vector { > */ > struct { > uint16_t port; > - /* Ethernet device port id. */ > + /**< Ethernet device port id. */ > uint16_t queue; > - /* Ethernet device queue id. */ > + /**< Ethernet device queue id. */ > }; > }; > /**< Union to hold common attributes of the vector array. */ > @@ -1340,7 +1340,11 @@ struct rte_event_vector { > * vector array can be an array of mbufs or pointers or opaque u64 > * values. > */ > +#ifndef __DOXYGEN__ > } __rte_aligned(16); > +#else > +}; > +#endif > Yep, that's an easy enough extra patch to add to v4. > /* Scheduler type definitions */ > #define RTE_SCHED_TYPE_ORDERED 0 > > > > > --- > > V3: reworked following feedback from Mattias > > --- > > lib/eventdev/rte_eventdev.h | 132 ++++++++++++++++++++++-------------- > > 1 file changed, 81 insertions(+), 51 deletions(-) > > > > diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h > > index ec9b02455d..a741832e8e 100644 > > --- a/lib/eventdev/rte_eventdev.h > > +++ b/lib/eventdev/rte_eventdev.h > > @@ -12,25 +12,33 @@ > > * @file > > * > > * RTE Event Device API > > + * ==================== > > * > > - * In a polling model, lcores poll ethdev ports and associated rx queues > > - * directly to look for packet. In an event driven model, by contrast, lcores > > - * call the scheduler that selects packets for them based on programmer > > - * specified criteria. Eventdev library adds support for event driven > > - * programming model, which offer applications automatic multicore scaling, > > - * dynamic load balancing, pipelining, packet ingress order maintenance and > > - * synchronization services to simplify application packet processing. > > + * In a traditional run-to-completion application model, lcores pick up packets > > Can we keep it is as poll mode instead of run-to-completion as event mode also > supports run to completion by having dequuee() and then Tx. > > > + * from Ethdev ports and associated RX queues, run the packet processing to completion, > > + * and enqueue the completed packets to a TX queue. NIC-level receive-side scaling (RSS) > > + * may be used to balance the load across multiple CPU cores. > > + * > > + * In contrast, in an event-driver model, as supported by this "eventdev" library, > > + * incoming packets are fed into an event device, which schedules those packets across > > packets -> events. We may need to bring in Rx adapter if the event is packet. > I think keeping it as packets is correct, rather than confusing things too much. However, I will put "incoming packets (or other input events) ..." to acknowledge other sources. We don't need to bring in input adapters at this point since we want to keep it high-level. > > + * the available lcores, in accordance with its configuration. > > + * This event-driven programming model offers applications automatic multicore scaling, > > + * dynamic load balancing, pipelining, packet order maintenance, synchronization, > > + * and prioritization/quality of service. > > * > > * The Event Device API is composed of two parts: > > * > > * - The application-oriented Event API that includes functions to setup > > * an event device (configure it, setup its queues, ports and start it), to > > - * establish the link between queues to port and to receive events, and so on. > > + * establish the links between queues and ports to receive events, and so on. > > * > > * - The driver-oriented Event API that exports a function allowing > > - * an event poll Mode Driver (PMD) to simultaneously register itself as > > + * an event poll Mode Driver (PMD) to register itself as > > * an event device driver. > > * > > + * Application-oriented Event API > > + * ------------------------------ > > + * > > * Event device components: > > * > > * +-----------------+ > > @@ -75,27 +83,39 @@ > > * | | > > * +-----------------------------------------------------------+ > > * > > - * Event device: A hardware or software-based event scheduler. > > + * **Event device**: A hardware or software-based event scheduler. > > * > > - * Event: A unit of scheduling that encapsulates a packet or other datatype > > - * like SW generated event from the CPU, Crypto work completion notification, > > - * Timer expiry event notification etc as well as metadata. > > - * The metadata includes flow ID, scheduling type, event priority, event_type, > > - * sub_event_type etc. > > + * **Event**: Represents an item of work and is the smallest unit of scheduling. > > + * An event carries metadata, such as queue ID, scheduling type, and event priority, > > + * and data such as one or more packets or other kinds of buffers. > > + * Some examples of events are: > > + * - a software-generated item of work originating from a lcore, > > lcore. > Nak for this, since it's not the end of a sentence, but ack for the other two below. > > + * perhaps carrying a packet to be processed, > > processed. > > > + * - a crypto work completion notification > > notification. > > > + * - a timer expiry notification. > > * > > - * Event queue: A queue containing events that are scheduled by the event dev. > > + * **Event queue**: A queue containing events that are scheduled by the event device. > > Shouldn't we add "to be" or so? > i.e > A queue containing events that are to be scheduled by the event device. > Sure, ack. > > * An event queue contains events of different flows associated with scheduling > > * types, such as atomic, ordered, or parallel. > > + * Each event given to an event device must have a valid event queue id field in the metadata, > > + * to specify on which event queue in the device the event must be placed, > > + * for later scheduling. > > * > > - * Event port: An application's interface into the event dev for enqueue and > > + * **Event port**: An application's interface into the event dev for enqueue and > > * dequeue operations. Each event port can be linked with one or more > > * event queues for dequeue operations. > > - * > > - * By default, all the functions of the Event Device API exported by a PMD > > - * are lock-free functions which assume to not be invoked in parallel on > > - * different logical cores to work on the same target object. For instance, > > - * the dequeue function of a PMD cannot be invoked in parallel on two logical > > - * cores to operates on same event port. Of course, this function > > + * Enqueue and dequeue from a port is not thread-safe, and the expected use-case is > > + * that each port is polled by only a single lcore. [If this is not the case, > > + * a suitable synchronization mechanism should be used to prevent simultaneous > > + * access from multiple lcores.] > > + * To schedule events to an lcore, the event device will schedule them to the event port(s) > > + * being polled by that lcore. > > + * > > + * *NOTE*: By default, all the functions of the Event Device API exported by a PMD > > + * are non-thread-safe functions, which must not be invoked on the same object in parallel on > > + * different logical cores. > > + * For instance, the dequeue function of a PMD cannot be invoked in parallel on two logical > > + * cores to operate on same event port. Of course, this function > > * can be invoked in parallel by different logical cores on different ports. > > * It is the responsibility of the upper level application to enforce this rule. > > * > > @@ -107,22 +127,19 @@ > > * > > * Event devices are dynamically registered during the PCI/SoC device probing > > * phase performed at EAL initialization time. > > - * When an Event device is being probed, a *rte_event_dev* structure and > > - * a new device identifier are allocated for that device. Then, the > > - * event_dev_init() function supplied by the Event driver matching the probed > > - * device is invoked to properly initialize the device. > > + * When an Event device is being probed, an *rte_event_dev* structure is allocated > > + * for it and the event_dev_init() function supplied by the Event driver > > + * is invoked to properly initialize the device. > > * > > - * The role of the device init function consists of resetting the hardware or > > - * software event driver implementations. > > + * The role of the device init function is to reset the device hardware or > > + * to initialize the software event driver implementation. > > * > > - * If the device init operation is successful, the correspondence between > > - * the device identifier assigned to the new device and its associated > > - * *rte_event_dev* structure is effectively registered. > > - * Otherwise, both the *rte_event_dev* structure and the device identifier are > > - * freed. > > + * If the device init operation is successful, the device is assigned a device > > + * id (dev_id) for application use. > > + * Otherwise, the *rte_event_dev* structure is freed. > > * > > * The functions exported by the application Event API to setup a device > > - * designated by its device identifier must be invoked in the following order: > > + * must be invoked in the following order: > > * - rte_event_dev_configure() > > * - rte_event_queue_setup() > > * - rte_event_port_setup() > > @@ -130,10 +147,15 @@ > > * - rte_event_dev_start() > > * > > * Then, the application can invoke, in any order, the functions > > - * exported by the Event API to schedule events, dequeue events, enqueue events, > > - * change event queue(s) to event port [un]link establishment and so on. > > - * > > - * Application may use rte_event_[queue/port]_default_conf_get() to get the > > + * exported by the Event API to dequeue events, enqueue events, > > + * and link and unlink event queue(s) to event ports. > > + * > > + * Before configuring a device, an application should call rte_event_dev_info_get() > > + * to determine the capabilities of the event device, and any queue or port > > + * limits of that device. The parameters set in the various device configuration > > + * structures may need to be adjusted based on the max values provided in the > > + * device information structure returned from the info_get API. > > Can we add full name of info_get()? Yep, that will turn it into a hyperlink, so will update in v4