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 7008843C12; Fri, 1 Mar 2024 18:23:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09A2E434AB; Fri, 1 Mar 2024 18:18:25 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 94FEF43438 for ; Fri, 1 Mar 2024 18:17:57 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1dc418fa351so26373765ad.1 for ; Fri, 01 Mar 2024 09:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313477; x=1709918277; 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=4IfoUpHHXH5RcaWSJbL8DbKLH5aCTDa+W+jP7s5eerI=; b=JOf7IPrjxETvPqezGoCCEglhIQ/KUDqOBQo2xXy1IpfsnbosAr/9VYZpzhP/w0UDN/ 7srrPA/wBs7M0UmgOJwSHlSdgGloUi83u5IQCAZoyPKwUDoB9D4Y4Qo4AZguTBiLlCrK Cz1Es75dXi5GA7c4vWPm+0uP6eY7JP2cXKTJgPskYWwiQGrvE692ZRc7SCb3VgMLWqSO Rt4/VSiYK7frS4e91h8zrN5Cju570ZgKsROe/XY1I26jjLwrs43DQGyBwwbVlKagv18a SNX6MnNBSLI5cd7RzR2hlC12SmZhjwHYzGFI1JlTVhqePc6bll1C6Jn2G0kw5keT7ZSi lBgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313477; x=1709918277; 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=4IfoUpHHXH5RcaWSJbL8DbKLH5aCTDa+W+jP7s5eerI=; b=Kh4jBV52ZuFDFlKco9GwO0NDjMPV5qKVDo5CzsoNxPUv4EOMGNsEQMJArB9aV+DmGa jKM4bIV1MovW7u95iyh47Ro2W1ThCcofjIdsOfkvkCwE8ZC80uRh3CKLS3LKHg4IVVc6 4HY+11KmhEw4BJjrTTYpjAAFlwkH8CPhbpDRlYNEN7glnkumBTmOOneF1iGuUOPpyqT1 oZcI3mtrHPJWdtl6ZnhBQzbON/vNt3I55XtniMWM1AxwDya9YMmR27glAVOwRbmnho0D G5ZPX71E1xQRLerocRmAk9A7sASMkqJE0Y0XEK4hRvRzUEwxQldRZPqjpH5GwKJMRZmv 4CDA== X-Gm-Message-State: AOJu0YybVmv6wjZBzu/V1vSdOguuq0xYN9KagN/lQ/pPTtiE/N6LPV9k iyD6OnqSzcXtYeUjHGtpH2zLBVVDeXRiSsnD2ua46x9JBQlUf0AQqr85ulKyXv5ONSkk3KTl4ou 8X0tbMw== X-Google-Smtp-Source: AGHT+IEMP5CYO+6UyF6MAHw4pYpwsDAqEEFa83V4q2CQWThtKmAkwEpRckBk6fSwr/jBDwUU4QaxWg== X-Received: by 2002:a17:902:e746:b0:1dc:a84b:e83c with SMTP id p6-20020a170902e74600b001dca84be83cmr3783784plf.25.1709313476851; Fri, 01 Mar 2024 09:17:56 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:56 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ciara Loftus Subject: [PATCH v2 51/71] net/af_xdp: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:47 -0800 Message-ID: <20240301171707.95242-52-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 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 --- drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c index 2d151e45c7cd..8efc0e707a78 100644 --- a/drivers/net/af_xdp/rte_eth_af_xdp.c +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c @@ -2094,7 +2094,7 @@ get_iface_info(const char *if_name, if (ioctl(sock, SIOCGIFHWADDR, &ifr)) goto error; - rte_memcpy(eth_addr, ifr.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN); + memcpy(eth_addr, ifr.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN); close(sock); return 0; -- 2.43.0