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 3C4E643C12; Fri, 1 Mar 2024 18:23:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7E81434BF; Fri, 1 Mar 2024 18:18:27 +0100 (CET) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id 2BDE643422 for ; Fri, 1 Mar 2024 18:17:59 +0100 (CET) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1dca3951ad9so21949425ad.3 for ; Fri, 01 Mar 2024 09:17:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313478; x=1709918278; 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=HJr/Ss1fl8QbNYvRFPhXAtqePcIQdwdA+0iZtITQPSo=; b=ghSFfeWcJQmra2PU61ohzDD0gMJxaTopH2hmLIUswJ2DQYjiULrOAmaRd8N8qiGNjX dxXaZqE4vKWN/Z43hbVcIptM/Q0oKkbFnZ+iAWOXzg9oaFitWh5IXdeT9/f6BrcQ9Iti Nu7Y2+CPf6upXcjREGW7iHuGJgj9HKqu1SGTaRK2YGvFz1fmiieIM+YLr8t69GzzqVxh YBZsHsNKwqTpaG8Mnm98pLFLLKKTmRlo8ds7T0e5ByPVfsuqohjjPzIvrtJlsEit5lw8 kwd/OVMJN+V0B+txW1Anfc8Zk1ikJ6A6XQOWa6kFdTJx4dyijRF/2Ug3+cljr8RuW6Yb k23A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313478; x=1709918278; 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=HJr/Ss1fl8QbNYvRFPhXAtqePcIQdwdA+0iZtITQPSo=; b=hXzRMe5hmcFsRTGBqaAm6OLlP9/hJcqa9cj4SFQ0dPxYf/G3yP69+ko141glsT8XkC JOK8CdLMJ/YHyBSowCzqApVOLewI5DBnL5TBVEg+O7mYxyK4qUq88Mtd0pwgDEH/WzxR WUh6DVpg+PF2odtaVf6CMFE+lVpT4K31DlrIjov35C5qLpBvdKdzO1hWu3In3oFe1A6x E3UcfX3r8YTpEM1tmKpIOxudHRFNk3hxiNM3oMaO2YBRiKeoURtK1uv9hR9UwA7UQq6Y pgpEVGT+qy04Tp7l9AJD9m8lACo9zRLHtWzoIVgGgZaiXo46lTyyQZhac1kJ+HyjBcbU Sn8A== X-Gm-Message-State: AOJu0YxLfuZZB7h9uF2feyY2kHGOsHQhcaz4p50VsBItQ0Ps19reYlvn bzeuTc610qzO86pI42MMojUrfJVSSMuKnYOLJAW1eScpNg0pcTZSMHH4o/42qxGzcZ81825Hmxf tlqZt7w== X-Google-Smtp-Source: AGHT+IHgTziViYCAvph76jyznG0+3VgBls8rhU2wsxaD7AxAHDhQieGkFQKzUk+GAR+xelkg3OL/dw== X-Received: by 2002:a17:903:1207:b0:1dc:df25:76d5 with SMTP id l7-20020a170903120700b001dcdf2576d5mr2969204plh.53.1709313478464; Fri, 01 Mar 2024 09:17:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Selwin Sebastian Subject: [PATCH v2 53/71] net/axgbe: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:49 -0800 Message-ID: <20240301171707.95242-54-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/axgbe/axgbe_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c index dd681f15a01e..7ac30106e335 100644 --- a/drivers/net/axgbe/axgbe_ethdev.c +++ b/drivers/net/axgbe/axgbe_ethdev.c @@ -594,7 +594,7 @@ axgbe_dev_rss_hash_update(struct rte_eth_dev *dev, if (rss_conf->rss_key != NULL && rss_conf->rss_key_len == AXGBE_RSS_HASH_KEY_SIZE) { - rte_memcpy(pdata->rss_key, rss_conf->rss_key, + memcpy(pdata->rss_key, rss_conf->rss_key, AXGBE_RSS_HASH_KEY_SIZE); /* Program the hash key */ ret = axgbe_write_rss_hash_key(pdata); @@ -637,7 +637,7 @@ axgbe_dev_rss_hash_conf_get(struct rte_eth_dev *dev, if (rss_conf->rss_key != NULL && rss_conf->rss_key_len >= AXGBE_RSS_HASH_KEY_SIZE) { - rte_memcpy(rss_conf->rss_key, pdata->rss_key, + memcpy(rss_conf->rss_key, pdata->rss_key, AXGBE_RSS_HASH_KEY_SIZE); } rss_conf->rss_key_len = AXGBE_RSS_HASH_KEY_SIZE; -- 2.43.0