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 3265242A7F; Sat, 6 May 2023 18:05:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F347042D86; Sat, 6 May 2023 18:04:23 +0200 (CEST) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id C88B442D5C for ; Sat, 6 May 2023 18:04:19 +0200 (CEST) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-643465067d1so2236781b3a.0 for ; Sat, 06 May 2023 09:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683389059; x=1685981059; 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=c7hMjFUgvLlGADQuxfUFNFeFE+jghejYvfFzJc9Wwy0=; b=ba9PDKu/0eiVcJm2ORl0yiKq+iAAGPGE8IVUujNzm7GSXfEMttPs87ZYOt29gxF0vE FqreOB5m1+hjIX/qUDxfBP+/gaEzlJQLZs78TBIRpRyXm4b/zwkJoULYsk39juAs60tI 9AIx+pWnrW0mILxnhnSkXmSH/+oY7kg3LzSizqt5RO2a2jpEdnmzyic4U20/j6iXgVG3 mVBENL9WUWKjtsocnoTd9E5jYe+fwKy6RIILa8RxGoanHBhRHGCUKUBiTU9Ywz9k35qZ 6J9Q5Qzm9BGZJIWRVoO+jygofhe9890PVRdOAGhCbW0znMrNkGm6b/cqZ/Eak1GrM2KM 4pDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683389059; x=1685981059; 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=c7hMjFUgvLlGADQuxfUFNFeFE+jghejYvfFzJc9Wwy0=; b=g07rpZ3K/W7beYv1aE/NlyvTBpdv+slbA9eJhB1t3+fOa9Wn2cUco+USqQWt/uhdlE rWUxNQN0ngmVk2MVkLS/OTu9PTFHwtu6Zgmn5ELTi3gymYgRJjoeH5PlEIFuyjw7nQVK n5PTR80t7bzxirqwrC2v8Bm52DZZvtgh1WDACnCxnj3TJyLxlZuo16GescsbpeQFbPo/ bKMRbOVY8IuvkJZMwVUsTLT4LjJ9hmHzsIe3tCBidf2brC5Q8g4xJBSI5Zl78YYa7eU2 A/X9Ny0Di7cUt1MIAT3snFvOxCh8/uRON66z77JQHYjLXdm1O5/V8s67voHy+DPMi+Au wosg== X-Gm-Message-State: AC+VfDyaAcxFDb5U2bOg1fwzzBYIBw+23HUnj+jJux+TH/vDuztdgtqE +qHR0vdaxbOzsv7X4W2Sz4ZdFCE3eFtyq7+CSWQUUg== X-Google-Smtp-Source: ACHHUZ5yOdLwfuyY2FNvc5fT6czr8aoErvvW2mIwCJCK8mjLOzgxiug8qyVQPSRxBdA3kY7xfzf+Wg== X-Received: by 2002:a05:6a20:4429:b0:ff:d488:2945 with SMTP id ce41-20020a056a20442900b000ffd4882945mr922281pzb.23.1683389058771; Sat, 06 May 2023 09:04:18 -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:18 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad , Viacheslav Ovsiienko Subject: [PATCH v2 13/14] net/mlx4: use rte_pktmbuf_mtod_offset Date: Sat, 6 May 2023 09:04:02 -0700 Message-Id: <20230506160404.7423-14-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 Autogenerated with cocci/mtod-offset.cocci. Signed-off-by: Stephen Hemminger --- drivers/net/mlx4/mlx4_rxtx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c index 059e432a63fc..d5feeb7f7e6d 100644 --- a/drivers/net/mlx4/mlx4_rxtx.c +++ b/drivers/net/mlx4/mlx4_rxtx.c @@ -1014,9 +1014,9 @@ mlx4_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) * loopback in eSwitch, so that VFs and PF can * communicate with each other. */ - srcrb.flags16[0] = *(rte_pktmbuf_mtod(buf, uint16_t *)); - ctrl->imm = *(rte_pktmbuf_mtod_offset(buf, uint32_t *, - sizeof(uint16_t))); + srcrb.flags16[0] = *rte_pktmbuf_mtod(buf, uint16_t *); + ctrl->imm = *rte_pktmbuf_mtod_offset(buf, uint32_t *, + sizeof(uint16_t)); } else { ctrl->imm = 0; } -- 2.39.2