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 69DFC43C12; Fri, 1 Mar 2024 18:21:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C334943446; Fri, 1 Mar 2024 18:17:59 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id DEBA8433C8 for ; Fri, 1 Mar 2024 18:17:41 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1dc49afb495so22719125ad.2 for ; Fri, 01 Mar 2024 09:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313461; x=1709918261; 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=EKKaomFtnMdMBb0uZe6CpbF9AvVejTehN35kiR22XTQEUpMwsaA+hlQS51u7TEQWJU Z2G6v2opxQiHzYabOCdgIlkeGbLU0Slr1qyiAwiEQz0agWr4/e4ozRaLsuCyax3+f2Ak E7dVwsiX8py7bIH3UNoUy2Hp8SGNcMv4RGYgVvvOnP2qw6Mbb9dwMqB/sR64cTL2uDqL 65gIoy28Kl3+upzMo+GgkTdt57mwlX3PqXCpY84ukzM5Z4onD+y5vjXwTocXQiSo7R8V ecei9Fbz3Pma6/D2cW3Fwnfwy0PNELNLPBOK4fFGvlXeG5A6FIx4efnNgsXhxDs5g6ns CVXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313461; x=1709918261; 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=Q8e2o/VZsOP6az/XlS5EXtVlT3KAhYFAm+MObnrLIILlZTX95gtOduGxAThGyhy0PD E7Y8fWdTTRxrV8KwCckiqO5mYPQfOI+IbwcDuM/zn6eKAPPm4a/YAD16All8E/mpI1zn 6iHEfAIezIIScntVrG3gd6l/RRv1HVz5Exed1MvDjEaw3CkBvMK4z7t2xZhZV3fa4OuZ iXKGZAu/ZnoCy/ZNkWlMAc/xyfUxkJsv2HYOcIlKeAFAlPWxhNBnuc0uFdO/5YsMdR6i kPe4KM+3hgiKXxir/dbwTNX3RW+ysp9103xZOi8VLxa4LN/cTzxbBWvYOmfWPxAwPTH1 RNAA== X-Gm-Message-State: AOJu0YwM35pMV/2Yp8b9nFolAVg2LpLlAjGlw3/ijw8F2x9s2a6KV194 cqYorGtVHrPQPm58v0Pn0G13zmnkJH7Bwug/wi4tAjrVeRnsNcKho9H7IyopvjjWKdiIssaYU4c Tujvvig== X-Google-Smtp-Source: AGHT+IGh5HmPMqEjLfRrrXQV8ozF6B7xX5EVuGVPw/4VaAqT74Y5gZRFH54FPfEdN+5U1VZHmWwqew== X-Received: by 2002:a17:903:1251:b0:1dc:f157:51bc with SMTP id u17-20020a170903125100b001dcf15751bcmr1553106plh.3.1709313461191; Fri, 01 Mar 2024 09:17:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jakub Grajciar Subject: [PATCH v2 31/71] net/memif: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:27 -0800 Message-ID: <20240301171707.95242-32-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/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