patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Ajit Khaparde <ajitkhaparde@gmail.com>
To: Lance Richardson <h.lance.richardson@gmail.com>
Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>,
	Somnath Kotur <somnath.kotur@broadcom.com>,
	dev@dpdk.org,  Lance Richardson <lance.richardson@broadcom.com>,
	stable@dpdk.org
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/bnxt: fix outer UDP cksum Rx offload capability
Date: Thu, 17 Dec 2020 15:51:12 -0800	[thread overview]
Message-ID: <CAD6mc5b+sP=XfyewCwpXmT95Qt_cTWOx=yXBryCuecyRcCTgUQ@mail.gmail.com> (raw)
In-Reply-To: <20201217192431.1965693-1-lance604@gmail.com>

On Thu, Dec 17, 2020 at 11:24 AM Lance Richardson
<h.lance.richardson@gmail.com> wrote:
>
> From: Lance Richardson <lance.richardson@broadcom.com>
>
> Rx outer UDP checksum offload has been supported for
> some time, but this has not been advertised in offload
> capability flags. Fix this, and allow vector mode
> receive to be enabled when DEV_RX_OFFLOAD_OUTER_UDP_CKSUM
> is requested.
>
> Fixes: 04a681426d49 ("net/bnxt: fix L4 checksum error indication in Rx")
> Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
> Cc: stable@dpdk.org

Patch applied to dpdk-next-net-brcm. Thanks

> ---
>  drivers/net/bnxt/bnxt.h        | 1 +
>  drivers/net/bnxt/bnxt_ethdev.c | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/drivers/net/bnxt/bnxt.h b/drivers/net/bnxt/bnxt.h
> index 07d39ee937..ad7d59458c 100644
> --- a/drivers/net/bnxt/bnxt.h
> +++ b/drivers/net/bnxt/bnxt.h
> @@ -583,6 +583,7 @@ struct bnxt_rep_info {
>                                      DEV_RX_OFFLOAD_UDP_CKSUM | \
>                                      DEV_RX_OFFLOAD_TCP_CKSUM | \
>                                      DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | \
> +                                    DEV_RX_OFFLOAD_OUTER_UDP_CKSUM | \
>                                      DEV_RX_OFFLOAD_JUMBO_FRAME | \
>                                      DEV_RX_OFFLOAD_KEEP_CRC | \
>                                      DEV_RX_OFFLOAD_VLAN_EXTEND | \
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
> index 9d5c8aa0f8..a3035def5e 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -1179,6 +1179,7 @@ bnxt_receive_function(struct rte_eth_dev *eth_dev)
>                 DEV_RX_OFFLOAD_UDP_CKSUM |
>                 DEV_RX_OFFLOAD_TCP_CKSUM |
>                 DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM |
> +               DEV_RX_OFFLOAD_OUTER_UDP_CKSUM |
>                 DEV_RX_OFFLOAD_RSS_HASH |
>                 DEV_RX_OFFLOAD_VLAN_FILTER)) &&
>             !BNXT_TRUFLOW_EN(bp) && BNXT_NUM_ASYNC_CPR(bp) &&
> --
> 2.25.1
>


-- 
Ajit Khaparde

      reply	other threads:[~2020-12-17 23:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-17 19:24 [dpdk-stable] " Lance Richardson
2020-12-17 23: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='CAD6mc5b+sP=XfyewCwpXmT95Qt_cTWOx=yXBryCuecyRcCTgUQ@mail.gmail.com' \
    --to=ajitkhaparde@gmail.com \
    --cc=ajit.khaparde@broadcom.com \
    --cc=dev@dpdk.org \
    --cc=h.lance.richardson@gmail.com \
    --cc=lance.richardson@broadcom.com \
    --cc=somnath.kotur@broadcom.com \
    --cc=stable@dpdk.org \
    /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).