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 4256443BAE; Fri, 1 Mar 2024 00:04:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 355F84337D; Fri, 1 Mar 2024 00:01:16 +0100 (CET) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id BB03D432A4 for ; Fri, 1 Mar 2024 00:00:26 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-299a2456948so1154472a91.1 for ; Thu, 29 Feb 2024 15:00:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247626; x=1709852426; 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=U14p3o16DPpdZQJaoD/yjieBVV9R77lJfaIzC2sPjsE=; b=YusOYQ+CDbEfSqQDQSqaWf6Ix2dyxvK1fm/9+RLeduEH4Ypwg1FaBY4zT30XHLJv/D GztrOIOBzo0JZXnTrmtZbfK9BOLPcQQ5s3EBSMM8BwbJRtT8Hmb22jQlBYEGZLKsnM5S Cq7TJyF+M8ZnItEdYwx7h6uRuFJx6RcQY3jdasaUttrUnkSuEVOsIzcxn1A8YHVopXQo C6SQQQF19bCVcA5E6IrBY4zqZWmfqY3Vt4XWE+apsuYvumr+G7vLVcD3ar5le9k338WS wLbg1Wpmxd7hYFVi5G4vvgIyF7R6UCc5MUZLVIyYxRTt1Ae+GXC0B3uYyGERIsX/QxWS bMOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247626; x=1709852426; 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=U14p3o16DPpdZQJaoD/yjieBVV9R77lJfaIzC2sPjsE=; b=aSnheznWRIs8ozU+J9cFtDvjRGJRCXnG0U0fPVxtquaU8U1ThQ79L9Os46UbOHS5C5 R5lpYIJ3KLRevP0TLhaUvEhWumtu301+ILrZwkVJrIl93hrP8YblNyHZyKWdLFdpqt9z 2E/ZNLz8zzBSG2ejOo9fGCGyGTWu/R2lWxa685sCpEX8MFKfe4SK6QL68IffrquGECoS PMkOR8G23nIuGllMTsCl3J9QvqXLS2NeBY72S807KEQvdbyY+03HXIL/+GHBzdDbsdNF IH3UgQpHxYDCVpOXckS5kOR/x28fmYXoUCe5XAT/fcg/slEXNfVqD7Hp9lPSvMCDzM7O uluQ== X-Gm-Message-State: AOJu0YxRjuUTY3CC5n8j0dN7oVjqvhmMdFp2RW5tDvELsjHJoNuM3g4N A0KGXa1nfSvqKf9es1FwELUV+oF8JryGJMKQxFuCDFqn+GYvAyYdt8pn2F69Jl0pKUq+55VmN76 y X-Google-Smtp-Source: AGHT+IEfVseheOZ+kjDVpTwYCJwtG7Pv1HzM7PdzP+Tv/n32tOzMOWCm7z7IKeK40uXXN5depMACJw== X-Received: by 2002:a17:90b:1214:b0:29b:23bc:19a5 with SMTP id gl20-20020a17090b121400b0029b23bc19a5mr33812pjb.26.1709247625769; Thu, 29 Feb 2024 15:00:25 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:25 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jakub Grajciar Subject: [PATCH 31/71] net/memif: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:18 -0800 Message-ID: <20240229225936.483472-32-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 --- drivers/net/memif/memif_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/memif/memif_socket.c b/drivers/net/memif/memif_socket.c index 649f8d0e618f..f5a3354c4652 100644 --- a/drivers/net/memif/memif_socket.c +++ b/drivers/net/memif/memif_socket.c @@ -48,7 +48,7 @@ memif_msg_send(int fd, memif_msg_t *msg, int afd) cmsg->cmsg_len = CMSG_LEN(sizeof(int)); cmsg->cmsg_level = SOL_SOCKET; cmsg->cmsg_type = SCM_RIGHTS; - rte_memcpy(CMSG_DATA(cmsg), &afd, sizeof(int)); + memcpy(CMSG_DATA(cmsg), &afd, sizeof(int)); } return sendmsg(fd, &mh, 0); @@ -675,7 +675,7 @@ memif_msg_receive(struct memif_control_channel *cc) if (cmsg->cmsg_type == SCM_CREDENTIALS) cr = (struct ucred *)CMSG_DATA(cmsg); else if (cmsg->cmsg_type == SCM_RIGHTS) - rte_memcpy(&afd, CMSG_DATA(cmsg), sizeof(int)); + memcpy(&afd, CMSG_DATA(cmsg), sizeof(int)); } cmsg = CMSG_NXTHDR(&mh, cmsg); } -- 2.43.0