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 2B7994404F; Wed, 12 Jun 2024 17:26:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88875432EA; Wed, 12 Jun 2024 17:07:08 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 6D9C942FD3 for ; Wed, 12 Jun 2024 17:07:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204821; x=1749740821; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4BJgPh5l31uzLpx03eA7vlgttrKROg1YptpZnGMz0Xw=; b=ckgGOv6ZmNtqU1UAo+UEwtdxfiWEPgzp60miLd2/fLW+RkZHhgaUUx06 39Shl3kag3uwg1BFXChPwbbLLwAAoBYhA2ol9D65+DnESqRMDKprNG9GG Goco7ENGR75WlDYdXZKCQpJEcNF/ALQLUlH7WVym+l1oGd1wIbKe6d70P m6AuL55q4uMJaxbx6ZE7ArBfo9oRICXgGwljK3xMUSzi2DpjxABsIr0TF FEBogKGr21U32wj37zyDFlYt5vuPzT4jZng+a9tik3zwTyeMM002c0wMs jesrHZV66dHZ60XsImQNbyaWqDR5sIdalM1fcYhIHYxkNVLpYt7Tp21PT w==; X-CSE-ConnectionGUID: 2yPuzY6bRoaPX7AuauEmUQ== X-CSE-MsgGUID: rZ2IKAVkQQqnFU5rnLC8Zg== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32460118" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32460118" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:07:00 -0700 X-CSE-ConnectionGUID: E/sdttSEQ4qMtHcgOr734Q== X-CSE-MsgGUID: +YxAZTK2QQuz3FfhRa4DHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39926000" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:06:59 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Stefan Wegrzyn Subject: [PATCH v2 133/148] net/ice/base: fix memcpy type Date: Wed, 12 Jun 2024 16:02:07 +0100 Message-ID: <500defe440e5659dba20f19896440181d1aed178.1718204529.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Ian Stokes Modified function ice_aq_manage_mac_read so that ICE_NONDMA_TO_NONDMA memcpy type is used when copying MAC address value from AQC buffer to hardware descriptor. Since (in case of tools) both locations are in user space there is no need to use ICE_DMA_TO_NONDMA memcpy type that was used previously. Signed-off-by: Stefan Wegrzyn Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 9991be98a4..df827c26e4 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -380,10 +380,10 @@ ice_aq_manage_mac_read(struct ice_hw *hw, void *buf, u16 buf_size, if (resp[i].addr_type == ICE_AQC_MAN_MAC_ADDR_TYPE_LAN) { ice_memcpy(hw->port_info->mac.lan_addr, resp[i].mac_addr, ETH_ALEN, - ICE_DMA_TO_NONDMA); + ICE_NONDMA_TO_NONDMA); ice_memcpy(hw->port_info->mac.perm_addr, resp[i].mac_addr, - ETH_ALEN, ICE_DMA_TO_NONDMA); + ETH_ALEN, ICE_NONDMA_TO_NONDMA); break; } return 0; -- 2.43.0