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 2CF5542A7F; Sat, 6 May 2023 18:04:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFDA142D4B; Sat, 6 May 2023 18:04:15 +0200 (CEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 390B242D3F for ; Sat, 6 May 2023 18:04:13 +0200 (CEST) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-64395e2a715so2857138b3a.3 for ; Sat, 06 May 2023 09:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683389052; x=1685981052; 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=SeOAZhzQjRLj9aQLEa2ZWOBMHe7LQzkaSzddGQuZmwQ=; b=Q65WntDrc8lUZzMCmOEKArR5IohGq1G/beSCWOIUId2ppNMqdP6XTaWDXvvFG0OQYH fDzitNLwLiA/eiwz62KmixEpjjn68Xi4QXhOAx+3DFtsY3aEk3Po5DmObRhY1PG1foIy 7UCT+T/yzoZBkAM2SPUGRVREd/cAJJJjz0hqz0tJN+o3vee9pEpRs3jNhWBKNmqB7jvo 7KqpwRPOw+4YIHCYGiic+b4mBXFTQIu95a9XVlesTRNEumqSuK96diCjtItAttNwTru1 Cjk/9jqzOuxcNcYcLaeZaWjIUvdmqAc8m76h2wim1RtIar6q1HI7DEQMEyT798uR/dcL ZgIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683389052; x=1685981052; 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=SeOAZhzQjRLj9aQLEa2ZWOBMHe7LQzkaSzddGQuZmwQ=; b=GvCwU5ljGL9dcxuRULLEuik23JyOAZ9rvBOg8lyaGdK1wiyDUgX7TAu+QCgUC8JjWB aH3thICnkIfZl50PH0+Q/en+9SACYWiXUQoJXfrTIeruc4dweljLlLYcIOJ93Nt+eW57 IeGc9NLqbY6MQ5paOhI7S/3mi/73Jx4Ih+++x3ZQ5RB77pn9r3RNMVniokX7VFWU9RvP +a4SSpFBSzW/ccdnxshMub9nzM7FWK9vXyDpW/evACYleVwFlRCplK9uAz8HywQcV1Y7 25o98dO1A3K+DTRbIVMOTOJVBcRnMQ+VGwBEyeLGkrzhnezjc+mpBUo4xbtnYCFl1mTp maxw== X-Gm-Message-State: AC+VfDw+poLkJJTqgVqLExnty6qwJ5HGK+Etc0H6l/Ydh88DQShOPZ3H RUFVkAPZl9zx0MGsrHb/wjr4EF8vDVKswTd2+q7OKw== X-Google-Smtp-Source: ACHHUZ52SdZwjkuv6pLV+kAR1DhyU2SxVwPVPmUsCHiwgnqusehMLe7PPC1Hf7qgcR+U2/q/Botutg== X-Received: by 2002:a05:6a00:c85:b0:643:89b5:37e9 with SMTP id a5-20020a056a000c8500b0064389b537e9mr7115535pfv.21.1683389052240; Sat, 06 May 2023 09:04:12 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 09:04:11 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 06/14] net/tap: use rte_pktmbuf_mtod_offset Date: Sat, 6 May 2023 09:03:55 -0700 Message-Id: <20230506160404.7423-7-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 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 089ac202fad2..ca2c8da5c289 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