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 A979B44093; Wed, 22 May 2024 05:31:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8F4740A67; Wed, 22 May 2024 05:30:39 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id DE06F4067E for ; Wed, 22 May 2024 05:30:32 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1eb24e3a2d9so120727245ad.1 for ; Tue, 21 May 2024 20:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348632; x=1716953432; 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=e3gFFKu0curBrX3++ZjRWmj5hwHWW3i+kqg5CyMDWgs=; b=IrYebMQasvARxLNJaV5MdxhYrg5ogPd3cmgds1j5MqlE4olMwj3D+EDDwVlmfo8/MJ eDuUXyIcTWfMDEjjlNBR2Sec9VSAUi4TUsWzZiTzoEGglXW3g9LtNSf7v+UbIObqyRxa rNMjXW2pwiN4Iq9xwDdgIi+4uOHxEQ5RBHeMe2XU67MJpwMHZvjg4PNgYNZ0LcA1KrwO CYD7yBGw6U38y5E7iiWzeFKg38m7r9SUnceHgpopy2mnWTXwpxQ5/jkCcHORp5+fbYIN pP+IrziJiPwDuY/WXnDORAsCbfnpDT/poKRvbQ3PVkP+GrUX/4ynRH2rcB/59fIDXgV2 fpaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348632; x=1716953432; 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=e3gFFKu0curBrX3++ZjRWmj5hwHWW3i+kqg5CyMDWgs=; b=cvOUt2WPWvijydUKwUhtegT7dYPyyAiWy1favy3Ncz3uE18lXaVksSSd7Q8P6ZUi7u IvpNVSWKwCcpDpBqUxuxGcqpW8NUEcwigkTJfvSKQH1h8Mak1RDUuqc35XBaQiZ2Z3rk SnkGY7Md7EuywxMBDgIgXwPKijfjxfvpGs1T7t2+Ap/XQapHodZPuRaODmnHl4yK6hPD Xsh55q96kPOzOK2OtmMirOoqKooK4A5+X25ort/C4qOi4gYzEQnhGPpI7NLXPuEw+TI7 fUe4ld4zt2wHHaYZ8o9Ia9xRXRde4YeUnAO1qoyWTVS7woUhezoDpEO5vvev7evfTL/g bKxQ== X-Gm-Message-State: AOJu0Yw6P/d7WODSYNZ9esQZbxTUzgSHqmEmXP1MfeJHJF/CCcupVSgV mEydCz4A/x8OJcV/J9uTarzWNFFkXK2582WTTW5g1v0XBo3aOt55ocIwu94GafFYr+FSHSwg2oF v+rw= X-Google-Smtp-Source: AGHT+IHqlmm7gcyauq/qhNhqkJg7kb27WIT3OgAbOKkvui22nNSHQ4O6MEC3UKpeLIBk92dilUVDDA== X-Received: by 2002:a17:902:dac8:b0:1f2:f63b:4795 with SMTP id d9443c01a7336-1f31c9651bdmr13256215ad.14.1716348632163; Tue, 21 May 2024 20:30:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:31 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson , Vladimir Medvedkin Subject: [PATCH v5 08/32] lpm: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:35 -0700 Message-ID: <20240522033009.143100-9-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 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 46d8f71a2d..242695dd4d 100644 --- a/lib/lpm/rte_lpm6.c +++ b/lib/lpm/rte_lpm6.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -139,7 +138,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); } /* -- 2.43.0