From patchwork Tue Apr 2 21:50:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139046 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 63FD043DC8; Tue, 2 Apr 2024 23:57:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AD3640A84; Tue, 2 Apr 2024 23:56:00 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 78B7D40272 for ; Tue, 2 Apr 2024 23:55:50 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1e0d8403257so44267915ad.1 for ; Tue, 02 Apr 2024 14:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094950; x=1712699750; 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=JMMc57EmBm3QvFsIwGpYCGKXEUef8PfgsUxafS5B/4J9Q+n5Wz8isyhMkSmmILBrke kRipbKScMnlODx9ibYFE3yaBIL2FRT9ca0N6MVvc4plHWKrBDvL3/KXrfxNU//vb+OaQ iCc/3TB2iO65lv9br9ZNJgH5oI0QCs8iNt4mxN2S/xQF/ymc72ipONNQo6jngrrikRxg yTO2dGmjKZO+QYNyJuCRq5jkd+JDEKtrKTfWs0Mw3d3jbzSnLxF1he+CIUqSkgVIlkf5 UY2IYCigsYk5OVXy+UPczA8IPTbgwN96+tgtyLbclsEYC1m2TMhSPUFxGlyUMSG842+t A8vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094950; x=1712699750; 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=m0qpd5sT4gKQMoRCrtnWSO/cgCs4NWombrrzj34PxNe7csXs7/lEJag9g9sQukdMBQ rAhPTLuoMzeT9/dW+X57V9RukZF83FRUA1qfzsxw0rYZlAv8rv8GFoLV6Mmh9MKaJqxo ahIHfMsZENcWpBnw5tneBarZMsT5f8KvcNujFCY7VdYzEV13VDEhTet3y/HRByoTdUe9 zNLKEkTw0Le4UDI9n/rekoq1ZCozyhNqUBv2dLtJBT4HfV30y60pMi1Xklul88HO8olw s3Ka2vRLUoxvJjFF6YBQJAm7k7MxiFKj574GXJYFYjSwsSXrytLrwMR8vIW3jckyuPvi r5lA== X-Gm-Message-State: AOJu0Yx1bdEOzh+Y+fEbckatAwI6xQytvxJ3RAhR9phryXM9EfuQ3mKK LSj0DBMora1s3XMX6TEdobKySSgIrKCVqC67cRAeHaBRYUu6zItJ1bJ12Wkd1Bu/E7r8kURYS7E w X-Google-Smtp-Source: AGHT+IEeB1Vs2ihxkXhU0QWfLWlVNcehJwJ10RwX8pjRuGbRwFXVSlEOBq9HhYeuR1ATnSU6GgYq8Q== X-Received: by 2002:a17:902:da8f:b0:1e0:b29f:4699 with SMTP id j15-20020a170902da8f00b001e0b29f4699mr16315203plx.14.1712094949764; Tue, 02 Apr 2024 14:55:49 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.55.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:49 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vladimir Medvedkin Subject: [PATCH v3 12/30] rib: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:28 -0700 Message-ID: <20240402215502.278838-13-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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 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); } /**