From patchwork Sat May 6 16:04:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 126743 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: 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 E288042A7F; Sat, 6 May 2023 18:05:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1041E42D8B; Sat, 6 May 2023 18:04:25 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 07D7042D6D for ; Sat, 6 May 2023 18:04:21 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6434e65d808so3205962b3a.3 for ; Sat, 06 May 2023 09:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683389060; x=1685981060; 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=eYZLqmcMVIp38tew4idulcq334VF68FwI/kUdGxlXDY=; b=yw35XVwV4E1+CpJbivb1y0b3tDAMsBj4I4Ak+4Q6pvHpeRyLtaYSK3sKW0cqzmkmbS eZD0S3ytGUKCnDp1fknryPzO1TNjuzH67qhr1JPG2ryVQyYjvbB7SaAfonz/KL7afGwW faot6SGksOj/30C/Q6aqt3J1Uwfdx4G7S5bOT4tHjpWx6L9gG6h8+BkEC4C8Xy7jOpop gieBh8JvXmdXFgForXttiMO6zydKmivUWrEzZWUUWo5HStL3QOy+Vaipu+y+pWBmXApk LaoqKCP7TZEP0iu5HMowifEwAibIH1AGb6nia1inIbY/JAM+JRLc3dYrMKt2F9Us3naR 74xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683389060; x=1685981060; 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=eYZLqmcMVIp38tew4idulcq334VF68FwI/kUdGxlXDY=; b=ADthwUvL1Rj6omu20H2c7AWYF+u37FT2e7GX3XEZbjt2NxnE20PQSb2d//7kUTH8n3 TFSf05Ntl+1WwqzEpNqucUs/3dfY3LSMU5zbbNL/5vk/nRtwDhd1pQg3WDSYnBZDyXt8 aVAdQMLeuQK3Ybfkm6SgxgUcE/6Jir++NWzA5biTZJ+xaYhgMsTYglYCjrb1uXf0auv2 lEjSxsN2VDlKuyH05tz4Q93cgqUuESpZ3Ol9M3NI85YJXrPGIUVpSJCrr3a5L8ncJra9 BKTsnFofunCqKVc6iYG5Fsh1J7J30GI5zY51XruzDVxFfmyNtaCZa3lHdT++h+8mRKcM cpgQ== X-Gm-Message-State: AC+VfDwMJ/ELT3VSCMHwad+EF76179+psoWC5wbzcKS7G/S0s536H7m0 zL7XD6nSaZ/xjt/ijuZJ4WMjkosr24fDTwsXnQY+sA== X-Google-Smtp-Source: ACHHUZ6mSwKBzsBnIh1zwLLVjKIujdqmUiaSLshHZsYxlRIEEMCsA2TjQnpona0eSYQrbVLwufZgDw== X-Received: by 2002:a05:6a00:1701:b0:643:950b:d9cc with SMTP id h1-20020a056a00170100b00643950bd9ccmr6687167pfc.34.1683389059981; Sat, 06 May 2023 09:04:19 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id e14-20020a62ee0e000000b006436ffa3dc4sm3369890pfi.24.2023.05.06.09.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 09:04:19 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nicolas Chautru Subject: [PATCH v2 14/14] baseband/fpga_5gnr: use rte_pktmbu_mtod_offset Date: Sat, 6 May 2023 09:04:03 -0700 Message-Id: <20230506160404.7423-15-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230506160404.7423-1-stephen@networkplumber.org> References: <20230505174813.133894-1-stephen@networkplumber.org> <20230506160404.7423-1-stephen@networkplumber.org> MIME-Version: 1.0 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 Autogenerated with cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c index f29565af8cca..465a65f3dca2 100644 --- a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c +++ b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c @@ -1543,8 +1543,7 @@ fpga_harq_write_loopback(struct fpga_queue *q, rte_bbdev_log(ERR, "HARQ in length > HARQ buffer size\n"); } - input = (uint64_t *)rte_pktmbuf_mtod_offset(harq_input, - uint8_t *, in_offset); + input = rte_pktmbuf_mtod_offset(harq_input, uint64_t *, in_offset); while (left_length > 0) { if (fpga_reg_read_8(q->d->mmio_base, @@ -1621,8 +1620,8 @@ fpga_harq_read_loopback(struct fpga_queue *q, } left_length = harq_in_length; - input = (uint64_t *)rte_pktmbuf_mtod_offset(harq_output, - uint8_t *, harq_out_offset); + input = rte_pktmbuf_mtod_offset(harq_output, uint64_t *, + harq_out_offset); while (left_length > 0) { fpga_reg_write_32(q->d->mmio_base,