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 55652A0544; Tue, 11 Oct 2022 02:53:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 887AE42BC5; Tue, 11 Oct 2022 02:52:08 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id F1B4142BF4 for ; Tue, 11 Oct 2022 02:52:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nVK3Mjct80AjNHykuWOkoJaOLYo3h2yZxVbnx3Bw0/lyKAqm8llITlc/ysfPiX3TypGIYa7DJrxFyCFv6d7H269WY8ERaxzJvXTo8IcmwO/MTjaVppo/Hx84BFEMbcHkTYm61YFDMKPeJxqf6f9Qhj31Ob5c2ippMxTwecbDy4Y+YIVf8bOHhoi1K42tpANNKjh78NGyC+ZwBt642GAb/DSlKKY2vm3kCHvQapP3q91YU3CASHG9xFVVtf0m9DjlNAUcTgZylTbPm17+torllpodhAAYxutFqn+zYimuHH2bfyGTsbJ6ddWzFXo6SAF04oporvQAQ/+cSt/er+tYOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lFbOKfWEzeY8mso/8cAHlkU+W7UJoRECDbuqZRi3pTs=; b=MjBG0agHMrLFKiS6SaQJCwtBqhtoFeOTq2HcZF2lip9GkSnolUPGTCCPlC4gCVQa3KZ5GOQZPiXrgGl8LuTbEoUvVWhcphfVD5dM1gqlJmTzM9+UZF8WJ90a8vXRHtTZKPcFP6XT06tLfXDObyRfxsXtKcvowVdl9PSBveME2vO0p2z2YkronUXIYlwrPMzzpwqHSQHRZZV3/6KUgMZ2rajvdmYpSgnO7b4Y5a3qPVT/9jzzA9fR8Q7vUXxk4HTAxMNmYLRL3loWpql4Bjti4qC0vCkcU5PDBT41PEXF7r8pXVJAo2eZ7X2s09/1B54VKuDIYn8UlGnppdQ94RI5/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lFbOKfWEzeY8mso/8cAHlkU+W7UJoRECDbuqZRi3pTs=; b=Yg+urcU/11kR9SlCqnw50AKlZmOKfwEqI1v2VGLDJiZpFLZvPu56i/CyDSjxjmFQjFTvihSjbNtiLQJftQX6xOpXIY4qK43dOOI+2c+UNxk4VYW5CUlW2VXI2syIHnP1iFAU6qrsK3blH8DXVB4ashU0QnBt1i6FG6xkJLVpD98= Received: from BN9PR03CA0325.namprd03.prod.outlook.com (2603:10b6:408:112::30) by MW3PR12MB4555.namprd12.prod.outlook.com (2603:10b6:303:59::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24; Tue, 11 Oct 2022 00:52:03 +0000 Received: from BN8NAM11FT108.eop-nam11.prod.protection.outlook.com (2603:10b6:408:112:cafe::78) by BN9PR03CA0325.outlook.office365.com (2603:10b6:408:112::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15 via Frontend Transport; Tue, 11 Oct 2022 00:52:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT108.mail.protection.outlook.com (10.13.176.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5709.10 via Frontend Transport; Tue, 11 Oct 2022 00:52:02 +0000 Received: from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Mon, 10 Oct 2022 19:52:01 -0500 From: Andrew Boyer To: CC: Andrew Boyer Subject: [PATCH v1 17/35] net/ionic: use a helper variable in packet Tx function Date: Mon, 10 Oct 2022 17:50:14 -0700 Message-ID: <20221011005032.47584-18-andrew.boyer@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221007174336.54354-1-andrew.boyer@amd.com> References: <20221007174336.54354-1-andrew.boyer@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT108:EE_|MW3PR12MB4555:EE_ X-MS-Office365-Filtering-Correlation-Id: 9dda4545-25d0-455c-ddf2-08daab22cf90 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O3+Ij3WArwWPs/kqya7YIilDhZdLiogrAkere8WC7p03UR6fi9/l2mfEce+ibhuqteSiza1emYsKRV48spAJGvSZNuLSMnr27YOZQ4LV56t6SyVl7WIjYTxjYtiCrj3FXJabSM+xkptWzUPy8eOQZjNuBlKBRsv3eGs8pUv8gO5RnQmNPPOJISK9aOchfHWzndHQtRw6mkNpTUmnwoN2EIRUdXMVC3fXBCwmkWznXRXAgvnuO/HDkRfueHxX5dg23+p8XcKTjAfvvapbamRlyGv51Z9CyAWAl39cWUAdWOX0oJuGwWEAcB3SXLMvqvffRR/FoQ6cexKwFYhOMtt8VWWEivx3vQqgjrcGsmBLmSU+5euecsYsTUqiFtyyhlZ30JWOJTN56CtY1c6AwnRrCV8z8UmtSvqH+vwSN9fvQPlhjPtFVFoHWgTfLQFT9Dqz1SlYCqN5sTDwBQO9LZk0AKR0eDMcSVZqPOSP7o1aNGd8Dsio1xNRnHb8SdyesOU+MU3jkZAFg8IkB5tvS3jyeUHpeJ6IxA9TsdeMEzCCmARdYE/ThApeM6c1N7ELaoJjfA4i/LpC8v9YRzmz4mPN3paRGUDrgLqA/6r5QjKwaaN7kLLVknOkbPT+GxRGemAQnK5nxpC6oxy0qAK6HAjV/Lg+IudQ1fTthqdWBPXt70FyWAnCdhnE3+jyI4zK6q+8L4wu+a3DGahLDc6XdV7bbDBpQAgXAeyHM6DmqP/RmbRWehu5JVeLUC7jq2Rx+q4bSxAr5wW1cQG69FAEnA5JquxcFczGdiw5e2F722KbDoSYqJ9vDAowKEwSgF89mlrx X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(346002)(39860400002)(136003)(376002)(396003)(451199015)(40470700004)(46966006)(36840700001)(86362001)(336012)(186003)(82310400005)(16526019)(47076005)(82740400003)(81166007)(83380400001)(356005)(36860700001)(40480700001)(8936002)(4326008)(44832011)(41300700001)(70586007)(70206006)(8676002)(478600001)(2616005)(1076003)(6666004)(26005)(316002)(6916009)(40460700003)(5660300002)(426003)(2906002)(36756003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2022 00:52:02.5493 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9dda4545-25d0-455c-ddf2-08daab22cf90 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT108.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4555 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 This improves readability. Signed-off-by: Andrew Boyer --- drivers/net/ionic/ionic_rxtx.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/ionic/ionic_rxtx.c b/drivers/net/ionic/ionic_rxtx.c index 0f251eca13..0c1cc842cf 100644 --- a/drivers/net/ionic/ionic_rxtx.c +++ b/drivers/net/ionic/ionic_rxtx.c @@ -560,6 +560,7 @@ ionic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, struct ionic_tx_qcq *txq = tx_queue; struct ionic_queue *q = &txq->qcq.q; struct ionic_tx_stats *stats = &txq->stats; + struct rte_mbuf *mbuf; uint32_t next_q_head_idx; uint32_t bytes_tx = 0; uint16_t nb_avail, nb_tx = 0; @@ -582,16 +583,18 @@ ionic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, rte_prefetch0(&q->info[next_q_head_idx]); } - if (tx_pkts[nb_tx]->ol_flags & RTE_MBUF_F_TX_TCP_SEG) - err = ionic_tx_tso(txq, tx_pkts[nb_tx]); + mbuf = tx_pkts[nb_tx]; + + if (mbuf->ol_flags & RTE_MBUF_F_TX_TCP_SEG) + err = ionic_tx_tso(txq, mbuf); else - err = ionic_tx(txq, tx_pkts[nb_tx]); + err = ionic_tx(txq, mbuf); if (err) { stats->drop += nb_pkts - nb_tx; break; } - bytes_tx += tx_pkts[nb_tx]->pkt_len; + bytes_tx += mbuf->pkt_len; nb_tx++; } -- 2.17.1