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 C21E443BAE; Fri, 1 Mar 2024 00:07:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE28243424; Fri, 1 Mar 2024 00:01:52 +0100 (CET) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 7CAB84029E for ; Fri, 1 Mar 2024 00:00:48 +0100 (CET) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-5ce2aada130so1311676a12.1 for ; Thu, 29 Feb 2024 15:00:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247648; x=1709852448; 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=UM2OrpT4+UHp04Ov4uegsQLMTmqbWeqdZK3vcdu7sH/u9qiyKhfoHETwOjLgMjkAxv uDJUG/xhKC4T7WwOC+i95ri+Zm9MiaQDrfzGYXWBJOEfE+Ggnb3LqJCb+4W4ozIGWmVd 0ftHGim9g+UNqbD1CGGDUO+iceACeAgXOLkQwUST6r41BHkfUTUsjpcJonryyuxKHoIr WaPFhvud5IZzeTC2T/RU6PwDyfypvsWDRC0vPIxURiFgJtIsSBWagK7BBwlfT7arlqxQ p/+xR9RJduXJilVmo4pv/mCSzIwTWHmixoDJ4WuSl/jyIzg0qq7/fGttnHvBvJodh5rv jsZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247648; x=1709852448; 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=XtzNW69VvOjj3VTRVxyNe3HZO8dVIpJIYlxOVWJEsSoFGS9alKyYrPcCRpyohZmKx5 sxHR28/5zH2TVjXTYOQY5tEMPnXqkrbW1dAugb1wkWaMzXtQ1b4KmfEur1oAfiJRbiBA xGaB1Q09s57omMg/9nM0StuSEsLJc2zqGcvwEusLDWeAtMAzy0ISaF8sXRQrVRwjM8HB T3PGUfHxtczd0VB3NAg6LHPXZaILLRKoCxLQzvUZY9Ot/dzePxXVXbl7aDG+ITw/93JX O9O4LBnEgRvE8LBpfWJzmlR7T+gWitmkCX9JmIlwYTkc4bIl8MayULFRXT84MYKbJ2xF 0l8w== X-Gm-Message-State: AOJu0YxhcAdJvv2seviaV4MFrMmpwRwGUo4USzwq5sdQI052ia9ptK2B hLobO8fM3HyjBlxoQI9f6UvA/T7hX6bzCMrFfL5ZScBzL7CKjVz+4F254RcShQoT9zYB+3EUK1S 2 X-Google-Smtp-Source: AGHT+IGcpV4aIYkQncB56AWOoPiQr0M5zq1hWxOKzapfJPz2uZIXkN9+AyUYKxDQ15u0JTkULsDoAQ== X-Received: by 2002:a17:90a:b88:b0:29a:76f5:6557 with SMTP id 8-20020a17090a0b8800b0029a76f56557mr35101pjr.19.1709247647724; Thu, 29 Feb 2024 15:00:47 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:47 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chas Williams , "Min Hu (Connor)" Subject: [PATCH 56/71] net/bonding: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:43 -0800 Message-ID: <20240229225936.483472-57-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/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