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 D46B442DEC; Thu, 6 Jul 2023 20:00:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 068EA4301B; Thu, 6 Jul 2023 19:59:51 +0200 (CEST) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id 6CE4742FE6 for ; Thu, 6 Jul 2023 19:59:47 +0200 (CEST) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-263121cd04eso609525a91.2 for ; Thu, 06 Jul 2023 10:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688666386; x=1691258386; 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=3hePGT3pp+cDGNwaOlD/p6nO/m8CfpV78liYbV4NkQo=; b=g7PQ7Bcbz7BumR9Z6D8VvQA3MzE9jlTXSzfr6qYBJEjcGAWAZ+6zEvC0n93ihIBu4G cll7t/v42U21eHK/GjZIcYID5xjyTyfUpffLKdHX3qJ8OI2A+JSnrZUtmQjUgZ+dvzhG aEIhQSX+jEJ3zanb5AlXMmqLZbkBsFJoKhCq4YLWtOz67jg7x7rwN8YNm2yHkpbcxBSE IGLO+fEZos9Gqo28VSlepbIjEmnwWceOtB/084ePHnoQ+7QWzoJ+BH1pKcBFPE8gnsoU GwweXoh+FeXcVNl6N9MR43/GUNXRLsvwKus98NQnVtBgpOunhm1XmxVwDDgSMNuQHiFj woSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688666386; x=1691258386; 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=3hePGT3pp+cDGNwaOlD/p6nO/m8CfpV78liYbV4NkQo=; b=btJ94CqjA52CbFKWvJ6JaMz1lpA0xKhuYtFbVMlT1pGI0sFMUA8MPnf9HE/quFsyVY 0cqpR0Gtuz8rGUFB4CmEXsI9zITA4HqUz0293mTBPMr4k10JglLSuBTK8iedPbV86hZe Kj1Es0gS3r8/MfIEaixgHTLHcjle295gcIsKylAGnMgwwsrnk8GQbdkDLnrwgdeupozm l+HslQVqoUeqrcK0klqjx0V3ACtHo5F36TWnycTcFB5L5imB7mla2FANIOWK/a+mkV+g HC7OZG8Xo2wNyCfnGSKb01wi/fn51aYk82QOYwTYIDOnuF4yx65ynZfBypBw3ibZQ2GY oEEQ== X-Gm-Message-State: ABy/qLbJNi9882EMkwntNcLAYVB0/zVtCeFJZPwfAFLBAzo4Y+k5yrZR z59bh7caMFsVDtxWd8lsjHR2qLic+tv/K7xp6Wk= X-Google-Smtp-Source: APBJJlEIg+CElD2pSD4RDZ4wRt6+8BIUWW3t0noM0KZ/WglSd8louMLfQUeeWz/MFg76pYyhEI6dLQ== X-Received: by 2002:a17:90a:86c8:b0:263:efca:8bcd with SMTP id y8-20020a17090a86c800b00263efca8bcdmr2028828pjv.2.1688666386405; Thu, 06 Jul 2023 10:59:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 10:59:45 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 06/14] net/tap: use rte_pktmbuf_mtod_offset Date: Thu, 6 Jul 2023 10:59:30 -0700 Message-Id: <20230706175938.62721-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230706175938.62721-1-stephen@networkplumber.org> References: <20230505174813.133894-1-stephen@networkplumber.org> <20230706175938.62721-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 cocci/mbuf-offset.cocci Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index bf98f7555990..ebddbae9fe9f 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -672,8 +672,7 @@ tap_write_mbufs(struct tx_queue *txq, uint16_t num_mbufs, if (seg_len > l234_hlen) { iovecs[k].iov_len = seg_len - l234_hlen; iovecs[k].iov_base = - rte_pktmbuf_mtod(seg, char *) + - l234_hlen; + rte_pktmbuf_mtod_offset(seg, char *, l234_hlen); tap_tx_l4_add_rcksum(iovecs[k].iov_base, iovecs[k].iov_len, l4_cksum, &l4_raw_cksum); -- 2.39.2