patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Ajit Khaparde <ajit.khaparde@broadcom.com>
To: Lance Richardson <lance.richardson@broadcom.com>
Cc: Somnath Kotur <somnath.kotur@broadcom.com>,
	Stephen Hurd <stephen.hurd@broadcom.com>,
	 David Christensen <david.christensen@broadcom.com>,
	dpdk-dev <dev@dpdk.org>,  dpdk stable <stable@dpdk.org>
Subject: Re: [dpdk-stable] [PATCH 1/1] net/bnxt: fix transmit length hint threshold
Date: Thu, 18 Mar 2021 20:51:35 -0700	[thread overview]
Message-ID: <CACZ4nhs9kDZv0BXdQnCSb97v0ckAvE-4t3v94AsUMw8Dik4LBA@mail.gmail.com> (raw)
In-Reply-To: <20210318195229.683367-1-lance.richardson@broadcom.com>

[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]

On Thu, Mar 18, 2021 at 12:52 PM Lance Richardson
<lance.richardson@broadcom.com> 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 <lance.richardson@broadcom.com>
> Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde@broadcom.com>
> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
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
>

      reply	other threads:[~2021-03-19  3:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18 19:52 Lance Richardson
2021-03-19  3:51 ` Ajit Khaparde [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACZ4nhs9kDZv0BXdQnCSb97v0ckAvE-4t3v94AsUMw8Dik4LBA@mail.gmail.com \
    --to=ajit.khaparde@broadcom.com \
    --cc=david.christensen@broadcom.com \
    --cc=dev@dpdk.org \
    --cc=lance.richardson@broadcom.com \
    --cc=somnath.kotur@broadcom.com \
    --cc=stable@dpdk.org \
    --cc=stephen.hurd@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).