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 09E5A43BAE; Fri, 1 Mar 2024 00:07:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A13343435; Fri, 1 Mar 2024 00:01:57 +0100 (CET) Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mails.dpdk.org (Postfix) with ESMTP id 56E5D4029E for ; Fri, 1 Mar 2024 00:00:49 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-5d8ddbac4fbso1296172a12.0 for ; Thu, 29 Feb 2024 15:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247648; x=1709852448; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OEuU8lt6jliQgN/Zn/GWIVDAUxPwXJnWEslwIl4Qoao=; b=tK8eNmrRaRI+RbZj+UD5W2/2PRlWhrhUerze50n9qV9bo5Nqht3Dxr1RRbOh99DWo2 O4xGo6uS2NaBrbmqHacuqzhJZxsgD6Ug2Bls0ED5YxZhXT1XnARUBnPvBzoPd+RpCXdM dSPHZ5MajRjS/aZeJxq/2dSVKaJ3RWU3+cZz97dQQyYJJlhgDr+kYB36gokHYgM47wbc CLKKqGfPVHK4F2n58F0sKouTR9wJmQAdhnNTACg0uXYQzW7xkj2nS7NVhz/lVvHI0H4h IFdy0cjl/pBI1tTWxUwRWEg6eDi9qmUEUXMy6S9ljGg0HOhsOqWWWsC3OMX/1eQuRGvd mQow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247648; x=1709852448; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OEuU8lt6jliQgN/Zn/GWIVDAUxPwXJnWEslwIl4Qoao=; b=rOgkBB8/OsRG3ZXQh1lnXs6pt3c9DoHDzPIqh/+gs3oS1nOfmY2Tyv2DeY7Ji+OXQs n68AhYo7GE1oFvOFmZPDpJ4fR1nNs+jMGkD1p7I6wt+GGRLU+D9gNgv/ma/JzKJuCuuU ZM2WwlK9a+u/W8ZfI1L8H71Y7oMc3EOdmP7ziCWpWgaaafcBojnMRpZ2/qkSv+PmvWaq VWjueaqtzVn9NUZ3hBh+itPY2lGOnwVvaIxNKIfik+Fl/nH2NVpDu4CjP3mLAqel/45K EvHEPe9BeC4tgPC1ggkMFqKsscROHjTrgD4tWh0ao1AaqRZ8ajdXITdAoTKOyXOLnVW+ mmaA== X-Gm-Message-State: AOJu0Yw/bQRCo83XcNoQHePcSbLalIfVKl1N70sru9+3kXojPdd8gPio KZsR0mSyRrM8EfnWIhSSOU0QD2Cih2MeXbOVvcWUfkovDne3d8v6DAcVz6OoodjiDzF++CSzwfp v X-Google-Smtp-Source: AGHT+IEuNQ9A8JbUCMLAQ0adlWOuHa3MRQj+aj7kYPO+xut6tmLe0NnBpoUyb6FPdgcPEA91wD8lUA== X-Received: by 2002:a17:90b:892:b0:299:5401:89d2 with SMTP id bj18-20020a17090b089200b00299540189d2mr18809pjb.45.1709247648611; Thu, 29 Feb 2024 15:00:48 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.15.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:48 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao Subject: [PATCH 57/71] net/cnxk: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:44 -0800 Message-ID: <20240229225936.483472-58-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> 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 Automatically generated by devtools/cocci/rte_memcpy.cocci Signed-off-by: Stephen Hemminger --- drivers/net/cnxk/cnxk_ethdev_ops.c | 2 +- drivers/net/cnxk/cnxk_tm.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c index 5de2919047c1..ee407b177ec0 100644 --- a/drivers/net/cnxk/cnxk_ethdev_ops.c +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c @@ -451,7 +451,7 @@ cnxk_nix_mac_addr_set(struct rte_eth_dev *eth_dev, struct rte_ether_addr *addr) } /* Update mac address to cnxk ethernet device */ - rte_memcpy(dev->mac_addr, addr->addr_bytes, RTE_ETHER_ADDR_LEN); + memcpy(dev->mac_addr, addr->addr_bytes, RTE_ETHER_ADDR_LEN); exit: return rc; diff --git a/drivers/net/cnxk/cnxk_tm.c b/drivers/net/cnxk/cnxk_tm.c index c799193cb89b..5c8b0997ca7c 100644 --- a/drivers/net/cnxk/cnxk_tm.c +++ b/drivers/net/cnxk/cnxk_tm.c @@ -300,8 +300,7 @@ cnxk_nix_tm_shaper_profile_add(struct rte_eth_dev *eth_dev, uint32_t id, profile->profile.pkt_len_adj = params->pkt_length_adjust; profile->profile.pkt_mode = params->packet_mode; profile->profile.free_fn = rte_free; - rte_memcpy(&profile->params, params, - sizeof(struct rte_tm_shaper_params)); + memcpy(&profile->params, params, sizeof(struct rte_tm_shaper_params)); rc = roc_nix_tm_shaper_profile_add(nix, &profile->profile); @@ -373,7 +372,7 @@ cnxk_nix_tm_node_add(struct rte_eth_dev *eth_dev, uint32_t node_id, if (!node) return -ENOMEM; - rte_memcpy(&node->params, params, sizeof(struct rte_tm_node_params)); + memcpy(&node->params, params, sizeof(struct rte_tm_node_params)); node->nix_node.id = node_id; node->nix_node.parent_id = parent_node_id; -- 2.43.0