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 EBBA644093; Wed, 22 May 2024 05:31:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9208D40DCA; Wed, 22 May 2024 05:30:45 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 2E36E40698 for ; Wed, 22 May 2024 05:30:36 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1ee38966529so3618095ad.1 for ; Tue, 21 May 2024 20:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348635; x=1716953435; 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=PGi90epMJ/pclaSLUu7UxclwzRV2+JGVGUTq+rpiSgY=; b=B6RN6SFDq4BFq2F9dCuZhnI9P7sztTgaU8Lvk+Pgp2E28zO4iGztPCnZj4yWgZ1vtO 42amyZr8rAN1nRQq8Oo2LzddSn47Hfrnke3tIh2Zj6LgqxNu867oyREQZ+eg4m99AKFb NKErq1qPZzBjyNhHmP7O08R3CD/lkI0Y+1rF34Nyvf7IHMh5Ib3ywuy9Hh0DWUDU+yy2 hTr9F7Xu51nMlAkYSLH1lf2O5mgLaOYBUjftZUx4Rsq1pThoiuvjrsN0qi2/rU9iMpJM 1Hd0t4UMA5jyDipCfu4w7INTTLmqcY8PRrWGW2yjLPTIjXcvnI3GOhJSn7NwdKrzsoWz 5Vjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348635; x=1716953435; 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=PGi90epMJ/pclaSLUu7UxclwzRV2+JGVGUTq+rpiSgY=; b=Hul6MuInT5vf13pkijAVnvoR/XO5Zn3fe1yt0WYuWe1+muCQ21mD1DyEKDRPPRK6qY TjmNPs5PFKcjvgD0LjvrSgR/gtbx3yzeyUxrjzBFzAxkspv2tPevR4ASJBz0VPjulPIq 0D2gMsSg1J78ciOO7dwqj8KkfvfXOoDcIPPxh6pWtetk4lfz81Ua7I5XPtfnHr4V1s9R vq6PtzzvvVGWTICiH8gS7716NAf6Bn9PI4SlWq9tPzKax/8n3EiD0FRkDASlcN3ku2IN 7NpHPkIRNkBYgMuCHnVxDLtI00JGGl3XfvsO86axbenQRjzgrCOdKkq5thZygQadDqxW SVVQ== X-Gm-Message-State: AOJu0YxjSqo/Ezz5++WhMgAiT556J2zQkmdZkwAnDVB+2igLJUeqrOpa 3D/n673DhflBV/XJEA4lqe2MN0/ZLsx0SnCSSpwBiph/CH1lWKSPWTvnvX9xLAIGyVOhgVg/OSA uaeI= X-Google-Smtp-Source: AGHT+IHowV3UWYCiDvW0z2sxVjt52peoAfxlb5FpkdEgIWiNGlFW7WmulNNpOvElfuze/94rzCaczQ== X-Received: by 2002:a17:903:32d2:b0:1f2:fab9:a0a2 with SMTP id d9443c01a7336-1f31ace2fe6mr12497145ad.1.1716348635387; Tue, 21 May 2024 20:30:35 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:35 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vladimir Medvedkin Subject: [PATCH v5 12/32] rib: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:39 -0700 Message-ID: <20240522033009.143100-13-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-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 09470e7287..a77f6c758b 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 775286f965..f366d3d197 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