From patchwork Fri Mar 1 17:15:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 137698 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 292C943C12; Fri, 1 Mar 2024 18:18:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1966E4334B; Fri, 1 Mar 2024 18:17:30 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id A4C4643252 for ; Fri, 1 Mar 2024 18:17:23 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6e4560664b5so1934400b3a.1 for ; Fri, 01 Mar 2024 09:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313443; x=1709918243; 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=Cge62oB2hQoJVYLWwyWpZK/rL/hv6e9die6Yf0FWap4=; b=BKzgoFMMr0cP32UP6Bd8XCu4s+NHGM4WFmojwM2/6hiD2kuGOI0ooUwt2M+4sAvey8 uaio7UV6iAeo6KSEoRmoyqn5Lb5JXWUzEWJf2X9Q/Vd3opOj6gyWtrd1WUQJI+Jko5aB 1nIpKimkWq2BKqNV6sYPNOIkX0lslDNvbltoDXGprF5h12WY/B+AbO4wyd8Df2ltz6oK UGiSiwIFBYphgKep/HaLSpBfvKAPQsDb94IHQYrkSOnAjk0okeD1qQkEkOnhDdCd9NqF avggkHbke1dWT6NxrcdZDoGIK0aQlMNC9QbfCh/5DtTYqlrPG10zhvsKANj+H0STcKJ1 b6EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313443; x=1709918243; 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=Cge62oB2hQoJVYLWwyWpZK/rL/hv6e9die6Yf0FWap4=; b=IJNMFPoVGKnqN2DXlLyeRC7XhQo/IosJyky2QVTQvYldW4Fmbr917awCWVckun+KYp 1uTaOpPn5ej25zrap+kDNLyt0EXGvLgRiaHtxKXxR4vBal5oihOkNaLDX4rAZSoZoYK5 kmkK55JGi7lTTcmkQ1rsAnlFsArKafh8hAw9NWvuZ68Ivj5ztt7ebdCVQXMjHpqD2AAa BARdu260J2CW9Pxq+Qc4e2CHRKFaQkHs50KOtPj4dh4eZOqhI2R0RCtaYO69qCIm/l4C RrEJ6rL/0Q3wviFpZWgm0+P1SNdL7OcoY2IdShJaNyP6RhG6TEBH6F+oyOxBJN93TTY5 /J8A== X-Gm-Message-State: AOJu0YyFb5GRLc8U7pC1QY/XvDF+9sJg5zu/fa0Zq1IS7uVaEVm8BKvq +zAfn1HqgVqWoq9Ftn4mg8fUdsBd5SgvDR3dtm9+u9UD7Z8GK62NAm5CsagtxIwXxoJFdeDef05 92W9u2w== X-Google-Smtp-Source: AGHT+IEKEVcGw3pO3ZGqLd2uikqX5A/YpX0lP1TCfM5pLHjfHxYTts2Ykzhz5fe75YkUUXZnUkYVIQ== X-Received: by 2002:a05:6a21:a596:b0:1a0:e469:2599 with SMTP id gd22-20020a056a21a59600b001a0e4692599mr2674691pzc.13.1709313442959; Fri, 01 Mar 2024 09:17:22 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:22 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson , Vladimir Medvedkin Subject: [PATCH v2 08/71] lpm: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:04 -0800 Message-ID: <20240301171707.95242-9-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 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 Automatically generated by devtools/cocci/rte_memcpy.cocci Signed-off-by: Stephen Hemminger --- lib/lpm/rte_lpm6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/lpm/rte_lpm6.c b/lib/lpm/rte_lpm6.c index 271bc480dc60..3303463fbd0a 100644 --- a/lib/lpm/rte_lpm6.c +++ b/lib/lpm/rte_lpm6.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -138,7 +137,7 @@ ip6_mask_addr(uint8_t *ip, uint8_t depth) static inline void ip6_copy_addr(uint8_t *dst, const uint8_t *src) { - rte_memcpy(dst, src, RTE_LPM6_IPV6_ADDR_SIZE); + memcpy(dst, src, RTE_LPM6_IPV6_ADDR_SIZE); } /*