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 A417943BAE; Fri, 1 Mar 2024 00:02:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 063E443312; Fri, 1 Mar 2024 00:00:54 +0100 (CET) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id 1111343252 for ; Fri, 1 Mar 2024 00:00:13 +0100 (CET) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-5cddfe0cb64so1054225a12.0 for ; Thu, 29 Feb 2024 15:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247612; x=1709852412; 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=HX8Ot6SL4tB+H2gFpJuiQhaifUbfQO0fgvjzDvysrds2irRwlqPiqjSN2TxW/V0v15 //Wz9TfpCuVeOoAZ67OsCa9HiZm40ofMJq1ID5awy1anxZqTYFfVtAIqSvdrbbJqFDMM r9jV1HXnbguUQKKmd3EENhfiqQCc2UgrRdmT8EBZt0t1hLxxVOfLrSqt27kGodBIZaDf jPMPMugqvUedNU6X6ysQXNkT3C1K+oUjCOSLc5m9sb8GAUfb/A1q6HaFPmbs5KQjlFMp WsPpOQ0qL4A3+ji6IiNHzSqwkaAROTiSUawQJhiGaN0x5y5WsFJaScxOGbmkxeL2/yYw GAHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247612; x=1709852412; 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=ItfTo9qtU7W2x9acXvoDpkDS3skYTlVM6qK0TWKiI2aslY75vi7VlgNqHXN8nCl7nr EBtGBPtn7FceRGpF13Xsv4LEy87pcPxbsjmhz4y9YagJFuVRIfh1ClGtUzV59ta2R/I+ OE0L7smkWutfb8YspLdFePbPo8zcL93SSWk3Ozlidjpuu4QtZxrUTxbO3DA4by++Pupl qVcR8GtauOO+kQa0ScSkGTd9gIKTkteHAtP/ySflSGMst8OLK2IxNvPtZurCHHaaXkYx IU6uXnR3ry3zF9FAGCqS2WfrWqhfPVS8jSLGU0+hMJXoQx2xchaEso8nyN9lsWToP6Cc NLyw== X-Gm-Message-State: AOJu0YyDkpagGpWrOEkqLaMf2mbgSAvcdG5kOxm+mMWsT6t5/s92bP7T XNT3xSwkdYPUfZJofjgtXOPlA1a2Z4P522RbIY88qBg74DSoExyEnCzM9SeWWM1QOhzaWG5s7xY S X-Google-Smtp-Source: AGHT+IEyBm2eYkZy1pwW+sbv+YQArJayPAOxIBK02elXjJN42UN2ZUVIpIwy3Hbx3G1/aWpXF70TFA== X-Received: by 2002:a17:90a:a516:b0:299:2927:4d2c with SMTP id a22-20020a17090aa51600b0029929274d2cmr17549pjq.48.1709247612383; Thu, 29 Feb 2024 15:00:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:11 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tetsuya Mukawa Subject: [PATCH 17/71] net/null: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:04 -0800 Message-ID: <20240229225936.483472-18-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/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