From patchwork Tue Nov 21 11:54:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 134514 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 2DB734338E; Tue, 21 Nov 2023 12:55:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0B0942ECA; Tue, 21 Nov 2023 12:55:16 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 5CF1B42EC3 for ; Tue, 21 Nov 2023 12:55:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700567715; x=1732103715; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kGf+IH+DZMH5LzlmmVzRuUNoXdmbKblSrH0StfP/lh8=; b=JnPsJNO1jS4hPpcvsuLT57UGDrWaSkUm34CjrlZpKzu9Xja3fdkAp0GB wDTnM24UUX0FfOPM2m7MDCM0kuWzw6fu1k0b/ft0kGBXHN5EsNbbkpzZg Epmv1B9XnAtV3c/9owlxtzp9U8yBucW8lABxuYCuwCw6BAbFltmuyz1A+ XGI7IBsiS5Mm0RPVPyYppQ1dSDbipdZFlvms5q4aBkzY/6ITRTLlo49c0 mkGJT2a2REhy7Gg7qqvFItGOU3wxTNmLkkc9XtxGbGmIrr/haVVbTyPlv 3+zMsrpru+JRhAZwYG8+iHg7YZ9aAStivGVpNjSc1MUrrH41tv7nvaBaU w==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456160892" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456160892" 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:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="801511354" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="801511354" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.153]) by orsmga001.jf.intel.com with ESMTP; 21 Nov 2023 03:55:13 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Liang Ma , Peter Mccarthy Subject: [PATCH 24.03 v2 8/9] event/opdl: add schedule-type capability flags Date: Tue, 21 Nov 2023 11:54:36 +0000 Message-Id: <20231121115437.96500-9-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 --- Maintainers, please check this patch carefully, as I'm not sure the correct way to document this. According to the docs for this driver, it supports parallel only via ordered. Therefore, I've actually made the docs inconsistent from the flags claimed in the API. I've documented that PARALLEL is supported in the info_get() flags, so code that checks for that will run, but I've omitted it from the table in the docs, since it is not directly supported. Is this a good compromise, or an accurate reflection of the driver? --- doc/guides/eventdevs/features/opdl.ini | 2 ++ drivers/event/opdl/opdl_evdev.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/doc/guides/eventdevs/features/opdl.ini b/doc/guides/eventdevs/features/opdl.ini index 5cc35d3c77..7adccc98de 100644 --- a/doc/guides/eventdevs/features/opdl.ini +++ b/doc/guides/eventdevs/features/opdl.ini @@ -4,6 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Scheduling Features] +atomic_scheduling = Y +ordered_scheduling = Y burst_mode = Y carry_flow_id = Y maintenance_free = Y diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index 0cccaf7e97..b34a5fcacd 100644 --- a/drivers/event/opdl/opdl_evdev.c +++ b/drivers/event/opdl/opdl_evdev.c @@ -376,6 +376,9 @@ opdl_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info) .max_event_port_enqueue_depth = MAX_OPDL_CONS_Q_DEPTH, .max_num_events = OPDL_INFLIGHT_EVENTS_TOTAL, .event_dev_cap = RTE_EVENT_DEV_CAP_BURST_MODE | + RTE_EVENT_DEV_CAP_ORDERED | + RTE_EVENT_DEV_CAP_ATOMIC | + RTE_EVENT_DEV_CAP_PARALLEL | RTE_EVENT_DEV_CAP_CARRY_FLOW_ID | RTE_EVENT_DEV_CAP_MAINTENANCE_FREE, .max_profiles_per_port = 1,