Message ID | 20240229225936.483472-63-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 514C943BAE; Fri, 1 Mar 2024 00:07:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F361D43383; Fri, 1 Mar 2024 00:02:04 +0100 (CET) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mails.dpdk.org (Postfix) with ESMTP id 3DEF14331A for <dev@dpdk.org>; Fri, 1 Mar 2024 00:00:54 +0100 (CET) Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-5dbcfa0eb5dso1392114a12.3 for <dev@dpdk.org>; Thu, 29 Feb 2024 15:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247653; x=1709852453; 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=JOANpzi1ifQoaA4VhE1b6CgmCmpwuT76cyLQX4CJIYs=; b=DMlubYdH4gF9sVsSYhUVoQVC1TYh78+/qFvHi90oJtrz2AN3aG1uJvuVe6ehEBHDDT yuIq+NKUIp7ueQtV3r51eBtN6hC99Hg++dCN0c+AQSbHL9UHYCeg9CraTwkP3c6FIzpo MYrNll36JgZt3jYYldzWERtY+lJ7rSsGcvXg9pbiS10h2BQpkHUQOnrSt8WTwaBmE0pN hJ+5FVyCFpSKfSHPrBjoZdryqPxO7fcKmVs5MdIwAiP9Q2Z9QO4uCCwPVoNHXFZslozi +ug/6loTLX2w3bZJSNXGhHmUzISlmjlWElK4gt8f6ClzNvUeP+ZZ8bMUNCPTljMCmCaL 6uNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247653; x=1709852453; 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=JOANpzi1ifQoaA4VhE1b6CgmCmpwuT76cyLQX4CJIYs=; b=syHOZSxg9RJjkBQ2kGjPc/MIEk4eH9ZeZ3JhVldLPjNU7FQP0/wx187d03LuI8Bli5 rFmj14pQBHNEE3E+ZzwBfRsMwUOLX2NIk3p1ewIIJOrTar3fQXN+zSaMnIs59Ugo3LNM /LmONTpOgqyMJ+Txy1f/ll6MTHewDPdWvwHd6r1HhzetatWqcvie0qxyDbmF252Dwa3C HM0S/1EoHWjDFiYY3GEeWhtBaWXl1Ohe/bt8oERpAaS6K+mikhvVO+rdVsKA99jCbCGC mg+c9JH9c6YMBkEsHU9XhOv/dAcXHHAfGSCQ8Q7pQIS1oFWdedJtFNkygefOcid2JqJ+ DSWA== X-Gm-Message-State: AOJu0YxaZY2eMdt/NmsE0bhqUiX+L6WMgeh5MhXmB8mUS0jgA0Q/MmvR D9V56GyYBjqJcKppZJfccr4Gw03+FonmswPuVHxFygFD9l655SNvfj4ly69cjrd1eqGvoetqnqk D X-Google-Smtp-Source: AGHT+IEPW2mVihGibU/z4eXgiTxLTMOYmPZ9feEGtq35XjJlvtniw0yJxMx3NPVHX9VMc6A7ufTm6w== X-Received: by 2002:a17:90a:7566:b0:299:6627:2fa2 with SMTP id q93-20020a17090a756600b0029966272fa2mr32258pjk.17.1709247653297; Thu, 29 Feb 2024 15:00:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:52 -0800 (PST) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org>, John Daley <johndale@cisco.com>, Hyong Youb Kim <hyonkim@cisco.com> Subject: [PATCH 62/71] net/enic: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:49 -0800 Message-ID: <20240229225936.483472-63-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/enic/enic_main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index a6aaa760ca91..a940c160c9f1 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -1221,8 +1221,8 @@ static int enic_set_rsskey(struct enic *enic, uint8_t *user_key) /* Save for later queries */ if (!err) { - rte_memcpy(&enic->rss_key, rss_key_buf_va, - sizeof(union vnic_rss_key)); + memcpy(&enic->rss_key, rss_key_buf_va, + sizeof(union vnic_rss_key)); } enic_free_consistent(enic, sizeof(union vnic_rss_key), rss_key_buf_va, rss_key_buf_pa); @@ -1243,7 +1243,7 @@ int enic_set_rss_reta(struct enic *enic, union vnic_rss_cpu *rss_cpu) if (!rss_cpu_buf_va) return -ENOMEM; - rte_memcpy(rss_cpu_buf_va, rss_cpu, sizeof(union vnic_rss_cpu)); + memcpy(rss_cpu_buf_va, rss_cpu, sizeof(union vnic_rss_cpu)); err = enic_set_rss_cpu(enic, rss_cpu_buf_pa, @@ -1254,7 +1254,7 @@ int enic_set_rss_reta(struct enic *enic, union vnic_rss_cpu *rss_cpu) /* Save for later queries */ if (!err) - rte_memcpy(&enic->rss_cpu, rss_cpu, sizeof(union vnic_rss_cpu)); + memcpy(&enic->rss_cpu, rss_cpu, sizeof(union vnic_rss_cpu)); return err; }