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 4B79042DEC; Thu, 6 Jul 2023 20:01:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D6314303B; Thu, 6 Jul 2023 19:59:59 +0200 (CEST) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id 81D7943028 for ; Thu, 6 Jul 2023 19:59:54 +0200 (CEST) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-262ea2ff59dso594729a91.0 for ; Thu, 06 Jul 2023 10:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688666393; x=1691258393; 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=jdKXUUZqkShylWjI+LflLVhTcyr+e21pY47a2eZUq5xwMmsR0QUnhqeQkcWHEwZbmW Jrl7oKljnQBlf/UwfOk87IDDBuTJOhpJHWxUlOnFllV2Wsfm56R+10xuBinxScWyVpnc 54FJWByTYdArUy1O0lGxoSQABq71mulSNUw46VVsp/3durcQXPKphgBDtcQ9bK2DZKBe Lsx6Qtr7jlpgw1NIi1pFneIzEX3zU0czCP9jC4Vk7LN21BcVNAadgZ1NS0blr06EqvYx ChHcTAR0eeBdUIJqM0tLBFeuwnMcWNqcaUyUGYjcUmZdVCOtFxZZyol1DS1MrrfRP3ju GrgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688666393; x=1691258393; 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=GYefVT4RhOXzpFuTYEDYcRoF57kTjlxAEFR9ZHe1o6Zhlfdt1sYh7dNXsk7yUU7C21 M3GjFUDn4irZ6Mi3LoxUxcaHQl8OSpoDLXnELoruvnRjr0WEhEQaiWgaPMO1HjfIKwgc G+AOdefhXWp1K1UiYQf75oXL7nk/vSOWR+cGogOPqsuFayI7eRXToRPgsyVjsMDC+Uab nIcmRrAFjRPSwgS840s2ql8V9ktQ7auVhVs3cHwhBIaE9cC5/PYwNlPFciHVIgfD5u6W Xk3+u3Bpg/+a/OgBzFxo5VsmjFQyaqsiYHcqFqOO1Jk+9jWHctJw/48xE/zia4EelTnq 4gQg== X-Gm-Message-State: ABy/qLbB3Om1GFPvGJipnCPljDvtkJ3GvFcohcWoHqcKScUDLJqIbvVM ACIgtwcMWAWwSreLFzlV/uBS0NiGCzzuA2TJcoE= X-Google-Smtp-Source: APBJJlF56uertcHquZvLy7lyWhqwLovoOTc5Qjedb+2OxuU03o5r7b/1e8NDv36uDivN/XNsiMv/uQ== X-Received: by 2002:a17:90a:5317:b0:262:d2ca:e209 with SMTP id x23-20020a17090a531700b00262d2cae209mr1964781pjh.18.1688666393500; Thu, 06 Jul 2023 10:59:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 10:59:53 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Matan Azrad , Viacheslav Ovsiienko Subject: [PATCH v3 13/14] net/mlx4: use rte_pktmbuf_mtod_offset Date: Thu, 6 Jul 2023 10:59:37 -0700 Message-Id: <20230706175938.62721-14-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 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