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 914B144093; Wed, 22 May 2024 05:33:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2F7A41104; Wed, 22 May 2024 05:31:19 +0200 (CEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id B596840E64 for ; Wed, 22 May 2024 05:30:52 +0200 (CEST) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6f447976de7so1927362b3a.1 for ; Tue, 21 May 2024 20:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348652; x=1716953452; 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=zNS7aLtyCDli24heg8Dm4wy3jnSbwozzV2yM3fsLcFc=; b=MnMtT6SiULNHsEUVi8opeD0pvKVX28oJkm2XF5BUoGET+DlyDcOa31tKLfTLHeUecR rY337t+uaxnzOx1Qkn/XC1DsDqNNrMonaXjy/gFKkjr9g77QhE9vhXmdrUOz3iyqICTl 0iBWtrqw5zpfYNSJg8O4vXx+assTBtfsJwxkHe/z/Crky8OC0n6yzyFn65GzVjqipyn7 fsgQzdskthn7uiJxkon/J+s0rlzkP2ZMhow/fXyudjjFW8fDjS3tpi3UCz37CAvCmrvQ Ug4T9XkgasStofa4hL1UcTW11pOgXYv0MavxhXJ4sr7C1QiPZaAYr3CefQ7XmIkLJmYd KPsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348652; x=1716953452; 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=zNS7aLtyCDli24heg8Dm4wy3jnSbwozzV2yM3fsLcFc=; b=oGwidUMIl5PiG9zsY/Owf0PTyJ9M6Behd0HrGul4KqFKAMalYZEOk1mMt4n37XNTYS DygKa/3zdjThLs0F7c9bBvZzFKB6V4QCKKaiZdS19zao02piNpkd3FpMJrFNYCv+g8SY hnux69M2Z/C5XSo5eDvELis7v0fQgDtlR6z1alWOLV3tfcNBvaiSX2Vk0dSq9uMMIUBD Zd/tQTqJGEhbgL5NLC9l1yqn2yNcFKuo1W+4iICU36KVCq5VfkAt84PxXYyggYjiGkgV 7khsHyiSmSgNoFa6GcflLmOGHpa7Ma++qjcpnGomlXe0DR/9O3tG+h8oW6pi2RveQky5 nBDA== X-Gm-Message-State: AOJu0YynlZMs77aGzhptpR6rwOT12UGLFAVlgqJZPNlEz/RrUhptw1Jh /0zXLqu7ZVMIUH6oAYqSWSKSOI7C57g8t/6uV3hiTIrQoRlXMJjssX6bE3R+ke872bpkJpoGYlO TBSU= X-Google-Smtp-Source: AGHT+IE/wJVAo//gBTrEVQUXLSAju7ESKtgfHFvIoqRgXmKwAW9g/vSTXfKRtqWPs4X83I30bW69yA== X-Received: by 2002:a05:6a20:5a95:b0:1b0:278e:34a6 with SMTP id adf61e73a8af0-1b1f8a594fbmr791906637.49.1716348651792; Tue, 21 May 2024 20:30:51 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:51 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tetsuya Mukawa Subject: [PATCH v5 29/32] net/null: replace use of fixed size memcpy Date: Tue, 21 May 2024 20:27:56 -0700 Message-ID: <20240522033009.143100-30-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-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 f4ed3b8a7f..82249cbe19 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