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 A3378A0561 for ; Thu, 18 Mar 2021 20:52:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D22A140F57; Thu, 18 Mar 2021 20:52:37 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 5CE5A140F48 for ; Thu, 18 Mar 2021 20:52:35 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id e14so1837226plj.2 for ; Thu, 18 Mar 2021 12:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=HDMTkjlXBicVDfqFIiOqDqX2pWUqxDo6wosdvx2aP+c=; b=bElS7lXcAuLG9KMYJU319HN/f/PQ2n19ppoClRgvW95pA9Fk/Vss5BJLkxhj3h1cU1 S9akJw+cUoHDAG/HkwnnFMhfcxSSRQTEpBFMNZVSUtz6GjQlEtBnvlVrckD+QzuXpx4L KT2bz5g9ja7gNBl1APoxKsrlnCpkimwjr3NXM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=HDMTkjlXBicVDfqFIiOqDqX2pWUqxDo6wosdvx2aP+c=; b=nMNJY/hrF2g7x3lE9ICpjiomJ2F+HaxuVmczWbamiAgvFO6YJBLxyEtgEEHi9IQz64 RbO9rBY5GoRccc2LCpHjreY1RKfjj90cSYYwo4715LcWtrzGeaMg2B2q/taYJbBCDAQG LIIfHrdeHm9k3VkyhjIpx8t3y4/YB4Nfu3hu5EyEh8BD+LEjvgkAZH2La5iQetmgK43Y poIte07k0sC7CL06Zf6LlSHIPfKJzqRBzJUfOUHkZK81clYkuns0E9o7bEcc0z6JQZm7 SOJxWgbu0IkqciSs9spJKa3Kvn4Ksc/vAMwCvTz52h4zHmtWhsumzlKGakqUFdOYDjIc RW2w== X-Gm-Message-State: AOAM531uVlPpcjM+X5n9hTBNUwxRx6S06ezJFg30OWOOcakBpKSPBFam 7MBe7abypkQhH3raplH6K1o7NQ== X-Google-Smtp-Source: ABdhPJyUHVAIbPiiwLdqJK0g0YvogyIckhuJA7zLCdjxCLscN8G43GPjTVjBkzJYznjtJDmlrNK3Ow== X-Received: by 2002:a17:90a:e7cc:: with SMTP id kb12mr5898157pjb.31.1616097154520; Thu, 18 Mar 2021 12:52:34 -0700 (PDT) Received: from localhost.localdomain ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id f2sm3334049pfq.129.2021.03.18.12.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 12:52:34 -0700 (PDT) From: Lance Richardson To: Ajit Khaparde , Somnath Kotur , Stephen Hurd , David Christensen Cc: dev@dpdk.org, stable@dpdk.org Date: Thu, 18 Mar 2021 15:52:29 -0400 Message-Id: <20210318195229.683367-1-lance.richardson@broadcom.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000d6c0eb05bdd4f062" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-stable] [PATCH 1/1] net/bnxt: fix transmit length hint threshold X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" --000000000000d6c0eb05bdd4f062 Content-Transfer-Encoding: 8bit Use correct threshold when selecting "greater than or equal to 2K" length hint. Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Cc: stable@dpdk.org Signed-off-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_txr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c index 65355fb040..27459960de 100644 --- a/drivers/net/bnxt/bnxt_txr.c +++ b/drivers/net/bnxt/bnxt_txr.c @@ -187,7 +187,7 @@ static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt, txbd->flags_type |= TX_BD_SHORT_FLAGS_COAL_NOW; txbd->flags_type |= TX_BD_LONG_FLAGS_NO_CMPL; txbd->len = tx_pkt->data_len; - if (tx_pkt->pkt_len >= 2014) + if (tx_pkt->pkt_len >= 2048) txbd->flags_type |= TX_BD_LONG_FLAGS_LHINT_GTE2K; else txbd->flags_type |= lhint_arr[tx_pkt->pkt_len >> 9]; -- 2.25.1 --000000000000d6c0eb05bdd4f062--