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 E7543A0562 for ; Fri, 19 Mar 2021 04:51:54 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D32A1140EA0; Fri, 19 Mar 2021 04:51:54 +0100 (CET) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by mails.dpdk.org (Postfix) with ESMTP id A253640143 for ; Fri, 19 Mar 2021 04:51:52 +0100 (CET) Received: by mail-qt1-f171.google.com with SMTP id c6so5837963qtc.1 for ; Thu, 18 Mar 2021 20:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+VLS3QarPE6O9yuYCrocrUmGC41KJYDKBNiDGDeuGNw=; b=OLRtj4HVApPsfairxJFVE/vLW7pmm9kErnq08WPdjmRualgboEyS4QOfsQxsJjqGVH Lesi2wNb7dFrlDLpL0buisAshBT/9fDrnv9d4IrvX48Tewbu9KbBL9I9lJCo3ktn2QdH e3r8JOLfZMgI7UzpRdHEaHVrZODCuP7Qt2QWs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+VLS3QarPE6O9yuYCrocrUmGC41KJYDKBNiDGDeuGNw=; b=SgXBG4W+RsQ0/Is33UGwxMuuJ3sVr4kJUj7uQwufcRZQEDE5C24JtLMFdLeWX9PaUc Ad6yi86Fj3F9Y1TZ0v50iS12iTSCGCo63a1CCUPxcGb42ov9kqJIB2LeehPzwCS/MTDD eBPfM7KM0V0JoNJXRZluaS+JzOghG7Amn4ceMY0wBLc1xq8ZeiDFohIKcAY3BJc7g08P 1Ssdnyfxo+T7OQcENqQb4m34sXsSsH/W1pcUooa0+ReAVmpmZhC0oHSW35TqSwau3RVd AJA5MyGgaQZqppXRRpwOcShsIAbK2j2JVo75IrkxVU4fSpLgH1apr5/pZ+kAR747RUdY VZVw== X-Gm-Message-State: AOAM530SJfHlG3ilBOskb/HV7TwbVmG8RJaXulNhKwzQtCIur6C+KKXi i0HeRMv784mPSSShGEMcpr//nhuTqXJntlEBAt5AQQ== X-Google-Smtp-Source: ABdhPJx2xI+P4wiQz+IlR1pE2QgXt1/P4HcKmf6wJ3e4QpXlgRyZe69EreG4Ofqtn+Kww7aTTh91uYVfoZNCNTBhRsk= X-Received: by 2002:ac8:73c4:: with SMTP id v4mr6778255qtp.208.1616125911987; Thu, 18 Mar 2021 20:51:51 -0700 (PDT) MIME-Version: 1.0 References: <20210318195229.683367-1-lance.richardson@broadcom.com> In-Reply-To: <20210318195229.683367-1-lance.richardson@broadcom.com> From: Ajit Khaparde Date: Thu, 18 Mar 2021 20:51:35 -0700 Message-ID: To: Lance Richardson Cc: Somnath Kotur , Stephen Hurd , David Christensen , dpdk-dev , dpdk stable Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000ea449305bddba249" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [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" --000000000000ea449305bddba249 Content-Type: text/plain; charset="UTF-8" On Thu, Mar 18, 2021 at 12:52 PM Lance Richardson wrote: > > 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 Patch applied to dpdk-next-net-brcm. > --- > 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 > --000000000000ea449305bddba249--