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 DDDC243BAE; Fri, 1 Mar 2024 00:00:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6200A432AC; Fri, 1 Mar 2024 00:00:27 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 75E1A42FC3 for ; Fri, 1 Mar 2024 00:00:04 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-29a430c3057so1104325a91.1 for ; Thu, 29 Feb 2024 15:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247603; x=1709852403; 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=/Qu1uDcO72pNt9gZI74NAYZ43yqBgR5SOgUCdZ/xFmU=; b=vQRfjx3b/lH82zwv/NoYIafkXT1uyHTv+DNHBBkK+CL5jB2njB97xxd7k9DJpo//89 s9eBFflXfRMQNOTOR8DRFQqa1A8vQF4BlQoaX3yseyuvSq4LEdEUXxVx4dKxDMUwHtcP lJEBBzRdZUtyPGLIMwzx+sfpUvLhOGTUZmGbzOiTs1uQnF4ndgy+OwlZiAhtjvZ6OGtG RwwxyukCxCTZuF681Z2FMUuiOd+VkLEvlPUayIPz7lqKjJlDQnwsFCFHCsjqvzIt1dkN Vw/hmt4k7OQvBv/4/NkH78n9YlipZy92tqoYnHApSz4kbZpBZSiiHSd7SzHnTMuOnpB+ euCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247603; x=1709852403; 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=/Qu1uDcO72pNt9gZI74NAYZ43yqBgR5SOgUCdZ/xFmU=; b=VinT3851GCCj9p1eVdippVKUprtM7r8Wcs1+yOJr2Ak5XvSVqdfVjQ9n0tQruHnm2E 1SB1IqAbnsY675+1mlaYo0UPOimW5lRUkqKrEun12xnvoXc69SH8Rm/0Ok4qEu4nkarN 6sU8mauRLuoatQr1nhLGUP9coiUMPHpuOUWTYqL9rhW1qcZjp2CrDc80bcG2ZJHQb1VZ fo6QAfcKxC05qeTmN+a22ov+y9oyeM9gjzpes8OhEgDZYQKC1fI0cUJjYyUSW+R+a0a+ z05zOlmszSwTBCkb1enbslRgkcLJ1yxQgI4Nwo/tmJp0XtO8W/aR2C6YkPlDGGjKEHfv SusA== X-Gm-Message-State: AOJu0Yx/FaByw9poNhuzZR/EjLXtfiTHEAd0+P1sFipTJB2SifL4A72Z C1ViDS6j+05BvcA3ibiz2XdBlVJL8SI2Clz3KRfBKYzoGj8UTvJYdPXcILhslj0rXf/ly5hju0Y u X-Google-Smtp-Source: AGHT+IEWdDgNGYI5BLePbkLvjhTyu7/toIBs7Cdig2IbXLHfpdAXdIsSNcAhkP0uex7hPHkaxD7igQ== X-Received: by 2002:a17:90a:7503:b0:29a:8de5:a33c with SMTP id q3-20020a17090a750300b0029a8de5a33cmr29375pjk.17.1709247603479; Thu, 29 Feb 2024 15:00:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:03 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 07/71] net: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:54 -0800 Message-ID: <20240229225936.483472-8-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 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 f59c20289d37..761b38f8053f 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