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 D347C42A49; Fri, 5 May 2023 19:49:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A47542D35; Fri, 5 May 2023 19:48:26 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id CF7BD42D47 for ; Fri, 5 May 2023 19:48:23 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6434e263962so1631995b3a.2 for ; Fri, 05 May 2023 10:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683308903; x=1685900903; 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=m1xdRI4YnzaxwE/UjmHxTlgeTvrs0tnL1wva0sN/quz5n2FC4V8LdVi9UOBSzNzIz9 lQOEFO2o+HWhY9RFBKHMTcCfYZPEY1xv8ffg1UbleCquCB5Re83jXZEv569ChkPXMoOz 6lU/0CJcYF2iQcD72yoiqt5Nle9VqzMpE2PwonKY5XzG6OvsaIzwt98WDWp/mc3pD7ly /CHFFHkCR/Q60Kp8Evun0yjbPWLXXDOSd4aijm85wQRSj5LdhwLVt/ubxhVviOIMOOjL KhspmtBqMsXxhCqHXnTGJCjiBE4iwEVgrLqcCr+Fj5fcuYcdCuoUKtHMDI+jFakYDYrU Im6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683308903; x=1685900903; 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=Nw11BDVltwegB4a5MV3hV7KfF9SiMC0H8jYTuNQn1qOItwkPmd/PcoCT4Gm/etWVAu pVFoaZMZfacj9kPRRT2aVwZXHzNfYSE2r4DIte1Cpw/EydRspov+ObLQp3sK4CqsUnMk HwDEzjlZ6LT9Vl4jfF9qS7ihQlyeAHfRFFFzFHy9KnL5h40dFt99je+ylI6r2uoWU6vn TtHexbUshHWyX5958dew0lnYqLc9EJHQ9gU2j0bBeG2QRRXAhrXjCGP4INQQmi++36sk cZfzZNK3EW96ZKm8NkOFeWCaVAsWAu8VD8FO+i4c/G3jK/dti3IBNjKjYFSRtjOPxmRm vJ/Q== X-Gm-Message-State: AC+VfDwUx2OdEqfoHdOpxEmPqGHFVn88UjPz7/VSCMWRBjQs/z31k0AD BjKTBRBeiMaZf3XXYDtWsPsbKx4ZD4dzdKVvLUy1sA== X-Google-Smtp-Source: ACHHUZ76rsn/5YJBe/r36K3UP9oUbOQxuH3CwEk80UORIqGFfP1TKZgbona80ugDAlfn6YsxZo9bdg== X-Received: by 2002:a05:6a00:17a5:b0:63b:1708:10aa with SMTP id s37-20020a056a0017a500b0063b170810aamr3540837pfg.34.1683308903084; Fri, 05 May 2023 10:48:23 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a15-20020aa780cf000000b0063799398eb9sm1895707pfn.58.2023.05.05.10.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 10:48:22 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 06/14] net/tap: use rte_pktmbuf_mtod_offset Date: Fri, 5 May 2023 10:48:05 -0700 Message-Id: <20230505174813.133894-7-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 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