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 DD9D342DEC; Thu, 6 Jul 2023 19:59:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67BE341101; Thu, 6 Jul 2023 19:59:43 +0200 (CEST) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id EDCE140A79 for ; Thu, 6 Jul 2023 19:59:41 +0200 (CEST) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-262b213eddfso1570220a91.0 for ; Thu, 06 Jul 2023 10:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688666380; x=1691258380; 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=m1kj2VeJcZqIAw9h43pjTDR5w4VfXwGHu3Fm6xmI8y0=; b=Iilffo8NHeBV+drq5Ms4vtGJICuqVWPF8lHdLMZqXvgNlUKURhxtDYWYSwwau0Z+Hx vdIs42LW8Qw93xqBw++0cvB/mlfviX1YNgSDi9/ZGqGCXUafBA8dy0qTYgI47dkgvwqn ODnYQlS55xyuaEy/t9AUTK7jkKUhrH8WdDouz3dfEUdFZpitHl3H7+2YuiBXEV2gdU7o ri5wVRYtm7Zq8WVRaNCd3xvzTXOD5CpgeblYV84/wKaA9dDip9vGhTbyP/Y5AkhnZq8m CgE6MbxXTfUX47VmxoLR0nAPwOvXr09Cm+UHn5zaOfH1OMU5SEEimLxRyR5Cnlg/MbDl q+MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688666380; x=1691258380; 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=m1kj2VeJcZqIAw9h43pjTDR5w4VfXwGHu3Fm6xmI8y0=; b=E6WtRpHZziYUl3R9FUeJ8IUCjoKyiZuve1OMLP9ri6T0TcbYkD44LSLEW+1l86QZrO LQb9YE5VCh4TJl+P47Fn5AejKP0HXXuIlq02btdFpZq/EJ6uvMQ5k5llFkkjDZc75rQ6 Qttt3dbQSLwMiQ9GB0ZJ5vG3MQDwqIZUUn2CwB9fjT/I8yP4wah4/NWkQngpC2kOYYxI OrklzuGs7ugHsIQxiJgQohERGx81QF656U19b0sXdRtKDEUD9CZvVA6Ybwj95r5jtC8Z TXzizGd/9RyGjwdeSCvkRfxQCOD0PxKMRNjtF4gfURG5s2wzzsyLZ1OnOkcv58lsEgTh p5Eg== X-Gm-Message-State: ABy/qLY0B+QY+mqbBPt9lvqLh4AZzVmY4k5bqJg0RoVlwwn+12QIAZXW Ea4JjJKdwTCCjNZaGoijxFnboV5mggzJD5GZVU0= X-Google-Smtp-Source: APBJJlHO8y9vSxd/bWvbqSwhNCFYASfqLGCkEfNqh60xwr4ujNxD2vd23OxI3rJ5Cwd2DOfDM72swQ== X-Received: by 2002:a17:90a:8c01:b0:25c:18ad:6b82 with SMTP id a1-20020a17090a8c0100b0025c18ad6b82mr4153826pjo.21.1688666380597; Thu, 06 Jul 2023 10:59:40 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id nh8-20020a17090b364800b00256bbfbabcfsm76464pjb.48.2023.07.06.10.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 10:59:40 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 00/14] Use rte_pktmbuf_mtod_offset() where possible Date: Thu, 6 Jul 2023 10:59:24 -0700 Message-Id: <20230706175938.62721-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230505174813.133894-1-stephen@networkplumber.org> References: <20230505174813.133894-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 Run the coccinelle script for rte_pktmbuf_mtod_offset against current main branch. v3 - rebase to cover gro changes Stephen Hemminger (14): gro: use rte_pktmbuf_mtod_offset gso: use rte_pktmbuf_mtod_offset testpmd: use rte_pktmbuf_mtod_offset test: cryptodev use rte_pktmbuf_mtod_offset examples: use rte_pktmbuf_mtod_offset net/tap: use rte_pktmbuf_mtod_offset net/nfp: use rte_pktmbuf_mtod_offset crypto/ipsec_mb: use rte_pktmbuf_mtod_offset crypto/qat: use rte_pktmbuf_mtod_offset crypto/cnxk: use rte_ptkmbuf_mtod_offset common/cpt: use rte_pktmbuf_mtod_offset crypto/caam_jr: use rte_pktmbuf_mtod_offset net/mlx4: use rte_pktmbuf_mtod_offset baseband/fpga_5gnr: use rte_pktmbu_mtod_offset app/test-pmd/ieee1588fwd.c | 4 +- app/test/test_cryptodev.c | 66 ++++++++++--------- .../fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 7 +- drivers/common/cpt/cpt_ucode.h | 10 ++- drivers/crypto/caam_jr/caam_jr.c | 8 +-- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 2 +- drivers/crypto/cnxk/cnxk_se.h | 5 +- drivers/crypto/ipsec_mb/pmd_kasumi.c | 16 ++--- drivers/crypto/ipsec_mb/pmd_snow3g.c | 35 ++++------ drivers/crypto/ipsec_mb/pmd_zuc.c | 16 ++--- drivers/crypto/qat/dev/qat_crypto_pmd_gens.h | 9 +-- drivers/crypto/qat/qat_sym.h | 9 +-- drivers/net/mlx4/mlx4_rxtx.c | 6 +- drivers/net/nfp/flower/nfp_flower_cmsg.h | 3 +- drivers/net/nfp/flower/nfp_flower_ctrl.c | 4 +- drivers/net/tap/rte_eth_tap.c | 3 +- examples/l2fwd-crypto/main.c | 16 +++-- examples/ptpclient/ptpclient.c | 18 ++--- lib/gro/gro_tcp.h | 2 +- lib/gro/gro_tcp4.c | 2 +- lib/gro/gro_udp4.c | 4 +- lib/gro/gro_vxlan_tcp4.c | 4 +- lib/gro/gro_vxlan_udp4.c | 4 +- lib/gso/gso_common.h | 11 ++-- lib/gso/gso_tcp4.c | 8 +-- lib/gso/gso_tunnel_tcp4.c | 12 ++-- lib/gso/gso_tunnel_udp4.c | 18 ++--- 27 files changed, 150 insertions(+), 152 deletions(-) -- 2.39.2