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 6C6FBA0505; Tue, 5 Apr 2022 07:41:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AE5D40685; Tue, 5 Apr 2022 07:41:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id CA41C40042 for ; Tue, 5 Apr 2022 07:41:41 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2351iwsG017737; Mon, 4 Apr 2022 22:41:40 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=cBltmfK+Lg2EKSaK4Tn3LARImSaz7JmoJhKvz4etyes=; b=edyNkcKXJf1swSE/EqT57WyyxBOuYgnnk8N6XvrOAfuAVeJ4txAnHf9ta2jg3jgotcmS XitvgJxrzNIp2yrR5/p1glaiHuCrniggzaN3BVkQ3XLNC0MEbxqGXT1fQzM4XpqMqNtu n7PHx9kGxVnSwI08n0bbAGbQVW6cN4S5rMCCYXYbPlH5tp5Ussv0/4eSh2Qujg6OHDhu m1cIg8+X7PvmXlMEgwjwIzTS8yX5nlXpAecIjxihPoG6WtXXPPeew6v4F2Sc8DYdgqZ+ X6Ydeq40XBzO3bnvTg5EYXuKWJQbrOBH9AQkzfSUla1IGa+VBPLI4LM5h493QztAyTHv Hg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3f6kupk7uc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 04 Apr 2022 22:41:40 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 4 Apr 2022 22:41:39 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 4 Apr 2022 22:41:39 -0700 Received: from localhost.localdomain (unknown [10.28.34.29]) by maili.marvell.com (Postfix) with ESMTP id 5DF3D3F7040; Mon, 4 Apr 2022 22:41:37 -0700 (PDT) From: Shijith Thotton To: , CC: Shijith Thotton , , , Subject: [PATCH v2 0/6] Extend and set event queue attributes at runtime Date: Tue, 5 Apr 2022 11:10:57 +0530 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: D-xydQs3CerJOZ4qJaP2bIq8io16UZGW X-Proofpoint-GUID: D-xydQs3CerJOZ4qJaP2bIq8io16UZGW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-04-04_09,2022-03-31_01,2022-02-23_01 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 This series adds support for setting event queue attributes at runtime and adds two new event queue attributes weight and affinity. Eventdev capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR is added to expose the capability to set attributes at runtime and rte_event_queue_attr_set() API is used to set the attributes. Attributes weight and affinity are not yet added to rte_event_queue_conf structure to avoid ABI break and will be added in 22.11. Till then, PMDs using the new attributes are expected to manage them. Test application changes and example implementation are added as last three patches. v2: * Modified attr_value type from u32 to u64 for set(). * Removed RTE_EVENT_QUEUE_ATTR_MAX macro. * Fixed return value in implementation. Pavan Nikhilesh (1): common/cnxk: use lock when accessing mbox of SSO Shijith Thotton (5): eventdev: support to set queue attributes at runtime eventdev: add weight and affinity to queue attributes doc: announce change in event queue conf structure test/event: test cases to test runtime queue attribute event/cnxk: support to set runtime queue attributes app/test/test_eventdev.c | 149 ++++++++++++++++++ doc/guides/eventdevs/features/cnxk.ini | 1 + doc/guides/eventdevs/features/default.ini | 1 + doc/guides/rel_notes/deprecation.rst | 3 + drivers/common/cnxk/roc_sso.c | 174 ++++++++++++++++------ drivers/common/cnxk/roc_sso_priv.h | 1 + drivers/common/cnxk/roc_tim.c | 134 +++++++++++------ drivers/event/cnxk/cn10k_eventdev.c | 4 + drivers/event/cnxk/cn9k_eventdev.c | 4 + drivers/event/cnxk/cnxk_eventdev.c | 91 ++++++++++- drivers/event/cnxk/cnxk_eventdev.h | 16 ++ lib/eventdev/eventdev_pmd.h | 44 ++++++ lib/eventdev/rte_eventdev.c | 38 +++++ lib/eventdev/rte_eventdev.h | 71 ++++++++- lib/eventdev/version.map | 3 + 15 files changed, 631 insertions(+), 103 deletions(-) -- 2.25.1