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 4396E43C12; Fri, 1 Mar 2024 18:18:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62DBB4336A; Fri, 1 Mar 2024 18:17:35 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id BDA0343326 for ; Fri, 1 Mar 2024 18:17:26 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1dca160163dso23219905ad.3 for ; Fri, 01 Mar 2024 09:17:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313446; x=1709918246; 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=jbZuCt7Kf6cf5KLurWbbpI6EGCXfBw+iZwwJae+YM7U=; b=LvWZPf5kSQWVNqK1jJrBdabwvvLwoGmYAGIiy0OkaHZ+/byrSC7R6mOZ2slh/yDtLK ftcpoYSBVtNx9JWVhnpuyWGhMNPNC0QHVeRCZC7iyBshyCoYCbaJ/Z4Domb/6FhJTKO0 EnObpAaVeYFukiHWcrQlfjUGNYQvf6Y/qWNZAvyrK8Mydd9ooQreRC7bral5EjeQM/oa 6b0UTSdbT8EzNaFOHGRPyspvNmfO3CMTLrgEUG2BuEN8/Fmr3+LNHYIBTT2HL3IlwlXU +WVQ+9a0Kj98ZnpETPre0INEDeuho2D4H1fK95FqLhHloGwsE/y87gaGUNqL+0biaJSL dbtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313446; x=1709918246; 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=jbZuCt7Kf6cf5KLurWbbpI6EGCXfBw+iZwwJae+YM7U=; b=oDBQevBMHVZyXHj4Vxokah19yPo8X5kyrDWAgyuuoJrSKBMFXJ6YY5hH0zxpd7eO1P 0KRKv5i6Df8WW/oNBIHWaohPvVy1vyezE0c7ukjADNDaD/0rpoR6vrDa/+X7WIAkmUP2 +ZpdLVWuwGe8JAnkyLVNIx4/mrZXBvXZQoAS8jrvXKskFphyFvOTdMKzB25DYuyAolSi VjWFf04zXPuYamcsHlal99erQrpz2h6JV6BktemEyKSjbLohobqqQTOBXLcShbeEJqgI gV26gz0xBIEJR858XVXehtepZrsQWgqLnHGLNudLFrhfnYmKujHabGgip47Hq/cA0JLa MIBg== X-Gm-Message-State: AOJu0YyOoUFbhuy7FHBbF6CCGa63BMbxMZVY3/rlZT3x9lSexP2ED32B TGDJQq54hi0EFWzQ3T/75sAZYGBlay0X3IhN7WltlrzMqrdSQO56JAc64QQTzjAtM8cZqoLsvWW h1hDtig== X-Google-Smtp-Source: AGHT+IGKq3R0PtroHAysh6RzmWzXGA6fIBahFvsqYT5QJwFer1MRomhOC72IFTVQKlt4sl8w/IFClA== X-Received: by 2002:a17:903:32d0:b0:1db:cbff:df15 with SMTP id i16-20020a17090332d000b001dbcbffdf15mr2615131plr.9.1709313446054; Fri, 01 Mar 2024 09:17:26 -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.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:25 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vladimir Medvedkin Subject: [PATCH v2 12/71] rib: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:08 -0800 Message-ID: <20240301171707.95242-13-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 Mostly automatically generated by devtools/cocci/rte_memcpy.cocci The fib/trie.c was relying on headers rte_rib6 -> rte_memcpy -> rte_vect since rib6 is no longer using rte_memcpy need to get rte_vect.h Signed-off-by: Stephen Hemminger --- lib/fib/trie.c | 2 +- lib/rib/rte_rib6.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/fib/trie.c b/lib/fib/trie.c index 09470e7287cc..a77f6c758b0d 100644 --- a/lib/fib/trie.c +++ b/lib/fib/trie.c @@ -9,7 +9,7 @@ #include #include #include - +#include #include #include #include "trie.h" diff --git a/lib/rib/rte_rib6.h b/lib/rib/rte_rib6.h index 775286f965f2..f366d3d197f3 100644 --- a/lib/rib/rte_rib6.h +++ b/lib/rib/rte_rib6.h @@ -14,7 +14,8 @@ * Level compressed tree implementation for IPv6 Longest Prefix Match */ -#include +#include + #include #ifdef __cplusplus @@ -61,7 +62,7 @@ rte_rib6_copy_addr(uint8_t *dst, const uint8_t *src) { if ((dst == NULL) || (src == NULL)) return; - rte_memcpy(dst, src, RTE_RIB6_IPV6_ADDR_SIZE); + memcpy(dst, src, RTE_RIB6_IPV6_ADDR_SIZE); } /** -- 2.43.0