From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AABB8A09FD; Fri, 18 Dec 2020 21:28:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 82724CADA; Fri, 18 Dec 2020 21:28:45 +0100 (CET) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by dpdk.org (Postfix) with ESMTP id D8915CAD2 for ; Fri, 18 Dec 2020 21:28:43 +0100 (CET) Received: by mail-ot1-f42.google.com with SMTP id h18so3092260otq.12 for ; Fri, 18 Dec 2020 12:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0awksEIyJwnpEko8daxTFn6GYSuEmUQ2zd+fcowioAw=; b=mQYTkq91BnghCcBfYvu9ZJcg1csN/w8dq0A5iTxUt84xEaqTtle/3DRa57VT+mYg8n xUGdkdrDLZVXQu9OJ7nvZj+d+rFBbz9ymi/jELsbY59MGZpgfr356NSBhxh+9+FkuwMW 6lcCg2UdxKrIIDpPnKGMYT2wEB7CcMJx7meq/PDJKgAY49hTTQd9qSm15wLWUDV7Yyei +2OU5MCwXRWFYPolP9CGqKrSD6OicddlTQye2+lYT63bOAB7HvT3jLeoQ707lO02QZpF lPOb6RuYIEkLH3tVwDO8rbtuYHnSz6Cnx/gerCzC3ymyk4fTJy1x2UdDVNeDyrY0LUSI 3ZgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0awksEIyJwnpEko8daxTFn6GYSuEmUQ2zd+fcowioAw=; b=anR8S5DF569uGT88wzPG+pl7GNvOpfN6nX3KrfDUcvEWBn776LQmZqRElVOtUvgvqQ ArJYm3BINQs+ZGrpUTzsnOstp6+mjwB++b8PLotiGYi/7drUFutQ1CCdhw/kDVGJ0B0X C2xjhFXmQE5EZ8jylIOSZRNndHZMRz9JDlhUMn0q2sOTdRQy3YS7ljG2JtBhBWNepZTi T7X0gGv49oUYrNS93oS/zj9eqqIc9Ht6x3PidN3u0x+JLyNAM1i6VDDGdDxWRZYCSEv6 6v8+GkRGq515pGkEvOH8aEiu8dB7CqIPlA3RBMuTZ2R+rY42buV8NnwX72E16s+84pgc Y0LA== X-Gm-Message-State: AOAM530lIN1QBliMxYRY6KOwy1ThoFetuxFQbC/Sz5w7lcd8Cike+SAD vcjAZLYayl6BNLeBw6wXXQjiP4ERUqw= X-Google-Smtp-Source: ABdhPJz1lOa+9mjNBT75LxBzITlou1B2TzFvwmdht7s76DdP115PzjUDMPjUQ9/0S/zSCDHGopek/g== X-Received: by 2002:a9d:38e:: with SMTP id f14mr4158824otf.201.1608323321836; Fri, 18 Dec 2020 12:28:41 -0800 (PST) Received: from CoffeeLake.attlocal.net ([2600:1700:f91:f630:d94f:a2b3:4cb3:e1b]) by smtp.gmail.com with ESMTPSA id n31sm2100059otn.33.2020.12.18.12.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 12:28:41 -0800 (PST) From: Lance Richardson X-Google-Original-From: Lance Richardson To: Cc: dev@dpdk.org, Lance Richardson Date: Fri, 18 Dec 2020 15:28:35 -0500 Message-Id: <20201218202837.2074736-1-lance604@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/2] net/bnxt: fix outer checksum status X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Lance Richardson 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(-) -- 2.25.1