mbox series

[0/2] net/bnxt: fix outer checksum status

Message ID 20201218202837.2074736-1-lance604@gmail.com (mailing list archive)
Headers show
Series net/bnxt: fix outer checksum status | expand

Message

Lance Richardson Dec. 18, 2020, 8:28 p.m. UTC
From: Lance Richardson <lance.richardson@broadcom.com>

Receive checksum offload status flags in the mbuf
ol_flags field should include inner/outer status
only when outer checksum offload is enabled, which
currently isn't the case for the bnxt PMD. Fix by
using a hw-to-ol_flags mapping table that is constructed
based on configured offloads.

Lance Richardson (2):
  net/bnxt: make offload flags mapping per-ring
  net/bnxt: fix ol_flags checksum status

 drivers/net/bnxt/bnxt_rxr.c           | 113 +++++++++++++++++---------
 drivers/net/bnxt/bnxt_rxr.h           |  12 +--
 drivers/net/bnxt/bnxt_rxtx_vec_neon.c |  16 ++--
 drivers/net/bnxt/bnxt_rxtx_vec_sse.c  |  16 ++--
 4 files changed, 104 insertions(+), 53 deletions(-)

Comments

Ajit Khaparde Jan. 3, 2021, 3:42 a.m. UTC | #1
On Fri, Dec 18, 2020 at 12:28 PM Lance Richardson <
h.lance.richardson@gmail.com> wrote:

> From: Lance Richardson <lance.richardson@broadcom.com>
>
> Receive checksum offload status flags in the mbuf
> ol_flags field should include inner/outer status
> only when outer checksum offload is enabled, which
> currently isn't the case for the bnxt PMD. Fix by
> using a hw-to-ol_flags mapping table that is constructed
> based on configured offloads.
>
> Lance Richardson (2):
>   net/bnxt: make offload flags mapping per-ring
>   net/bnxt: fix ol_flags checksum status
>
Patches applied to dpdk-next-net-brcm.



>
>  drivers/net/bnxt/bnxt_rxr.c           | 113 +++++++++++++++++---------
>  drivers/net/bnxt/bnxt_rxr.h           |  12 +--
>  drivers/net/bnxt/bnxt_rxtx_vec_neon.c |  16 ++--
>  drivers/net/bnxt/bnxt_rxtx_vec_sse.c  |  16 ++--
>  4 files changed, 104 insertions(+), 53 deletions(-)
>
> --
> 2.25.1
>
>