From patchwork Fri Apr 5 16:53:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139142 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 DB59143E0C; Fri, 5 Apr 2024 18:56:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6FBD40A81; Fri, 5 Apr 2024 18:55:49 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id C573E406BA for ; Fri, 5 Apr 2024 18:55:45 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6eaf1005fcaso1791915b3a.3 for ; Fri, 05 Apr 2024 09:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336145; x=1712940945; 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=e3gFFKu0curBrX3++ZjRWmj5hwHWW3i+kqg5CyMDWgs=; b=b2goyMYK/uqoAX5pHghT77jO5KfwklIJRLsFriVYOEKgerclTO/7O4WKsPtaw157R7 pETU/6taAm7kbayRa5VHgocfVD8bmdawm0VEOvbBsVDk06uz2SB1NxIx31b5qj26eHdi CHQ37JclI5RbSrEBLjXTFKuCwVpgrRfmPWsXpXwS/lfh3oghvE0K9HUTv8gY7ZET4VbA Mj7aoTFbtLth4S5UVvYqSeRAlUcjVbdaxYeadh9vit7O1JDEhLli3ZTqY5OzQlqxOqWD oyFYf2+kcWiogtNX8Q7WpYlQq6ctsV/SFPdBFTIUsMwgkL4TeD/o6CtqfXvC3D6dlaEI jBjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336145; x=1712940945; 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=e3gFFKu0curBrX3++ZjRWmj5hwHWW3i+kqg5CyMDWgs=; b=CCn4eWnS+IiPupCOGoztPfdPQG06r1vyHlNnJeKtAQs78K9Mvxwnh0k7f4dvvCHdGP SKSGv88Rp5fovZzQGBlyivLpWUQ8CG9bqRRQ8EKBwmV6pF0FnNUQSGoVIj6bz9FUFLhK abUx/4wHKTiWSzCBQ7JIK+H5CuCYfS3/WWl4coMbapdjt2WtCMDEP0xPDCzcWFQTcCpy KLnP8+eMC8L/leYLhwYEZm6WgUkWmrTIuA6ZC1ZHcpi1pDmoaH60t428/9xF5A4YZDYO sa+0FexdT+5NU6eeJzb0EpFw/jv/kFgWjZ93uW6xtxx8N30gkPMtP/vohoUomp0U51+g EY4g== X-Gm-Message-State: AOJu0YwXTWo4OJBIbTklsa1bQERssxwUDMaQyjNJbCzIG6p/9fgRfVEB I9HgImMyjMPYgXh8wDdNXH7Ls1LY2SmWp7xB56/j/b1W6PqZldyTCOzyaLLzcZeDuUQFM3ygY8h 61vA= X-Google-Smtp-Source: AGHT+IFjx/542R0SqNPyqP3+0q7/g1jcxQOC109e6w4IoWwfIWKlcxxnnlQ9Dp3+DHusXuY9yQix5A== X-Received: by 2002:a05:6a00:139c:b0:6ea:e2fd:6100 with SMTP id t28-20020a056a00139c00b006eae2fd6100mr2137710pfg.30.1712336144931; Fri, 05 Apr 2024 09:55:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:44 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson , Vladimir Medvedkin Subject: [PATCH v4 08/30] lpm: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:19 -0700 Message-ID: <20240405165518.367503-9-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/lpm/rte_lpm6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/lpm/rte_lpm6.c b/lib/lpm/rte_lpm6.c index 46d8f71a2d..242695dd4d 100644 --- a/lib/lpm/rte_lpm6.c +++ b/lib/lpm/rte_lpm6.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -139,7 +138,7 @@ ip6_mask_addr(uint8_t *ip, uint8_t depth) static inline void ip6_copy_addr(uint8_t *dst, const uint8_t *src) { - rte_memcpy(dst, src, RTE_LPM6_IPV6_ADDR_SIZE); + memcpy(dst, src, RTE_LPM6_IPV6_ADDR_SIZE); } /*