From patchwork Thu Feb 29 22:57:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 137586 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 0F4CF43BAE; Fri, 1 Mar 2024 00:01:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80B1843245; Fri, 1 Mar 2024 00:00:45 +0100 (CET) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 7C06E43269 for ; Fri, 1 Mar 2024 00:00:08 +0100 (CET) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-53fa455cd94so1244836a12.2 for ; Thu, 29 Feb 2024 15:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247608; x=1709852408; 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=oInQe7TJwsx4haBs0A5610somZKv4suPtH2RLw/8KEY=; b=kAUDgV08WzOKQQFKYmnU0C0qtX4bOzT4epY84TSFohPbimyWk/YDlpBW1aLP+vjx8x AejMpqi2nJ9quHFOVTA23WpQkjV0a+k089a0zYnYx2IqGf2rkwYlmdilRgYwPp6byJWd 0hi/trq9kZrm+E/3hloN4uLB0ES5mxrlx2H4FMEn8NWXqzeeRQ1F1g7W8qOfH2Jnx2/O TFnneEI/mUZYZxrSK333fWjnUKAdZ4LUZBVxhxNLnWecENN/NUG435lk84sEmjTOkwyi QTTrVJtLeCdWZPypE7rDdQpQyKsYULKQuLvMViRAImuZjel7tfqrMuaZ7OzFAFsuplPq IOPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247608; x=1709852408; 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=oInQe7TJwsx4haBs0A5610somZKv4suPtH2RLw/8KEY=; b=tTFhSD9un1L42SavXuUZIVsvQ19GHEOMa9VNImmH96eCmA5iV/+RQNmMczt/pX3DqC yWODBB9Dc7UlcFdZnDda3kPdHBLz9WqNGnhM9IO0weCADZsJCGzRLBI4pO3gC6KymKCP 3VpMdBIHcWHP4iOhzQI/zeGKqNZEJQe8N56oa7I9My4tzM+YkwVD+FloaLJs0z0q+gAz aRSNwJZ+Gcf1rmkVIovcKRWNCiZQCEdO3oFtAVOO+PK6o30hhBZVlcFM8e3ZMcs7nRkf HhUAKfMshpYp0KCfW/0Jd5rHMlChBZFRffkFmsj00yrLoiDo+NAevASj+6R38N3CJSw/ spGQ== X-Gm-Message-State: AOJu0Yzq1K+zO3ES9R8rWOadRLhtVWyuHb75zH/KA6Fazr1DC4Gk/1zo Z0lh9uRekwZXB5of73xDU9FU8lSvRPAbqK9inst7Me91iUNONl2kxAbrctleSfSrJt4Tc+aQoqN h X-Google-Smtp-Source: AGHT+IEpPiAEpb9D5TdzQodWlYQyErLKzNzr9He3XEERN1dme6Op6RMXX5dpfvjEoEQiA1V8XsrD8Q== X-Received: by 2002:a17:90a:cb94:b0:29b:171c:a787 with SMTP id a20-20020a17090acb9400b0029b171ca787mr34447pju.19.1709247607630; Thu, 29 Feb 2024 15:00:07 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vladimir Medvedkin Subject: [PATCH 12/71] rib: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:59 -0800 Message-ID: <20240229225936.483472-13-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 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 | 3 +-- 2 files changed, 2 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..8fa5752bddec 100644 --- a/lib/rib/rte_rib6.h +++ b/lib/rib/rte_rib6.h @@ -14,7 +14,6 @@ * Level compressed tree implementation for IPv6 Longest Prefix Match */ -#include #include #ifdef __cplusplus @@ -61,7 +60,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); } /**