Message ID | 20240229225936.483472-64-stephen@networkplumber.org (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91E2F43BAE; Fri, 1 Mar 2024 00:08:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FAC44344A; Fri, 1 Mar 2024 00:02:06 +0100 (CET) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id 3EC1B432DE for <dev@dpdk.org>; Fri, 1 Mar 2024 00:00:55 +0100 (CET) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-5dcc4076c13so1264585a12.0 for <dev@dpdk.org>; Thu, 29 Feb 2024 15:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247654; x=1709852454; 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=jKXeEPMYhBHDvQK7vRP1zadzdRvN9hqz+dJE+GbFZ7LeQePwWEyZT4eZauNg+HcwsQ ID2Gv0BuP7plT57JLDKxZuPxiQ5JJT3E4PyUY6z2BhkkRxnvl72IXrCG+IbChen9OKrF vq/N6rr7DE4GvsdWbOOF5T/Xc6wSGn/kHYGDBcbqC0ScIXQB6Pn6X3ft1evw6LorF8wp /gFleURzzc+aCk9HI1lbL0m/jICZamiYHGDXe/40kcWJ+BSX0nt3LvG30KXkQRbARbTg WQNzP8U/9pfDT0gsubaax6bSyi1h5CAIljRSJMAxr9heW0kCMO1i5nTz6LELEp7unr+d KOtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247654; x=1709852454; 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=ANjmtsZijV485GEHsBxKI4oGoTRiIyH02+kNAZjDIr1PlPW/79OvNbSv7xxyrNN7UF 4etLtV/yvNJn8paXnParQSGPQRaZ0I9F/K8jcdqtkqiXkEK1E8PTMW39GcBSrLpSZeW/ E7105vBLoHP2LFOAlFA+xry/o/UEYx+4Es7DXT2CQo0fLuPW49eckHDFDb73UkdAYgUq VrKLXtynpIdrds5/CYFSkMWGQtF+L1jv4zv7+XY8Fodye5hMMpuapbSE/CdZM4aeWfc8 y8N38fP0y+OMTF6RQchjmNhg0GpIKoBtjoQUULNjR/hHvEEaqJ22fYBgIIbzORCn3eeN J9Gw== X-Gm-Message-State: AOJu0YykhrRl5z7uCK9GisYZ1dPKGwnplQVGpX7BCBVL2nfp1mrgjZoM EqIj7p0ZdUJ52QYHEsqKH/jhUrivgfzULE7OEl8dMQVKVSk+dR2bA8+8Ak1/Q63KIEPbynuL5up B X-Google-Smtp-Source: AGHT+IHdGPOIIf89uSKPx3UcA5gD7Ei9cfBB71tO5oiV04+4m/+1gpdADLgsu/3if9UDg8Y3vA9iSw== X-Received: by 2002:a17:90b:1084:b0:29a:525f:4c5 with SMTP id gj4-20020a17090b108400b0029a525f04c5mr504466pjb.12.1709247654421; Thu, 29 Feb 2024 15:00:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:53 -0800 (PST) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org>, Gaetan Rivet <grive@u256.net> Subject: [PATCH 63/71] net/failsafe: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:50 -0800 Message-ID: <20240229225936.483472-64-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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
replace use of fixed size rte_memcpy
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Stephen Hemminger
Feb. 29, 2024, 10:58 p.m. UTC
Automatically generated by devtools/cocci/rte_memcpy.cocci
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
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",