[v2,0/6] Extend and set event queue attributes at runtime
Message ID | cover.1649136534.git.sthotton@marvell.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 <dev@dpdk.org>; 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 <sthotton@marvell.com> To: <dev@dpdk.org>, <jerinj@marvell.com> CC: Shijith Thotton <sthotton@marvell.com>, <pbhagavatula@marvell.com>, <harry.van.haaren@intel.com>, <mattias.ronnblom@ericsson.com> Subject: [PATCH v2 0/6] Extend and set event queue attributes at runtime Date: Tue, 5 Apr 2022 11:10:57 +0530 Message-ID: <cover.1649136534.git.sthotton@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1648549553.git.sthotton@marvell.com> References: <cover.1648549553.git.sthotton@marvell.com> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Message
Shijith Thotton
April 5, 2022, 5:40 a.m. UTC
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(-)