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 2EB1243C12; Fri, 1 Mar 2024 18:24:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37579434EA; Fri, 1 Mar 2024 18:18:40 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 6A02F4346A for ; Fri, 1 Mar 2024 18:18:07 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1dc1ff697f9so21579185ad.0 for ; Fri, 01 Mar 2024 09:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313486; x=1709918286; 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=w4ZGJeq99gzn4mnFJnxYqd9ykfHfsHLb6rRl7FjUkUs=; b=MuCcOU4gpnaB+nbLedElYQmeXHa4qksxgfn4z1uBVmZniQUp7E5XRGwU7U7Bf4qxr0 6+0xxkkYB+mf44NvRlZFQHp5BuhUSRR5GFMAMP2/MfDVApdKho4GCoz3agPF0slNMQ29 xCLcxRH1efGRrq9CWTYq1Oy3n/BoLN78Tur/hF5ScrQK/OZfe0OqpsIADRmlPy2sSSPf raVOT1tFRpedQIGlDAYkkJAmK4nj+lHQmWd+cHAZGwQLHDwX66gh3/vB/uwuBSyYiMmE cEj9jVQLmfULXMkJtLn9rNOS1vdR6Rqnd6goNFVm/SxArCAiRcYJoZCkAoXq7kdh+L/P Dgtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313486; x=1709918286; 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=w4ZGJeq99gzn4mnFJnxYqd9ykfHfsHLb6rRl7FjUkUs=; b=T5jiG6+L1QtCPrXcvXfffhaLx2TEJmMBV91kULYvbE+1xE40YGl7euthjBJ8aJA9x6 veJesLX9yroi8n0JXXPxeVyLDfGHMyNbzncS8Z/qNqnbOVbWndZ5RWJ7XCI8FIgTxmqZ OyuAkOjf3UDB5JH1xVZo05mbmanLv3R+oUkGXM3xc/O4GECn7FwJjIxULvHTRSOlP3uY q0lwGRrO1vqo2AL9dxhVJ8T1XmyLhMis5OqcHNQ6qLh0OTQB72CdP26bsUgT9ystgdXr 2RnAePM1Tcvkm7LB+YQ+hTreATIDO6EIwh8DKAK7dSN4Jysv8w+WUBNztAYRlNEJ5epI 332Q== X-Gm-Message-State: AOJu0Ywkezhf9Ej+yJSGKbMeaVKjFmp939BmSzPxFKWSsNvEpVRcyeoS MK6fDIamshd98yR3wEHL2VueAAVig/dUGwxn9lVnJsddUtN1i+hbwmgNnUrMdyop1TEv7VrwkyT ZwkTFaQ== X-Google-Smtp-Source: AGHT+IHi5y3meCw671XjVbL0wtfTtaKFm7PWh2qPkfv1wZUr6IXGOwoJcHLsk2gW9N+tWjbV2cD9mg== X-Received: by 2002:a17:902:f54a:b0:1dc:af71:29fc with SMTP id h10-20020a170902f54a00b001dcaf7129fcmr2891732plf.6.1709313486675; Fri, 01 Mar 2024 09:18:06 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Gaetan Rivet Subject: [PATCH v2 63/71] net/failsafe: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:59 -0800 Message-ID: <20240301171707.95242-64-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/failsafe/failsafe_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c index 9c013e04195c..47d453ef8028 100644 --- a/drivers/net/failsafe/failsafe_ops.c +++ b/drivers/net/failsafe/failsafe_ops.c @@ -902,16 +902,16 @@ fs_stats_get(struct rte_eth_dev *dev, ret = fs_lock(dev, 0); if (ret != 0) return ret; - rte_memcpy(stats, &PRIV(dev)->stats_accumulator, sizeof(*stats)); + memcpy(stats, &PRIV(dev)->stats_accumulator, sizeof(*stats)); FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_ACTIVE) { struct rte_eth_stats *snapshot = &sdev->stats_snapshot.stats; uint64_t *timestamp = &sdev->stats_snapshot.timestamp; - rte_memcpy(&backup, snapshot, sizeof(backup)); + memcpy(&backup, snapshot, sizeof(backup)); ret = rte_eth_stats_get(PORT_ID(sdev), snapshot); if (ret) { if (!fs_err(sdev, ret)) { - rte_memcpy(snapshot, &backup, sizeof(backup)); + memcpy(snapshot, &backup, sizeof(backup)); goto inc; } ERROR("Operation rte_eth_stats_get failed for sub_device %d with error %d", -- 2.43.0