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 439E443BAE; Fri, 1 Mar 2024 00:03:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04B264334B; Fri, 1 Mar 2024 00:01:04 +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 6B5D24325B for ; Fri, 1 Mar 2024 00:00:19 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-299dba8fd24so1099064a91.2 for ; Thu, 29 Feb 2024 15:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247618; x=1709852418; 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=qlT84LLO8F031Gnwzj2I+iXnNWFtKWuZ85KZacOSKt4=; b=TzhHX2Ewt7WQ8T7DQF8dPRwjSH2cNHQoudBuJAoQ3anozxQKQ/WqRg4hDrlJgbC5t3 Iuo11yUbdECiZ1wH/PV11mgfiJSrI8vfCge8RpBmP/n2SoPAKwNBHHh7xWwSTVyutbUf 1zN6/KzplqR9NAGUsS9KyCDmPEc6tw7htcMKdUndTX5uZsCO2RvraifXyRNFS3eJ6qdU vPRSvbCIEyMS6cwdm4JBth/v8olEqvLzrkh09rruSBzL3cJfZl3uXfFNhRQ2xqLtwXnv UuKFoyn5zKYLXW4u+5HHDaWANbjXiQSLF/gRaRd8PxSKC4TOJ6D6FUgWGmNntbTeXaNh KLEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247618; x=1709852418; 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=qlT84LLO8F031Gnwzj2I+iXnNWFtKWuZ85KZacOSKt4=; b=tYZbC8Pwgw1UoGN7GUY6/p749C0o9eEekbqjMugah7xvas0pyQ1x7dNHG33KRohchE KMCsjw46mXyD6mS1Xflt1kp31cTPA/36YDibXBDODH9nm7jcn9g4dKyFUPwRqH+uOw0I b1L3DlIF7wG2Id6B0R3Xi0q4iyp1+wwoQU0J5mVIGfYYg7PWdJr4FoqKZ54cJMoFNqdk I18wXalWZvpbiGN6QjgfLVwdAfrDskL9bZ2jQRAG7AJj9S0d7PrDLmF1Zmt2SsGoGG1Y ksmilXnNWqWLQFWvX5kSa1/2kHO2bxkRgXn8ofbmBnV1ndAmL33GGBWt2kQmv5MGguKW OVQQ== X-Gm-Message-State: AOJu0YyQO8Z77LT+x9T8Np0gvkuQQtDcvzRta4cO1dA/KQ7aBluEEp4U fOb/bbcFHe2vHQCxJspEuM28S+VB6ogp0Lhnhgeuy1KDTDTXqD9CjaTwoC8qYurJ1eEG0UG7Igo w X-Google-Smtp-Source: AGHT+IH2JJuLQKbcXyYrsTr6V6Z+mrC7Q59AkVEYd/75bXdeE2cQne+tfiPxmA5SwtheASurqbI1mw== X-Received: by 2002:a17:90a:688c:b0:29a:bdbe:5859 with SMTP id a12-20020a17090a688c00b0029abdbe5859mr35286pjd.7.1709247618066; Thu, 29 Feb 2024 15:00:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:17 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sachin Saxena , Hemant Agrawal Subject: [PATCH 23/71] raw/skeleton: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:10 -0800 Message-ID: <20240229225936.483472-24-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/raw/skeleton/skeleton_rawdev.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/raw/skeleton/skeleton_rawdev.c b/drivers/raw/skeleton/skeleton_rawdev.c index 6e99d35536d7..967b3964f24a 100644 --- a/drivers/raw/skeleton/skeleton_rawdev.c +++ b/drivers/raw/skeleton/skeleton_rawdev.c @@ -245,8 +245,8 @@ static int skeleton_rawdev_queue_def_conf(struct rte_rawdev *dev, skelq = &skeldev->queues[queue_id]; if (queue_id < SKELETON_MAX_QUEUES) - rte_memcpy(queue_conf, skelq, - sizeof(struct skeleton_rawdev_queue)); + memcpy(queue_conf, skelq, + sizeof(struct skeleton_rawdev_queue)); return 0; } @@ -281,8 +281,7 @@ static int skeleton_rawdev_queue_setup(struct rte_rawdev *dev, if (skeldev->num_queues > queue_id && q->depth < SKELETON_QUEUE_MAX_DEPTH) { - rte_memcpy(q, queue_conf, - sizeof(struct skeleton_rawdev_queue)); + memcpy(q, queue_conf, sizeof(struct skeleton_rawdev_queue)); clear_queue_bufs(queue_id); } else { SKELETON_PMD_ERR("Invalid queue configuration"); -- 2.43.0