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 EE96C43E0C; Fri, 5 Apr 2024 18:57:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D0BB40E09; Fri, 5 Apr 2024 18:55:55 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 54BE240A8B for ; Fri, 5 Apr 2024 18:55:50 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6ecee5c08e6so2099207b3a.3 for ; Fri, 05 Apr 2024 09:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336149; x=1712940949; 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=STHSlKZPQh1XlbjTNR59DiS8xZUPlVsBV1i5smw7KWRQvREAjQ7Eu/MSrjk+1mN4Pq 7pcN0IYBm2lnHfideylp2Y2noPJnrC4Hv29X4G3EI3ZXaxMn/PmwIx9FE8Zj4OSSxv/C tACgv2Ban0xygZXPqRp+kAfM2c7matxh4/QUHoLOZLoSCS3ltvKgd5cxacGhwcxXCXEf gk9NQlCV0HciPdykf5A2SY5uYIRVeaxuCENBIY3pC+KoUYXNL7qSZrmIcY2l8IQRm36F jxoRJVDXpQDQCKAgUOu3Rl1Cdfq5mdSs3gXD5C6LXVueVsOm/whdPRQOsnV2A8QxX7Ed bIbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336149; x=1712940949; 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=f9MFuw4bcOQ8BFP1BHOj+aC45cYQoTN4rv7f2Dghe48I0aO2ZzE8s6Y63c4oYyITWP SMKidNdXrRlwhZVslKSIJ8vjoDrfRT4u+6yuXxkRLJ+04I2jTcUWsy2cCgymTvhYov7C e0dxaHu/mZtZCeaybyO9oN+nXfUe3e0pghdNyc8e5wy5J33YHA7ejRL0VX99lPhMndOq +H2liqhV/VNva2Sb2pn1Bg+S5ZSVZW0yJcTlAoBrneZnTT86mc8SAL9RmVwCV5NaF3oJ +rGmDbpiTgsvyb5fBx+b3bmnxwk+5XrD6CG3QptLoWBxLm3+GwELUjEd0NdkU3m6h45X 2gbg== X-Gm-Message-State: AOJu0YyynaYn4G54ZuN3U7hS/O/V12F4HV21yi/16Ofk0MxFXSQwW50Z 7PJsNeKZ4M/6ormnLqJLxzdrhWiwGgy1EKEHO7PxoiqOcHEByQcazgMwkmnApWs1rz7rgkXAQYe wKWQ= X-Google-Smtp-Source: AGHT+IGxz7NcbUhUKcV/InZc/n9C3rY5SSbqGY5lt0TPoit9Gcg6bcjOytR9b5cgUVssBSL2QEiGSA== X-Received: by 2002:a05:6a20:8412:b0:1a7:427b:8216 with SMTP id c18-20020a056a20841200b001a7427b8216mr2240380pzd.55.1712336149539; Fri, 05 Apr 2024 09: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 c2-20020aa781c2000000b006e6c0f8ce1bsm1728555pfn.47.2024.04.05.09.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:49 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vladimir Medvedkin Subject: [PATCH v4 12/30] rib: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:23 -0700 Message-ID: <20240405165518.367503-13-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 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