From patchwork Tue Dec 12 11:32:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 135064 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: 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 C5241436D4; Tue, 12 Dec 2023 12:33:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D5C742E28; Tue, 12 Dec 2023 12:32:47 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 5520F42E33 for ; Tue, 12 Dec 2023 12:32:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702380765; x=1733916765; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=O2j7MWs//LtynRvRlCW+0QPZfiWbQJk5UNdY7EIph3w=; b=aNBl/1ML9secmdmagcvDZP9Og3TLTvnTUSPzI+5YP1HV7tCP9zmLj6wp sWETV70K22aHMAv2RA1A+6pdvd9LjGEgrtycCz4fMp2DXAXIpRNTb8vvw KmJ0iguNp7KgHd8pwcv2QSif5xB9X15s2ZThU1pQvFHrQwteONbT2vBNv HKaekEuTdQRhoxlJx+PEXJn1MZICe5+fb0Y5sEEx0DB0t+fkQonZV3o91 npGe2DrlzhmyJc4w+6r8cIjFlPuh00izBUJVlbq6fio5tHmMpLiY63SKc 0JEK/YFnVwt1Y9yepnnqPF15rF8CatO8QSJ6zkGln1zWvMm1JjarlFjie g==; X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="398635886" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="398635886" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 03:32:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="766794723" X-IronPort-AV: E=Sophos;i="6.04,270,1695711600"; d="scan'208";a="766794723" Received: from silpixa00401316.ir.intel.com (HELO silpixa00401385.ir.intel.com) ([10.237.214.22]) by orsmga007.jf.intel.com with ESMTP; 12 Dec 2023 03:32:42 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: jerinj@marvell.com, Bruce Richardson , =?utf-8?q?Mattias_R=C3=B6nnblom?= Subject: [PATCH v3 6/9] event/dsw: add schedule-type capability flags Date: Tue, 12 Dec 2023 11:32:20 +0000 Message-Id: <20231212113223.31147-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231212113223.31147-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231212113223.31147-1-bruce.richardson@intel.com> MIME-Version: 1.0 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 Document explicitly the scheduling types supported by this driver, both via info_get() function, and via table in the documentation. Signed-off-by: Bruce Richardson --- doc/guides/eventdevs/features/dsw.ini | 2 ++ drivers/event/dsw/dsw_evdev.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/guides/eventdevs/features/dsw.ini b/doc/guides/eventdevs/features/dsw.ini index c8bc6b3f1d..4038b9dd3d 100644 --- a/doc/guides/eventdevs/features/dsw.ini +++ b/doc/guides/eventdevs/features/dsw.ini @@ -4,6 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +parallel_scheduling = Y distributed_sched = Y burst_mode = Y nonseq_mode = Y diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 1209e73a9d..9bf7b46a24 100644 --- a/drivers/event/dsw/dsw_evdev.c +++ b/drivers/event/dsw/dsw_evdev.c @@ -220,6 +220,8 @@ dsw_info_get(struct rte_eventdev *dev __rte_unused, .max_num_events = DSW_MAX_EVENTS, .max_profiles_per_port = 1, .event_dev_cap = RTE_EVENT_DEV_CAP_BURST_MODE| + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED| RTE_EVENT_DEV_CAP_NONSEQ_MODE| RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT|