From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0FD3641E77 for ; Fri, 17 Mar 2023 02:44:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9F0A42FAE; Fri, 17 Mar 2023 02:44:01 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id E82CF40F17; Fri, 17 Mar 2023 02:43:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679017440; x=1710553440; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=N35Fr05OqtlTa0e1lEknEXQ1swXHMEhutqHivL5emkQ=; b=PlUnxuCeMQYeYvc+8IcyIC93Sr+qftzyLcAnXGf8x8l2UpE9A7Q/L19p TYozjslnRflGQnnbZlwuGOleibzt/XFi8f45y6ncbUA3YviuCqJjzcyx7 d+HLe4F7wjQqOcR6/ZeFBY9mDvsd2fevlear+LijlQadHL3qHziErddco Jw9uYClwiCGymH4UxnsfFvBjDRS+U6hGxvDlkyUfZJ9cnzsw0nJP4gkrR 6H6lqGEp8AsvLm5/Cnkop2LOmEwWSXVu2H+FwDDSVNyGwVAZGoDN6sQ7m czDhkMjUPD3DwCyf4Aewy33h3L0fgsIOKFgJn9r86VIrhbwrAIjladdjC A==; X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="326522123" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="326522123" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 18:43:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="630118089" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="630118089" Received: from sh_lab5_1.sh.intel.com (HELO ocsbesrhlrepo01.sh.intel.com) ([10.238.175.110]) by orsmga003.jf.intel.com with ESMTP; 16 Mar 2023 18:43:55 -0700 From: Wei Huang To: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com Cc: stable@dpdk.org, rosen.xu@intel.com, tianfei.zhang@intel.com, qi.z.zhang@intel.com, Wei Huang Subject: [PATCH v1] net/ipn3ke: fix representor name Date: Thu, 16 Mar 2023 16:44:56 -0400 Message-Id: <20230316204456.360385-1-wei.huang@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The device name used in rte_eth_dev_allocated() function is afu device name instead of representor name, this patch correct it. Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver") Cc: stable@dpdk.org Signed-off-by: Wei Huang --- drivers/net/ipn3ke/ipn3ke_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipn3ke/ipn3ke_ethdev.c b/drivers/net/ipn3ke/ipn3ke_ethdev.c index 70a06a3..2c15611 100644 --- a/drivers/net/ipn3ke/ipn3ke_ethdev.c +++ b/drivers/net/ipn3ke/ipn3ke_ethdev.c @@ -558,7 +558,7 @@ static int ipn3ke_vswitch_remove(struct rte_afu_device *afu_dev) snprintf(name, sizeof(name), "net_%s_representor_%d", afu_dev->device.name, i); - ethdev = rte_eth_dev_allocated(afu_dev->device.name); + ethdev = rte_eth_dev_allocated(name); if (ethdev != NULL) rte_eth_dev_destroy(ethdev, ipn3ke_rpst_uninit); } -- 1.8.3.1