From patchwork Tue Apr 2 21:50:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 139042 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 4947F43DC8; Tue, 2 Apr 2024 23:56:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38A77406B6; Tue, 2 Apr 2024 23:55:54 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id C777E40648 for ; Tue, 2 Apr 2024 23:55:47 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1e0f2798cd8so46810885ad.3 for ; Tue, 02 Apr 2024 14:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094947; x=1712699747; 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=jVZMfdmK9ORBag+mN0reyNjwMKd13cnEGDVjXvsAo5X4iZkpX2P8uvuP0MER57dmdj yJUiQFPQWlFlpnXDby1yD6TxpCGv57Sx+Q6p0cVl6HWmeY+PIWK7adI5xUJwfyjztlE5 qvyI6r+tmYHdwL8bds+Arhd9P7/+4+NDS6MLTkto+sr0KfJ0ALGxImDT+95Z7mkEzhTQ Zg/WIeEbIu5Pp538RbUCjWnem6XOTN3BvGzIT3vptwMbXBJoGdqdvCdiyj2Q72kaf/J3 1pUD2b2OFrWSd3teSebCS2N6ZKC7R/XdgSj27Pe3b3qTZZHtk2faL/421rxn80JLLcPU F9jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094947; x=1712699747; 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=fQUs5eybLakp5cVfNFVhyrPPHsrao7J11vPlDyNKvdGkNugvIHmQBp/IxsdScm8ROh 1WjNoQ+6LM9n2nmtHaRCB1FVKeOHkaGMI42zH6Rp9hfsELRKmS79EwrFHhAWYiEIdExd /rZFiOjw0k6Opfl7zZsPeqDRvsOLSLGYG0CfT3GEAL3EqUez44gRCnLvN6l2reb1fuXz wPoAe0Iyx8itzkJ2QJA0CQcx9b367v2Ibz81e+04bkFaGHl8Kjt4ghYqdD1MK5e2hz1v gouDdKcW8Ztz3D+DX3v1lJRnLzHlrlK46v/0ZwXFhZ4sdYBfBimJAIlqTWkFRsQHqtYJ sV7w== X-Gm-Message-State: AOJu0YyNg05FPd7xjRJNDWj67N9wTY7iUEbn5syw/4xqkFIiorHlO1MP Reps6f/zpDW9dbrAD5AmqxRJBanZ1n9CVMrOlbTlyzW+isZOKcw/dSNJNXLn5qv/qwQE7uY2T6L f X-Google-Smtp-Source: AGHT+IH35KHHzhCLMUGFzu85L/xQwlnBOhZWiyIyBvxvngmrxwS7ACr5zrnjM1Z78foj9MS23l6e0A== X-Received: by 2002:a17:903:585:b0:1e2:6b65:ec94 with SMTP id jv5-20020a170903058500b001e26b65ec94mr2575517plb.65.1712094946722; Tue, 02 Apr 2024 14:55:46 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:46 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Bruce Richardson , Vladimir Medvedkin Subject: [PATCH v3 08/30] lpm: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:24 -0700 Message-ID: <20240402215502.278838-9-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 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); } /*