From patchwork Tue Nov 21 11:54:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134512 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 503FA4338E; Tue, 21 Nov 2023 12:55:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3609A42EBA; Tue, 21 Nov 2023 12:55:12 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id CACB442EBA for ; Tue, 21 Nov 2023 12:55:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567711; x=1732103711; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lOjD4nZNZKTfwisyymM0UuqG9RbmJyxJvbnPp/Nqywc=; b=hcvEFiegCaVSo3tEIAYEe9ty1j6m76qO5fm5IBA9kyDujeQR/g30tI7a M1G2gpxdyiTu7IjLK60c7QWkkAfGw5rMWBihdI5Ptkp2w2YXkWFnRVILo OLvmBcf1mo65ZYPhorxioohVcVyKbVBoc+f3E19l4j6SAFs8H8Z9dZ596 IvaqiYyIRowBYST2Ehn0wTltfiuOCN7hNsUdCcBzYzokNCwo0tE6Gc/aE RVMURlpTZ5PVxMWPegU1yaGJzsBSsvBiubUc58T5A5fEHgdkSnE7nQIBD e4IKoB7DdhBG8LL5uGR5/Wra2FxZkJQWdoQxBBfBTgLXdyC/qjiUH86FT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160871" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160871" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:55:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511340" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511340" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:09 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , =?utf-8?q?Mattias_R=C3=B6?= =?utf-8?q?nnblom?= Subject: [PATCH 24.03 v2 6/9] event/dsw: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:34 +0000 Message-Id: <20231121115437.96500-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231121115437.96500-1-bruce.richardson@intel.com> References: <20231120172606.505579-1-bruce.richardson@intel.com> <20231121115437.96500-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|