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 A33E443C12; Fri, 1 Mar 2024 18:19:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28B78433C8; Fri, 1 Mar 2024 18:17:42 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id CD5BF4334D for ; Fri, 1 Mar 2024 18:17:30 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1dccb2edc6dso21726345ad.3 for ; Fri, 01 Mar 2024 09:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313450; x=1709918250; 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=ZaMQur2ANK3nI5KoKBp9hmJFLLNTC5nTlo/tTsJ8sZk=; b=a1zBiYvWSLSbFa1j3ujM0HdK3gZTIuPxhRevRdlBOlINpVsyCrMeRfTyGbwBrkDb48 g6t1/Yu7/r41lVzR6KNKwfO+WIe4sAQ+9qP1guj+e/NS/yRskjUuZ+CJ4dhETLH5fVqn FwOlmgEdZsj05/wtEq2Ne9CleaEtVBMkcueNrUTrkX5/O7sAq/CmXoIC4nRGw07/MfyN klsjunYraSwd7mFFJWeTNeSWT6UzrfICMVOB+cT0bTK7MOz2OrmZD2SKxneFC7S8PR1I c3kwELlUlfs4ShJX0gT8wrY26sRziGX2XmLkN8Wp1ArtN1ob7jvofHvtSKH8cMbOAZNV e4Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313450; x=1709918250; 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=ZaMQur2ANK3nI5KoKBp9hmJFLLNTC5nTlo/tTsJ8sZk=; b=BaQaRVZInPOW8qFJZRw+jYQhrOYBSw2X2bqtHMeIuDSNQ31mLI3L1YUZHuHdBDv2Q8 QswWuk3kt50GIAaLVbMLOA+rjMuO4NXnuM6D3KVn3loBIvGAH8jv5ZAWSiSB3n6SYvR0 T1MjhInMv5Yj9U39aEdm77TYXWGyRS+JA6xQ9PrK7Qy2mb6R9JTyL8UV6LNalXkXELc/ zzrOqPOAmN7DvPKguqVOsFsPz66R84ocWGGqZFcQ3057YErU0s8jidKvpLbePM+YE0V/ 7sydIqtbQ4U0BciH72yUKaL106qJLTaBKlNYjSN13N5MW8IxOPsYPoSBcsiDS3lUO4TD UVhw== X-Gm-Message-State: AOJu0YwqCYK0XQIA0nIcVhFXTxZgaD6EuW3NFsqS8jpeC703/O7HYdiI oa9FjMVCdKMSV9IZHzV/ND6qVmjb7sW/jnCs4XwwaDHu/sBNZLWDfAnRaqr63dMcAVzml6HYe3h 2NOQLkA== X-Google-Smtp-Source: AGHT+IGLyp7/qhgFyk00/2DpmuxKkJx+ag01+Zo62yB6r35BMhp0SjNFnAFNveGvYWI/ZBUxKzgzRw== X-Received: by 2002:a17:902:a3c6:b0:1dc:c633:e6b1 with SMTP id q6-20020a170902a3c600b001dcc633e6b1mr1866292plb.49.1709313450096; Fri, 01 Mar 2024 09:17:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:29 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tetsuya Mukawa Subject: [PATCH v2 17/71] net/null: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:13 -0800 Message-ID: <20240301171707.95242-18-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/null/rte_eth_null.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index 7c46004f1e33..fd8b01b2b17b 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -465,7 +465,7 @@ eth_rss_hash_update(struct rte_eth_dev *dev, struct rte_eth_rss_conf *rss_conf) rss_conf->rss_hf & internal->flow_type_rss_offloads; if (rss_conf->rss_key) - rte_memcpy(internal->rss_key, rss_conf->rss_key, 40); + memcpy(internal->rss_key, rss_conf->rss_key, 40); rte_spinlock_unlock(&internal->rss_lock); @@ -482,7 +482,7 @@ eth_rss_hash_conf_get(struct rte_eth_dev *dev, rss_conf->rss_hf = dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf; if (rss_conf->rss_key) - rte_memcpy(rss_conf->rss_key, internal->rss_key, 40); + memcpy(rss_conf->rss_key, internal->rss_key, 40); rte_spinlock_unlock(&internal->rss_lock); @@ -577,7 +577,7 @@ eth_dev_null_create(struct rte_vdev_device *dev, struct pmd_options *args) internals->flow_type_rss_offloads = RTE_ETH_RSS_PROTO_MASK; internals->reta_size = RTE_DIM(internals->reta_conf) * RTE_ETH_RETA_GROUP_SIZE; - rte_memcpy(internals->rss_key, default_rss_key, 40); + memcpy(internals->rss_key, default_rss_key, 40); data = eth_dev->data; data->nb_rx_queues = (uint16_t)nb_rx_queues; -- 2.43.0