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 73B5643C12; Fri, 1 Mar 2024 18:20:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6206B43417; Fri, 1 Mar 2024 18:17:51 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 8982043389 for ; Fri, 1 Mar 2024 18:17:36 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1dccb2edc6dso21727245ad.3 for ; Fri, 01 Mar 2024 09:17:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313456; x=1709918256; 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=gsz4tyMAtLl16fvu6yVNVnU4uP+NVitcYy25FC4cm0vNzL75AxKMC8sDTv5eAC6wAb qasbo5G6vaqZLYby82ATCyEk/tLus5biC5lJF9Voe8i4eAHOxyGTP5yu88nxHvbN9Gie W96ErK8FzXVVhibCvXUHiTWLqYeYYExzN8mn77+2BDsTKHpWD9ZhA1ZTmTM95Sru6ob1 u/fZTJ20jWn2aCWHRYF6czbrTTtR2AH/F8IfYXNC/jAQ2ZeRvpXTliu3CINqPXCufZPp pvadYfJGWvTn6Gwwwhfpjm/vK4pdN9VGAcpFtq++F7wRkWF6SdfBNfS9NqydrcTsgsOj 5BTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313456; x=1709918256; 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=Gjk5bnP0074XQWI2nIN+DGdcGz+E+NVE99Zc4GV6EdM7/VtaJYnHM5LIJrFPD0yOJD U+zr+tHvbgEEKlLup1L5kgJwTB3tTTbiEdLYv1IJs8C4hbqK+s/R/c4o76UoPh8Y5YOK JhJWhfZR9tQbQWQHZZSREF4RBJC9OWI/7zVML5k31Ijfd/mT8TrhO2ITnZYS/KtpV+Ox 0miHCOUT6ndAJgSqACmdVxycIzUfZm8epIOMP1NvitFmcz3vCLXZFT5TFIXSqcEUxPX5 WlcsIHbi+SjLNKoNLZHf/h4q3UjDrYERxiFkEwGOOIAlDjjE7vAYlkwmkujOwmSBv3bp peRw== X-Gm-Message-State: AOJu0Yzg/RFzIsdjsuR03No2QfN2s0f3zIKA0vxqZerzvtb73qmLKHK1 lHaakrkIwNOKh2c/xR64wR/bAxXFPqbZBfczrhlvjouIOK0VB9KdcP3MKU2JloK4HD2h0OoEP1U 0dKh5rQ== X-Google-Smtp-Source: AGHT+IFkWaiGk+kljo347tIgOKL4vnwX9VK7JmAHbnjiK4MQsqANgjIIJUKje14xnw1DoLopFMTrzA== X-Received: by 2002:a17:902:e80b:b0:1dc:bce8:6e23 with SMTP id u11-20020a170902e80b00b001dcbce86e23mr2742953plg.7.1709313455805; Fri, 01 Mar 2024 09:17:35 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:35 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jie Hai , Yisen Zhuang Subject: [PATCH v2 24/71] net/hns3: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:20 -0800 Message-ID: <20240301171707.95242-25-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/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, -- 2.43.0