[v3,0/5] Extend and set event queue attributes at runtime
Message ID | cover.1652607951.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 8256EA00BE; Sun, 15 May 2022 11:55:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 341A340A79; Sun, 15 May 2022 11:55:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 14ECA40143 for <dev@dpdk.org>; Sun, 15 May 2022 11:55:53 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24F8ncri002166; Sun, 15 May 2022 02:53:49 -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=vZyhYevsbAOtUjcwjDz3zEU2cxktMJV/dc8bTNprfis=; b=QDe/oakY/NeLQatKKVSRPKmEwPgzKCpNhnvxO9SD7cwqWGsMky8ktg8dBTue//RYCk9m MniQVKu0lSpqmlcaQcg+kGTFSHIZ0+Hm2yzXMBu9y8GLJSSRRCXfPm0Eai+5/9+TAGcX TakO3UVDHkstbi8zqEPrZsJg0kCQHzYbQH8jSoYVEPUQ5EuWVWBAFfBN4LI8Dj5kg5tY 0RwRNYigJ1fqeoBW8WsF7FdvkZmBadTj7ppNZVxniWb/+EbiuJg+NglXNSxPftuLG3Bd YQ87Zb3G12fMgijXMuRkmRTjfNcBO4lyKFT9ojY7sdAbADkwneHlukfIh180fgFpOXgg TA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3g29sq2taw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 15 May 2022 02:53:49 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 15 May 2022 02:53:48 -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; Sun, 15 May 2022 02:53:48 -0700 Received: from localhost.localdomain (unknown [10.28.34.29]) by maili.marvell.com (Postfix) with ESMTP id 11CC23F707A; Sun, 15 May 2022 02:53:45 -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>, <mdr@ashroe.eu> Subject: [PATCH v3 0/5] Extend and set event queue attributes at runtime Date: Sun, 15 May 2022 15:23:08 +0530 Message-ID: <cover.1652607951.git.sthotton@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1649136534.git.sthotton@marvell.com> References: <cover.1649136534.git.sthotton@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 9zz764-jddJYNZfJXcmEu2bhNiUNaRX0 X-Proofpoint-GUID: 9zz764-jddJYNZfJXcmEu2bhNiUNaRX0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-15_05,2022-05-13_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
May 15, 2022, 9:53 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. v3: * Updated release notes. * Removed deprecation patch from series. * Used event enq/deq to test queue priority. 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 (4): eventdev: support to set queue attributes at runtime eventdev: add weight and affinity to queue attributes test/event: test cases to test runtime queue attribute event/cnxk: support to set runtime queue attributes app/test/test_eventdev.c | 201 ++++++++++++++++++++++ doc/guides/eventdevs/features/cnxk.ini | 1 + doc/guides/eventdevs/features/default.ini | 1 + doc/guides/rel_notes/release_22_07.rst | 12 ++ 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 | 19 ++ 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, 695 insertions(+), 103 deletions(-)