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

Message ID 20201218202837.2074736-1-lance604@gmail.com (mailing list archive)


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(-)