From patchwork Wed Oct 18 13:39:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 132896 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 5BE914319A; Wed, 18 Oct 2023 15:40:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DA6E42D66; Wed, 18 Oct 2023 15:40:20 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 0F3F040261; Wed, 18 Oct 2023 15:40:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697636418; x=1729172418; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dmNRFyywYuxJ6iX+tMEVW06HaDEs9hDwhpR80oMjIpM=; b=dHHi1lGB59IB+zboNkSx0JxnZ9v2eKM462wsDYGW9bRepuJFzo5qcAIT L/JSN1jlNFDe4wai7YKhKq0Z8n6L2Jy/O7TZYFjRmWigLXqVSew3IhEeq exgSB75g1sWukDa/Bqw0XK5Xa8Q6YFnJhECE8lRoyhg8B3FUwL7FsYBHU HD26TWh7vfbx5JVpA+vIY2e3fv/MGMqtRsZvKtDBXR9bDS/g5yChXG/8G ySk2E33P7SocfWZwyhE8qJPwGcQWHe4TYMfGNS+aFJVmOP0G+oPpm+KQa aSakgtRK5XJlBz72sc/eaDCDSZdDKXqNuCSy9Gbs21Q59v0J2lzRZsrkl w==; X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="452482907" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="452482907" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 06:40:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="733173148" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="733173148" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.41]) by orsmga006.jf.intel.com with ESMTP; 18 Oct 2023 06:40:15 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Jerin Jacob , David Marchand , Bruce Richardson , stable@dpdk.org Subject: [PATCH v5 2/2] eventdev: fix missing driver names in info struct Date: Wed, 18 Oct 2023 14:39:33 +0100 Message-Id: <20231018133932.150177-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231018133932.150177-1-bruce.richardson@intel.com> References: <20231016151713.711965-1-bruce.richardson@intel.com> <20231018133932.150177-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 Rather than relying on the individual drivers to always populated the driver name field in the info structure - something missed by some drivers, we can do so in the eventdev rte_event_dev_info_get() function. This fixes issues Fixes: bbbb929da5e6 ("event/skeleton: add skeleton eventdev driver") Fixes: 0ce3ce7c275c ("event/dpaa2: add configuration functions") Cc: stable@dpdk.org Suggested-by: David Marchand Signed-off-by: Bruce Richardson --- lib/eventdev/rte_eventdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index 95373bbaad..0ca32d6721 100644 --- a/lib/eventdev/rte_eventdev.c +++ b/lib/eventdev/rte_eventdev.c @@ -104,6 +104,8 @@ rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info) dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns; dev_info->dev = dev->dev; + if (dev->dev != NULL && dev->dev->driver != NULL) + dev_info->driver_name = dev->dev->driver->name; rte_eventdev_trace_info_get(dev_id, dev_info, dev_info->dev);