Message ID | 20240229225936.483472-54-stephen@networkplumber.org (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 <dev@dpdk.org>; Fri, 1 Mar 2024 00:00:45 +0100 (CET) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-299dba8fd24so1099425a91.2 for <dev@dpdk.org>; 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 <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org>, Selwin Sebastian <selwin.sebastian@amd.com> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
replace use of fixed size rte_memcpy
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Stephen Hemminger
Feb. 29, 2024, 10:58 p.m. UTC
Automatically generated by devtools/cocci/rte_memcpy.cocci
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
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;