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 E26F243BAE; Fri, 1 Mar 2024 00:01:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4922427E5; Fri, 1 Mar 2024 00:00:36 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 7D75743258 for ; Fri, 1 Mar 2024 00:00:05 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-299a2456948so1154071a91.1 for ; Thu, 29 Feb 2024 15:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247604; x=1709852404; 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=Cge62oB2hQoJVYLWwyWpZK/rL/hv6e9die6Yf0FWap4=; b=GvdsM3tsAnyyKq4rRjHZt4xk53N8UOsmtkwbM1k6bPgGgh63XjN0jCqddM539nKfzi ppbBF1hypdlCZ1W7WZP47XH0NsEi60VNES0zeXgzpKIDBoqR1lItiTJWhakzrI3O01sO HNYl0PMUHiObHoIvGtVjoJB3GFEa/iV5tyEoxux28Bbf4d9oSUKXtXI+jVSh1Uefo55i g3fDAgM9fWwlUtycDXbyM9Pxp3IoO72a4DrwrdJK+OcbzKuWZPUq4273zhJG42+ouw7I eewUlGmBOMwFHlmfP+KgjYqKMZrklZiiX3r3VbggeYxUthXmKO9V+FE3ykzpbHXGz3VU ZMHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247604; x=1709852404; 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=Cge62oB2hQoJVYLWwyWpZK/rL/hv6e9die6Yf0FWap4=; b=JvpevWDbDkWvdk+amyRh2FJ+3I4hgJnPS2hVkY6OFlEu/9qKHYAZnb+UG5I/rbWcnJ eUA+58Ws21h6ik8RF2A1FjCnh4cyXe9DSfGWv949XTdkkL2uX4KucMUNGGbCES7hW9Sr QtJrOpAYHmwWD478gv6kDfSVwQtN3R8HmFIKm9P9r3azQx2KUXrQ/mWNFEk9crlFI0x8 bI39O1fLTthG+SyeEbx256Pg1VuNwRd+EJBm5rOS4owyUHmADt8jqJrn89SX2Z5kyvod IEkT1l/oPkTPyvrc+9/80hwSj/rC1N2m+m+bHWWU+NuPkWiuswRy0vEzehQv7I44ZhZp CSpA== X-Gm-Message-State: AOJu0Yz2LHxIx3t2aq0AXQjH0316lFINPnMoHA9O2ZRUSt6ulLTQjH9e K5Kp66HXXQ7wt3XJsGKK6W72Jo4Uv8cmPwAAJNCOTKry79Vt828ttt3H7XMJsxWKXevMAvLPS9m 9 X-Google-Smtp-Source: AGHT+IFUifyV1y59NErZWH96B3uoSkKO6R2zoJMvZkmErIHPqWZ7HyzYFzvXJYddMOGk0vvX9BFgNQ== X-Received: by 2002:a17:90a:db12:b0:299:3f10:20ba with SMTP id g18-20020a17090adb1200b002993f1020bamr28622pjv.27.1709247604313; Thu, 29 Feb 2024 15:00:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:03 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson , Vladimir Medvedkin Subject: [PATCH 08/71] lpm: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:55 -0800 Message-ID: <20240229225936.483472-9-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 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 271bc480dc60..3303463fbd0a 100644 --- a/lib/lpm/rte_lpm6.c +++ b/lib/lpm/rte_lpm6.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -138,7 +137,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); } /* -- 2.43.0