From patchwork Fri Apr 5 16:53:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139136 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: 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 ABCE843E0C; Fri, 5 Apr 2024 18:55:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A0F9402F2; Fri, 5 Apr 2024 18:55:42 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id AA4CA402EA for ; Fri, 5 Apr 2024 18:55:38 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6ecfd29f65dso1066374b3a.0 for ; Fri, 05 Apr 2024 09:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336138; x=1712940938; 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=Y7jqDq9itjOlJ+//msrHAnc/VdUKNM16cIApE4/K90U=; b=bwhANwriytTFttzGE8F2kIkGUawrmQtw+mruJhCjHmd8KjGEirjRIYY2EvQi7e1Vfw M1yY4i+ra3Zl1H3dwSHia3op1gBVZGlHOS4z6UGvXaU3zF7j9rkttbVjP29Brhs3/NJ2 nGnQBMrjsxLvxVm4f77iVFnFPPUtclo2t0Ll8+yPtOhOF5wPZ/MN8nECy++UJBL4F0sM 0raZi1QCrm7do/9c57inGpPmuqZ+EMdpnnb5Xw1OAgNeaCaTXXoAtLw25fWSvmCwitu/ lIlgdpDwa4Ml/JQr3g6o6UlDuJ1hDHvCH7ll88Mm2jKeBNWSeD/A379aEd1AHBl+kyPh g4ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336138; x=1712940938; 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=Y7jqDq9itjOlJ+//msrHAnc/VdUKNM16cIApE4/K90U=; b=orwtg07aUYhp7DgGqMABTcokXvaz+xnAcCnhgQwa3VjbU4pe902pHUW1GQB9bmPTpN K6kKiCosGTyUVi5R27rpU0AjY+sc+GFbz8YhS8JAucOQLwgGwjt2X5tLekUfnfIEMozH HOmNPo+9lQtxbAzxCUzX0bDupmCVCyeW+JWgNTB8IRBFRTTBIZv/YDACuVHLSvErYJn1 9eL0RkE/585G1CrOV6SRZyW7qMPIbiV+xpbA95exG394A+01aKyk12ip8RbIzOMdPafO +HcA+HD5b4j9XMtSgmQyl14D5jdgDS9Rw2Zm65lbh/mg1lK8I7CTanrm4n2mipl9lgTk RkVg== X-Gm-Message-State: AOJu0YzLYwkP1ewkbAoJMa4E8kBWzJrwAq/T4Hyqxyl+LHSNEp4wO+wp EhxKKR+SWogvhX36y/7f07Zj7kbYGDsLtnwK3CY4knaz9r7vo/jY3MFFtS1W7gAgPI9q6R965hQ p048= X-Google-Smtp-Source: AGHT+IEkU6Qjv9tFLxLt+EgD03/+Up2vgyMhOaRKC6QBD2ocFbFmdNLdpn0DcOpPy0mB8KByIHgs3A== X-Received: by 2002:a05:6a21:3381:b0:1a3:af7c:31f2 with SMTP id yy1-20020a056a21338100b001a3af7c31f2mr2430654pzb.39.1712336137908; Fri, 05 Apr 2024 09:55:37 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id c2-20020aa781c2000000b006e6c0f8ce1bsm1728555pfn.47.2024.04.05.09.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:37 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 02/30] eal: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:13 -0700 Message-ID: <20240405165518.367503-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405165518.367503-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240405165518.367503-1-stephen@networkplumber.org> MIME-Version: 1.0 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 --- lib/eal/common/eal_common_options.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c index e541f07939..07bfaffdac 100644 --- a/lib/eal/common/eal_common_options.c +++ b/lib/eal/common/eal_common_options.c @@ -30,7 +30,6 @@ #include #include #include -#include #ifndef RTE_EXEC_ENV_WINDOWS #include #endif @@ -1253,7 +1252,7 @@ eal_parse_lcores(const char *lcores) /* without '@', by default using lcore_set as cpuset */ if (*lcores != '@') - rte_memcpy(&cpuset, &lcore_set, sizeof(cpuset)); + memcpy(&cpuset, &lcore_set, sizeof(cpuset)); set_count = CPU_COUNT(&lcore_set); /* start to update lcore_set */ @@ -1275,8 +1274,8 @@ eal_parse_lcores(const char *lcores) if (check_cpuset(&cpuset) < 0) goto err; - rte_memcpy(&lcore_config[idx].cpuset, &cpuset, - sizeof(rte_cpuset_t)); + memcpy(&lcore_config[idx].cpuset, &cpuset, + sizeof(rte_cpuset_t)); } /* some cores from the lcore_set can't be handled by EAL */