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 60B9D43E0C; Fri, 5 Apr 2024 18:56:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A180540A6D; Fri, 5 Apr 2024 18:55:48 +0200 (CEST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id 69B934067A for ; Fri, 5 Apr 2024 18:55:44 +0200 (CEST) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6ed0938cd1dso365395b3a.2 for ; Fri, 05 Apr 2024 09:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336143; x=1712940943; 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=rIYIbSxL/BCBM8GbYg7307lWXBIOhsJQKZVDHnyGh94=; b=Zbab/oQxCaplqprtSev1rgrYVmEcO5v2fIn2oEoamW3+j3y3dDq/H+DIvIlpAdTYXC ++/VjHBi4PdOFAPf8cW0n1BPn9v5pXPZ0rNy8TRQo5WwtP+xN981JPW5Q290pPE0Zc37 x4Vd9fwgzOG766Xcoz75919lNA07wyK+7gcVI7eyG+t0LEQLexxW1lYCFUJY4bNG4tpf wgip50SacV4DCkrcW0hncFoIv5yLMtNBEJpWiaagMsKUnSfcFJ666sRCvbLG/FMCIoU9 xens9JJrNwmmbPgKXqQsgR/5R2Y/ad5A4pl0m1yjC5ZdsPfjBlm7bU/KX9JPOoY+QCnZ T6Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336143; x=1712940943; 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=rIYIbSxL/BCBM8GbYg7307lWXBIOhsJQKZVDHnyGh94=; b=jAUDrHW/xc7FDeDiWUGxy9jFg6gvAX0UXFl061Qc5MmNU73H2r2LB35M3181fR3MTk Pr+NvdAaBufcQM/B9pNyDzk+UZdqJSnhO4dNK9skMxwgaKlMdW+U0bN6yiFuEXqnNRa4 rwmjv0zw60ZqPEvuJOlMO3SO6Tdpbhr35p6+Hr/HRnBzf6t6cr5wWe+QaF32WWJL7Eas Yd57EvUEyh0qxh2/GlCy/cxfou8v7LX/w+6d+5rLNDTM6gSG9ZjmVh/PzWhVh88Ic7EW WmzT5RaUgxFsvczCFsyH43yfq4g5oY5pifvqyl9d82jE0VaLzu3Dg2ecK/v8a9asvmoE zIDQ== X-Gm-Message-State: AOJu0YxDYzmZCfSXjK+dttpt+hZ9NRWkVsha5O0Mg//VtO1g7oM5Wk4p lcApcKRtcB1BwwtnerPHYuU55AbZ30MJd4bCPO55WmprzqurrIOM7hUSABPO9L38GT1eqGUULHG oDnY= X-Google-Smtp-Source: AGHT+IEf9n6k5gLuxzxqbZNYoLd0Mdx9ZgdrVZJbECUyuEqjj2RZqEWhVOExebZDnjcMu20QaMAE7A== X-Received: by 2002:a05:6a20:af27:b0:1a6:f914:a987 with SMTP id dr39-20020a056a20af2700b001a6f914a987mr1914040pzb.46.1712336143645; Fri, 05 Apr 2024 09:55:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:55:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 07/30] net: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:18 -0700 Message-ID: <20240405165518.367503-8-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 Automatically generated by devtools/cocci/rte_memcpy.cocci Signed-off-by: Stephen Hemminger --- lib/net/rte_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/rte_ether.c b/lib/net/rte_ether.c index f59c20289d..761b38f805 100644 --- a/lib/net/rte_ether.c +++ b/lib/net/rte_ether.c @@ -13,7 +13,7 @@ rte_eth_random_addr(uint8_t *addr) uint64_t rand = rte_rand(); uint8_t *p = (uint8_t *)&rand; - rte_memcpy(addr, p, RTE_ETHER_ADDR_LEN); + memcpy(addr, p, RTE_ETHER_ADDR_LEN); addr[0] &= (uint8_t)~RTE_ETHER_GROUP_ADDR; /* clear multicast bit */ addr[0] |= RTE_ETHER_LOCAL_ADMIN_ADDR; /* set local assignment bit */ } -- 2.43.0