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 190B543C12; Fri, 1 Mar 2024 18:23:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D232434D2; Fri, 1 Mar 2024 18:18:31 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 044EC43454 for ; Fri, 1 Mar 2024 18:18:02 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1d94b222a3aso24805945ad.2 for ; Fri, 01 Mar 2024 09:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313481; x=1709918281; 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=AajPaKn7ygQ2cAj/mS0n9MAjLbXQRA2KL0MgyQghs3s=; b=z3OvKg4ouzuP1JQabatbnZ62DXCzQwz1b589JoKyw8UPkTJYc7S1W8sW0F1VP1Edf7 /1UqJuRDapi9n1a/8lF1Zzmk6iJpVaGJFBYQy9wtb+6pqjIDnIhp64eeDOJcyZ5pQWAq Sqjqx6ijzp6+GxunvXxr7qKBR3Ysgdez79KxH9+trNe9ZLnvabNNWlQNuDkQFG0F0ma1 3+q3IHlj40pyawsxZlbjEBdmJ9+BOJbEShPNZEq9/o5EEdN9UK9TkSEi0M4K/gyBPU5r tfUiAJG6gUo9TrlxMBnBnV3B7VMlEP0Ho+wWUiNfT2fd6XRMFtM4SQNSv0ctryURhZPa kn5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313481; x=1709918281; 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=AajPaKn7ygQ2cAj/mS0n9MAjLbXQRA2KL0MgyQghs3s=; b=uhTpHoKFNcNba1QxkF6kJT8XPYUEycbyuaVNunp/sjdp5sG8vv5p8hzZqEGxCZtBS8 o/X0H1TZvIUMkuLr5DBtOd3n5B8UrejIJN5O4CBSRZbMnU/UiAt4wr6spx7fQjwF7htW E7Gau5+BRQa7UzwgpGGerIb9Nt8YlzyXL3x1BjSC19qK+bcwqgSqY6pwhBpqZDA9koff O0Mbx9m9Bda7Dh+Gtd65Ch/GQsUYMaeO2PgdgU9OfWQ1ReY9zMOB9nJ7PXLldVNAuCAk EzGHgctqwJozg7sMVSDp8rRed7EM8FK3mPelKSb+3lLh8klTY1xmqcbjJ8sQe26wwUJg SJeg== X-Gm-Message-State: AOJu0Yxb7VXfuRT8iJBj2OJsQWZ++b0SanpNz2kRCWTlgBYAW0YmbA64 Z5I1P4+xCF38qxwA0DN6vWqQkyAliA/TyZzeB154eC3W0BfdMj4LOmriaY1nOt89Taf1lhJpDoo cVeP6tA== X-Google-Smtp-Source: AGHT+IEcRgsVFiZ0aNO1UEiQviQPSA20gs76RNJ2Ty8W6znPWlRs5Pb96yD415GfOrYfhngq+/knYQ== X-Received: by 2002:a17:902:7808:b0:1db:e78e:b38d with SMTP id p8-20020a170902780800b001dbe78eb38dmr1935551pll.18.1709313481256; Fri, 01 Mar 2024 09:18:01 -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.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:00 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chas Williams , "Min Hu (Connor)" Subject: [PATCH v2 56/71] net/bonding: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:52 -0800 Message-ID: <20240301171707.95242-57-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/bonding/rte_eth_bond_8023ad.c | 4 ++-- drivers/net/bonding/rte_eth_bond_flow.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index 79f1b3f1a0f2..8ddf5dc80aff 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.c +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c @@ -1539,10 +1539,10 @@ rte_eth_bond_8023ad_member_info(uint16_t port_id, uint16_t member_id, info->selected = port->selected; info->actor_state = port->actor_state; - rte_memcpy(&info->actor, &port->actor, sizeof(port->actor)); + memcpy(&info->actor, &port->actor, sizeof(port->actor)); info->partner_state = port->partner_state; - rte_memcpy(&info->partner, &port->partner, sizeof(port->partner)); + memcpy(&info->partner, &port->partner, sizeof(port->partner)); info->agg_port_id = port->aggregator_port_id; return 0; diff --git a/drivers/net/bonding/rte_eth_bond_flow.c b/drivers/net/bonding/rte_eth_bond_flow.c index 5d0be5caf54b..bb9d347e2be4 100644 --- a/drivers/net/bonding/rte_eth_bond_flow.c +++ b/drivers/net/bonding/rte_eth_bond_flow.c @@ -182,7 +182,7 @@ bond_flow_query_count(struct rte_eth_dev *dev, struct rte_flow *flow, count->hits = 0; count->bytes_set = 0; count->hits_set = 0; - rte_memcpy(&member_count, count, sizeof(member_count)); + memcpy(&member_count, count, sizeof(member_count)); for (i = 0; i < internals->member_count; i++) { ret = rte_flow_query(internals->members[i].port_id, flow->flows[i], action, -- 2.43.0