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 76BDA454EF; Tue, 25 Jun 2024 13:29:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B502A43260; Tue, 25 Jun 2024 13:20:19 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 7070F42F4D for ; Tue, 25 Jun 2024 13:18:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314282; x=1750850282; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Kr2eux/tARZNlSrSTb6rBIyu51120rztQbEDT/G1U/s=; b=bBCOHGLr9MIH50HFzQyB4kw4XEC4QFu9T2d9BuZJ/ubShJ4isUY5eiNh QkuOlzhzSM8Oot07JOmxDQE26cbijAb365dwKrPFumCL1/7MUb47kVogn XkbsVSqMpI8vwurnzFaBw4RsOHm3I7nZFnaDNof/uj2DeE43MIKrBJpO4 6LKh86ylEfRXqDZG4lmvWJ5/QNJFYompeZ2DqGhJJ7ieEueg0FBIYm5h8 ofYqe+gOgSvvfVYwIxbUyYIKwfD2LQ70eA2Js0bMnmi5YVOpdE9D4wai4 2urN8kUdLuQ7f3gmdc2xsvGNlBJXsKEGhV7bEhskE1XOTBukPGBE6K70N Q==; X-CSE-ConnectionGUID: TjEhEd6DQFiOJeG9uqYkKw== X-CSE-MsgGUID: nc6Gelt4RBOJRfzfHYHacQ== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080629" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080629" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:18:02 -0700 X-CSE-ConnectionGUID: GKjNDMxuRNOLiSIr6gf+yg== X-CSE-MsgGUID: 9WucHuNgQAqtKgZjTI/IDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719729" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:18:01 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Stefan Wegrzyn , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 113/129] net/ice/base: adjust memcpy type Date: Tue, 25 Jun 2024 12:13:58 +0100 Message-ID: <65c5ad8c49c2ed704f7fe3db5fab28c69d22706e.1719313663.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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: Stefan Wegrzyn 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 95cb79a011..5d943dfa2e 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