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 157CA42A49; Fri, 5 May 2023 19:49:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22D4142D93; Fri, 5 May 2023 19:48:34 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 370C042D42 for ; Fri, 5 May 2023 19:48:32 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6439e6f5a33so706775b3a.2 for ; Fri, 05 May 2023 10:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1683308911; x=1685900911; 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=wIJ799UPVG3MT5cjsd2jv+kxefAj7BOC0F1Dy3/brc+Y2z/pDPAVblZD5Bj4RrPWqk FDU7ytx+tkBU3sZF7QhlxaFpreDRBgkjZZ1K4Ffo16d2V64nLjkayspZhYIcsVsX2K8v /D7c65SrJme96e5WKHbu/i9Zee/8Rc7vLPujWex+ZvLizrNA43cOq4iIlK2SPmYD73Yc YEh8d64arUvUNnoKiBSEDhv/9+M14vVHSsTw0jMSH6icXzc8/lsMSfFevu+Kln7vh8l4 Rm1xlPmkIhHJ/cKcyRZstRoLVBWOT2Rt24gmkEsvMXJRqv679tG4YOfuzWZD/r34ZFgH /jBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683308911; x=1685900911; 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=LZjHBau9mfwrToWbxeTtlNrI5pDtFE1YvtyMpmuTGqudwpKU6v0oWC+/7giEdNr4tG rZWWXcSwyJ+AkXqzHpB5V6u3a1dePp2Vg1F4t4vl5B7LxX5+Z8SCdT0IfDoJ56oddqLG Xy4krDTx5uGCuBsQ4ImoquaS94qAAA8W9z1E6CQm3c2C9E0JTnEYGs046ZhA+3KWFURY qy9x3bVK8ntBaZWq12AvDhyZdnQXBfIAdZxOqJWqAfZZoRQ7XbUZLRBJb42VNNd/McDn 4sqv/h9z6L2e/A/nWIBkFdYbk1ZL4EiHrjq5qHbwzs4u5Rt9rwiZJAeGD1MOGslnghOo BKTA== X-Gm-Message-State: AC+VfDzfB5pAojcUaq4kAmrCOHcf6nOUgUbo3llV05YO3NjC7TxqwIxJ kiSj+fpTCX9Ghz/baWcOIdRrbVGlV4wZ25V/PEPEyw== X-Google-Smtp-Source: ACHHUZ7q6IxAjrJ+5asTpQ1K3018Uw3JJkSlXQsghYUxRZJMBtfbvlXKm1Nx7x7Gu1vcgsPVSEt4yw== X-Received: by 2002:a05:6a00:1898:b0:643:5b68:a306 with SMTP id x24-20020a056a00189800b006435b68a306mr3853624pfh.17.1683308911220; Fri, 05 May 2023 10:48:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 10:48:30 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad , Viacheslav Ovsiienko Subject: [PATCH 13/14] net/mlx4: use rte_pktmbuf_mtod_offset Date: Fri, 5 May 2023 10:48:12 -0700 Message-Id: <20230505174813.133894-14-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 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