From patchwork Mon Nov 20 17:26:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134504 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 6385843381; Mon, 20 Nov 2023 18:27:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B5C042E64; Mon, 20 Nov 2023 18:27:00 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id BEB3942E63 for ; Mon, 20 Nov 2023 18:26:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700501217; x=1732037217; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gMw9xBLu5YTiJtHNEczsSP+IuGPHq8agaRyow3quInc=; b=dmqid+X65JDkR5WnhsTBzH5ogWBLx10IgkdVCDroC1HogPgp7SA1kSAi TpOWkLyo872pJaRTYswla6pjfpZ4fdwl8nm3Bfpfx2PteKox6GpDBj3Kj dgEbqyzD81ILthfWBAuX/i2G+KaPch9iJaLAEjrsmgSSkjkeyHwbzYr8r Ap1UQdYwXTGlI+6mARZSkHU5KhX+bqJBZ6G8FGWJDESkhkK08kKlGl7ss oTsrcuW88pbu48ABuwoB5yC9zSV2jRAPeX9+pXbRQHsd9/ZxtrhxFVUvl 5By4BnTpI3WjJqd6Hkobj/0cUxQJvJPcEPjyDV4l5n3v+FZ5eGsKH/vU5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="455996615" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="455996615" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 09:26:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="889984661" X-IronPort-AV: E=Sophos;i="6.04,214,1695711600"; d="scan'208";a="889984661" Received: from silpixa00401385.ir.intel.com ([10.237.214.168]) by orsmga004.jf.intel.com with ESMTP; 20 Nov 2023 09:26:56 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Harry van Haaren Subject: [PATCH 24.03 8/8] event/sw: add schedule-type capability flags Date: Mon, 20 Nov 2023 17:26:06 +0000 Message-Id: <20231120172606.505579-9-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231120172606.505579-1-bruce.richardson@intel.com> References: <20231120172606.505579-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/sw.ini | 3 +++ drivers/event/sw/sw_evdev.c | 3 +++ 2 files changed, 6 insertions(+) -- 2.39.2 diff --git a/doc/guides/eventdevs/features/sw.ini b/doc/guides/eventdevs/features/sw.ini index 8c89d3b8d2..f4d46d79b8 100644 --- a/doc/guides/eventdevs/features/sw.ini +++ b/doc/guides/eventdevs/features/sw.ini @@ -4,6 +4,9 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +ordered_scheduling = Y +parallel_scheduling = Y queue_qos = Y event_qos = Y burst_mode = Y diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 55e7735cb0..1c01b069fe 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -600,6 +600,9 @@ sw_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info) .max_event_port_enqueue_depth = MAX_SW_PROD_Q_DEPTH, .max_num_events = SW_INFLIGHT_EVENTS_TOTAL, .event_dev_cap = ( + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_ORDERED | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_QUEUE_QOS | RTE_EVENT_DEV_CAP_BURST_MODE | RTE_EVENT_DEV_CAP_EVENT_QOS |