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 D02E343BAE; Fri, 1 Mar 2024 00:06:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B76F043421; Fri, 1 Mar 2024 00:01:47 +0100 (CET) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id B339943302 for ; Fri, 1 Mar 2024 00:00:45 +0100 (CET) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-299dba8fd24so1099425a91.2 for ; Thu, 29 Feb 2024 15:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247645; x=1709852445; 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=d0xS1HxqZHyqHTieYzU8eRvyKFCmyjjNHo1uR4VKVhJcBrhoZ1VOmzKRBWAxicMvbI S85Uec8t/krhzYivMVn+ZDqfDqMwXFrd3wmXCfuYjLq2ItrmOgkYBPI5DOAsoORTlIQc HECHvto/0P9I871T4uvVAgF02hrrK0OWbLGQCgd+PXZvjtUytOFXNFtvUjv0YJLYZM3L BE2KBWbyfHmj3rX65N1vmHwgUCjGyeLRbMDSMXSTyWqNXI5aYHCg5t7+4pAEX213dIuV AWSQUnzcJDPAuwzsvMwrrNiuA11UXk638xzNxfJNtWCtQQNuKevBkbyg4h//EqWTuaQP dX3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247645; x=1709852445; 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=oHjxLXnI7tk+vYM0KwCRQ9MZPv0BW6UOLlEg39B0KEwuG6BtFrH4dG77tRCzAs+Wh3 TgfZCI0LPKFmZ2yf/fU/ppNjp00Lm9WdoHxIx1hbKolTuQuYJfwgKRuKyF7u3/vB+SQN NuyoW+5MYbPBuX8j84Myh/0cZa/9hNTZBSd/M04fCvUr/Dm4LnSa/xRrpHskD4jx1m6d icnj/rz+E07juWicQBOkmb75RuaOOFk9jOwJi8Ch1NHckdByrP14H9bY4d56OMGQBf2k nBUG8fndjSF1Wdz14QAw8y0Yq0sGuYMGZRsRvMNmJmxbOieKjBUXxxkhz0/4Fn4+0QAH j85Q== X-Gm-Message-State: AOJu0YxnYCpvhX7CSRVs4zD4wCRZ0ML9SCUj+5PRxM6rNmfjT3Dn6Snv lcYK4HddO9NpCNgw+sAHS/8EL9wGAEMngXpjQjSuuZIvCREgIGY6rveCiqzl9G6tZgI9sGLV3TT H X-Google-Smtp-Source: AGHT+IF+QdrZJhmOqOSoyFdAb521FmQYmsv8g9w8HRKEluAreVKQmrrdPnzSpW+bmVAARhuASue1Pw== X-Received: by 2002:a17:90a:f405:b0:29b:1658:e575 with SMTP id ch5-20020a17090af40500b0029b1658e575mr34024pjb.19.1709247644841; Thu, 29 Feb 2024 15:00:44 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:44 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Selwin Sebastian Subject: [PATCH 53/71] net/axgbe: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:40 -0800 Message-ID: <20240229225936.483472-54-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/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