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 49FC543C12; Fri, 1 Mar 2024 18:24:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B896434D6; Fri, 1 Mar 2024 18:18:33 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id D095B4340F for ; Fri, 1 Mar 2024 18:18:02 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d7232dcb3eso18704745ad.2 for ; Fri, 01 Mar 2024 09:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313482; x=1709918282; 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=cQ813WsVWHpzK3/vqo3bIHC6lcy9hzlXL62VSfEPdQNWtfCDc0DtByMNEMxcUxDN0Z WNW/+7p5LcvX1PkstXdgCLWZaSsOCGH587qp9LAmgdF2vhUqux2BZmo8h8d28gOO2+xn FjdI8toj2iFzVAXFRHgJwMPpApJquqdykPehAUXVagqKZ0tUZq0QYxk7XzyViUPBHEbl p4yPIG8AAhdzx7QUGf/xEM5crAiQe5krpk3V/7cctsnarkbEI0q7qn+RFyUspnpjJ5M0 +XJodZu4iHZ/bsm8wEaHvU7kqY7HEt/4DuFVL8BD58FBNyIQPFttbb8QMG3lfnrQT/r7 352Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313482; x=1709918282; 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=kYRDCuN33HXHKRfyc0yHi+Xpur8xLQPkPNMaywWTnKqa2awUESxsuHYa73rrUfAs6c 9kQkf3Hgg1jxAsZMpy5yuEzy/iPQgLuiE74RCz7RCYNMbFr0sRHeon9EvduszJGEmUYo sqq4+jv0zZ3buo1EDlGAhFLTOU7+RYk9hdBuzdCEajWymV9lhy8Qfi3mn41E79kGkyP6 he1E5PkFu8uAwixB2Wwcj+NScEQ4dXDiVTm0cCX4smhdj5/y8rBS6+qRg9TeO+TbMzJL vF4eVRYqRcJjdjFEsggqUZcK8PcCbBVgDCiIL1aNNPgS+by6eIFMsLkEGkwGDX5boecr cCqQ== X-Gm-Message-State: AOJu0YwVkTGEAVYPsSTQSU+RCITp0aGltu9+jxUpv8jtZPUDro7IgUJd XomoHP/WHcVrzyA7xESf8dQ3hqg91ZmY74ScyMm5G8Aj+0xitGI9Dg2g9u5tgtGgUaZI8GdSEen uEHeY1g== X-Google-Smtp-Source: AGHT+IFof1lVLtOYnHDBKIfDqW3DKDQCdnE7lsSF8r4EbhzmN+0o40MROHUH1f0J6A6sK6TIMrgnlQ== X-Received: by 2002:a17:903:1104:b0:1dc:a40c:31c6 with SMTP id n4-20020a170903110400b001dca40c31c6mr2052121plh.25.1709313482073; Fri, 01 Mar 2024 09:18:02 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao Subject: [PATCH v2 57/71] net/cnxk: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:53 -0800 Message-ID: <20240301171707.95242-58-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301171707.95242-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240301171707.95242-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