[v4,0/5] Extend and set event queue attributes at runtime
Message ID | cover.1652722314.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 4D37CA00BE; Mon, 16 May 2022 19:38:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E15F940A7A; Mon, 16 May 2022 19:38:07 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 49DBC4068B for <dev@dpdk.org>; Mon, 16 May 2022 19:38:06 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24GAZ2f6011450; Mon, 16 May 2022 10:36:03 -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=R3weewSn47cS6df1MRUzHShQvlsgnitztHEMlPj5rrs=; b=VlokpDtStyONtZpGb3I6vgE0HF8xwEAIf4vlLPKV07VXwnarjStYampOhVCJkRlqf57w aDDNnMFSQWpw05vjb2MkYxqwrZTd4L+he5ZZrGqV6aQHabtWxRYbIEEcgLQMoQ5WYoaV K6ooePIznhU+d3/jRzBhpmOkmeqp8f2M28eleqctD+2FJ1qViBhiF3aq8uIej2j3h4SY n/94/y5aV5K9eI+ncFYi0XaU6C93llyKpzCEKavG9lhIfTQ73KlJ50cH+4mKoHBlffC1 RfD28/LTcAUdocpIBm6wuvESPQEduo384qCqNCthGcxnVGDbrF3IeGuI6Qp2II+GSOhA lA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3g2bxsqyne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 16 May 2022 10:36:02 -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, 16 May 2022 10:35:59 -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, 16 May 2022 10:35:59 -0700 Received: from localhost.localdomain (unknown [10.28.34.29]) by maili.marvell.com (Postfix) with ESMTP id 45BBD3F70CB; Mon, 16 May 2022 10:35:57 -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 v4 0/5] Extend and set event queue attributes at runtime Date: Mon, 16 May 2022 23:05:46 +0530 Message-ID: <cover.1652722314.git.sthotton@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1652607951.git.sthotton@marvell.com> References: <cover.1652607951.git.sthotton@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: t0STpYbKkkdgKFFEthj_Y8VROKqHbY7h X-Proofpoint-GUID: t0STpYbKkkdgKFFEthj_Y8VROKqHbY7h 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-16_15,2022-05-16_02,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 16, 2022, 5:35 p.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. v4: * Removed EBUSY from rte_event_queue_attr_set() return vals. 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 | 70 +++++++- lib/eventdev/version.map | 3 + 15 files changed, 694 insertions(+), 103 deletions(-)