From patchwork Thu Feb 29 22:58:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 137634 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BAD4343BAE; Fri, 1 Mar 2024 00:07:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33CDB43441; Fri, 1 Mar 2024 00:02:02 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 4714B43312 for ; Fri, 1 Mar 2024 00:00:52 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-299ea1f1989so1113453a91.0 for ; Thu, 29 Feb 2024 15:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247651; x=1709852451; 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=xv2g9Jo+DqiSnwHtWo/W83oWOJcmG/jpHUqtxWJGkFQ=; b=nnqZp3+vzvx7mG02iPCOKXWuU4T8AwpVnHUTmBoV6MOPDB7wRnxC1yl7PPU7vIA7NC PZKcgauyhUuN78jkcXF8Qj6UQw7/pFqSaO5DkFp7dbXZ/cYu0AO7c9QTDDlVg4RTCG/A zNlKAraWzI7KvHVG/fAY7R0p7Fd3qPpDcHkUk8uhn21u7uJJIkLnsF2T3AdxU+0msS+y +cvmXkNk3MYhUvh0gdtKuVXrXcDloBfE40F1pqgv12bifL3olqEJrmYaC+U7u8CH1hGP qZ02xFfVSpGf/EoMPs65su5nYotcip2RXSojWKgBFUWn0I6y1FPTq7ICtI7ZeQEzlwWz No2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247651; x=1709852451; 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=xv2g9Jo+DqiSnwHtWo/W83oWOJcmG/jpHUqtxWJGkFQ=; b=OvT8kLDXEb4T2a+AWYMCih9rITTyol8BlqyMYr8meUPXN1gM8s/w1ydAwxYrgLPpql 4afuTErVb0zh9X3PgbAVbW49VLGJBIGGO+Buv8TNBUUA38y6FG/oso0dM+BnEnC9gLqC Q9aEnc5nV2Kc32Za2e7y/Z3yrrxjhTISDZdrEK2G9cAr0A3SfVY+3jPDJXVw6K+uCpgB nAgvqLGYTiFFKJjduinjCAvMLKpJIvOdPtoyfTmxG3GljPHdIUpBBwEYNdbNZSUehYsb aqcjoUpqy4TFEn+jgL8gY1WFJkzjMCcL0wuCmBeXRqFhz3qNSIRLMDnGCA4oADDh285v oh/w== X-Gm-Message-State: AOJu0YyEe+OKH5zcN4j/ZnV3XQRYR+vWMAUz1BIHEO3P8m3Sm4Ni1UK6 j8Ph2Zm2dk6MjAVMn2ZCaN+xg24IaSLHAa+zw3YZYwvIg5NOy4O0DGQxTsHE4yd3miIr1wtxoFp b X-Google-Smtp-Source: AGHT+IHbH8sweHEmNK6GI++/wOmqABMZ4GEYN1zhJfWJ2Uc0XaCulVOpiHyOBnY87AkdglCvYtiF5A== X-Received: by 2002:a17:90a:f60b:b0:29b:2019:9577 with SMTP id bw11-20020a17090af60b00b0029b20199577mr20445pjb.41.1709247651420; Thu, 29 Feb 2024 15:00:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 60/71] net/dpaa2: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:47 -0800 Message-ID: <20240229225936.483472-61-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 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/dpaa2/dpaa2_tm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_tm.c b/drivers/net/dpaa2/dpaa2_tm.c index 8fe5bfa013bb..1749b1be2295 100644 --- a/drivers/net/dpaa2/dpaa2_tm.c +++ b/drivers/net/dpaa2/dpaa2_tm.c @@ -324,7 +324,7 @@ dpaa2_shaper_profile_add(struct rte_eth_dev *dev, uint32_t shaper_profile_id, NULL, NULL); profile->id = shaper_profile_id; - rte_memcpy(&profile->params, params, sizeof(profile->params)); + memcpy(&profile->params, params, sizeof(profile->params)); LIST_INSERT_HEAD(&priv->shaper_profiles, profile, next);