Message ID | 20240229225936.483472-25-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 5D9D143BAE; Fri, 1 Mar 2024 00:03:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AB3D43355; Fri, 1 Mar 2024 00:01:06 +0100 (CET) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id B3C1A4328F for <dev@dpdk.org>; Fri, 1 Mar 2024 00:00:19 +0100 (CET) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-299354e5f01so2106351a91.1 for <dev@dpdk.org>; Thu, 29 Feb 2024 15:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247619; x=1709852419; 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=1eW22QZ42KJpLACHXjb2S2ak0hAYtAORjULbMVpXEH4=; b=q5tCZcuJM2+mUFMgyVuWExp+UahYQ1+t2vixpvWBITc89gA5qv3n36q6kmvmKrj9Ll ylqx7M6WCvruD6nDNZB0PgAOQbCGspDvHfeYvtx97KcFTUPzil6xb2i/4OIaCrBVeaJq sGZjHzZGDxRc7SsZQMk8NLvD9vVolW+u4xwoRp4VRyco0oaQuTYvk3l6YnwGXukHxYJM MicNNSa1P18EDsKnyRk2YElis0+IpofFZkiv7xOlAEw/NxwL4uraola8jYxTyJ34wVQf ZtqlbTOX2yi3HxfQbAmkcGk16yPI42q0J8H7+iPBUKPIgXo6/QDhYz4iTNIIMezi29dN Kc1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247619; x=1709852419; 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=1eW22QZ42KJpLACHXjb2S2ak0hAYtAORjULbMVpXEH4=; b=ACD32TRhog1Vs2KFH8OSgoMeWiWhs0CmU5wpTZegIx5vVV491esritU7u+p9B2rtLR kL5mU0qiDJxsDDr3Wa1RIf7ffz9Nt23Qh4hblR5hDBtlg4W+7gB69qyvDlvBPGZEnLYM kVmbEa7jp3T7Cg4nrG5idYh7oTxlzrvhJ+SSjJD8IUBJ4YUDoHFj5sWzA+Kk6AxxMwkX cCoUi9aHkf3ZwxhD1t3Nti5QH2lhKTlgjgcE10vqrewh+CrqyZNCg6LhGR/t6E7Q5mtJ UKzWGgc8C+Z0SPgytU6YdQLvWpLp2E8mhh9cl7B8x025+j5NCemgxYJsqX7r3AWGHpDj wk5A== X-Gm-Message-State: AOJu0YymPHia7EiWdtZGQvjwCwPMN4ZV0RAc2tRogQICcxlu4/pSho4X s2QXRFyWhNPSevK7bEB4bVYqyAJW4Z2hvbVVgtzbzdv5PpT0pbBifP42VclXcPLhUtwk3++cacg U X-Google-Smtp-Source: AGHT+IGZXEeuNB7CagYm1jfy2lKtTo3Hp+lFVYhiNcy45iAHvqoGKxns6z4zbVirdY7+n1n0PkYdlA== X-Received: by 2002:a17:90a:f09:b0:29b:171f:4f8e with SMTP id 9-20020a17090a0f0900b0029b171f4f8emr426150pjy.14.1709247618929; Thu, 29 Feb 2024 15:00:18 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:18 -0800 (PST) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org>, Jie Hai <haijie1@huawei.com>, Yisen Zhuang <yisen.zhuang@huawei.com> Subject: [PATCH 24/71] net/hns3: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:11 -0800 Message-ID: <20240229225936.483472-25-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/hns3/hns3_fdir.c | 2 +-
drivers/net/hns3/hns3_flow.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c index d100e58d102b..332cbb847be3 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -996,7 +996,7 @@ int hns3_fdir_filter_program(struct hns3_adapter *hns, return -ENOMEM; } - rte_memcpy(&node->fdir_conf, rule, sizeof(struct hns3_fdir_rule)); + memcpy(&node->fdir_conf, rule, sizeof(struct hns3_fdir_rule)); ret = hns3_insert_fdir_filter(hw, fdir_info, node); if (ret < 0) { rte_free(node); diff --git a/drivers/net/hns3/hns3_flow.c b/drivers/net/hns3/hns3_flow.c index 7fbe65313ca2..96b91bed6b18 100644 --- a/drivers/net/hns3/hns3_flow.c +++ b/drivers/net/hns3/hns3_flow.c @@ -2416,8 +2416,8 @@ hns3_flow_query(struct rte_eth_dev *dev, struct rte_flow *flow, } rss_conf = (struct rte_flow_action_rss *)data; rss_rule = (struct hns3_rss_conf_ele *)flow->rule; - rte_memcpy(rss_conf, &rss_rule->filter_info.conf, - sizeof(struct rte_flow_action_rss)); + memcpy(rss_conf, &rss_rule->filter_info.conf, + sizeof(struct rte_flow_action_rss)); break; default: return rte_flow_error_set(error, ENOTSUP,