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 9A39242503; Tue, 5 Sep 2023 17:40:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8958C40E40; Tue, 5 Sep 2023 17:40:31 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 863A640279 for ; Tue, 5 Sep 2023 17:40:29 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EF3D05C0158; Tue, 5 Sep 2023 11:40:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 05 Sep 2023 11:40:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :sender:subject:subject:to:to; s=fm1; t=1693928427; x= 1694014827; bh=J66wgqN3o2IbyAChPobUD4YU4ipmP9Ripltimx7tFP8=; b=G dfuGoCZGc5CUOaLEKz6d4NE0eupuqjNqLZPiqlbsMCtAffAxNFSuVYvAZVEQ7tjN Y3orTg6X78lZEUqMYQb+oyTWR5i3LJqXzV+5FnHSHK9GuyK4Xk30xihZCQOCeuou DTueMsgbgZyzcfzsxAgO+xnGe/9qtZks8pFHcp1+rPMzZ5BNX7ZEBssAqt4lhYEB WqFRrMd7xFPUxJdl3REmVMenBQRTS4qxNrwXaHpREsAeBUPSeHLAOwxMuaJpbvya XCU+7JR/z/px1GqqW4MfyX8cY5NyYK2Sik4LQ5zuFZuUz410TFEbAa4qk+co48Io 5oz9mlb9/Lu9gjs9o5Ihg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1693928427; x=1694014827; bh=J 66wgqN3o2IbyAChPobUD4YU4ipmP9Ripltimx7tFP8=; b=N7ogQ7Fi17+4AkFLn sLYeUoG8aVbds6cg+qce9K7OduwAtXZJ1TJSbBXp2vr1LwdfEySMHrZT6lHnk9dr yqgWHs2R/4qBlMJtg4oFuQ20ACYP5DoxxVuHSKBwXO95L0aGYQx8tUqr41E7GXPC d0bE7kPlbaj9LD9F2glU89Igh1sG8NGQHKjJ6lmB1yPveIn4wTV9DZJNTXFMV079 cTzJeiAbt6b/dbXiG0/sbK8ABoPu6L5RWiRQNKYnKad/W9yvhXiF2C792krF3jSE o80GMshyBeMwaX0LxJZpJj5oLjDf3PrUcTZSDzTdB5MtWpJmUzfYENTzcXLlh6EC FVBEQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehuddgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpeeugfegteduhfdujefgvdfhteeiuefghefffeeukefgfffgtefhfffh jeeuvdefvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Sep 2023 11:40:26 -0400 (EDT) From: Thomas Monjalon To: Harry van Haaren , david.marchand@redhat.com, bruce.richardson@intel.com, Andrew Rybchenko , Chaoyong He , Niklas Soderlund Cc: ferruh.yigit@amd.com, dev@dpdk.org, Tyler Retzlaff Subject: drivers use of service cores Date: Tue, 05 Sep 2023 17:40:24 +0200 Message-ID: <6541993.tM3a2QDmDi@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 Hello, I think we can improve the developer experience for using service cores from a driver, like finding or allocating a service core. We may take some code and ideas from sfc and nfp drivers, like in these functions: nfp_map_service() sfc_mae_counter_service_register() sfc_get_service_lcore() If it is not possible to use a service core, we could default to using a control thread. So the driver would never fail because of a thread initialization. What do you think about proposing such a high level API in order to get more drivers using it?