From patchwork Mon Oct 26 03:56:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Khaparde X-Patchwork-Id: 82129 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EC519A04B5; Mon, 26 Oct 2020 04:56:26 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 943A929C6; Mon, 26 Oct 2020 04:56:24 +0100 (CET) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id D80441E2B for ; Mon, 26 Oct 2020 04:56:22 +0100 (CET) Received: by mail-pg1-f196.google.com with SMTP id t14so5361044pgg.1 for ; Sun, 25 Oct 2020 20:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version; bh=jV2i5TmwxKqBLt7hs5w4KWKhvYZy4PtQOUWHevNZ6i4=; b=Mgmn1C4iyfdCw8UU0htZ/JT7no7z1jELAfx7/qQGws0SQNij8ZoxiwKurBp+Ap2bTI d5iKK7vuvqksYdZVABRby1+MW9f5Ulb4wvv6np0PABv24JCcKS2mhH2tKf/4z4WvzOcd 6L5+5zDKca2lN+r9nztEFS2TWUlhrG3IoWaSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version; bh=jV2i5TmwxKqBLt7hs5w4KWKhvYZy4PtQOUWHevNZ6i4=; b=R1GbNuow8A6DEIyY9mHDNk4a0JLFUOVR79b2isNg0xd+915tEwppqO9kFh3uo11wy7 ubNtWO2U6wQUF94CjSIWDDRwZzxwxCCJrsxYrjRWjRvtyYxbcT6S3ch4pt/EzEMx69Oj xWkoCyzRs529cxKsz0dSjJ/Tram+Xh8aktMu4p7Q/3tRPMzKW2vgd1aoNtHGlWudi4n8 PG5FUwk22DdA4wRRGWmtH6z6YpwaiqzRkwVh+6MoryuA1z5dGQQ4r7vxSxYGSSNLpuZG +rwiamrNHXrGpnrdmHGJ/REX1Qy+kgb6L6rMUqB4f0P+Do1f7z/1t1Gh92a00Us/cYv+ +aYA== X-Gm-Message-State: AOAM533d71Fg3Pe4oc34aidqd0IMUiyF9Vxuo69JOJJvM+Rx2N1iBwPe VdsFmzYht+1lf73wjMJ2bHS7Ursh86xmiFiolIlr0FsdaeJgSLC1eZHHKl1VLGVa5681XMB+mkb mLzRf0KtRoyxLm3Guqc7se5zHbLL4t34ecV0qwJits/MfKSp9L0Y76YpyL4+NgpQBGw== X-Google-Smtp-Source: ABdhPJyy+oGDCdaFkuZF8q6uRRobpLSRPsWWN5OOKbYTxiSVCUZg89eVMwRW+DBWVUb3woUoShYRBw== X-Received: by 2002:a65:6719:: with SMTP id u25mr11755617pgf.346.1603684580513; Sun, 25 Oct 2020 20:56:20 -0700 (PDT) Received: from localhost.localdomain ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id z185sm10207463pfz.32.2020.10.25.20.56.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Oct 2020 20:56:19 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Date: Sun, 25 Oct 2020 20:56:01 -0700 Message-Id: <20201026035616.19264-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: References: MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH v4 00/15] bnxt fixes and enhancements 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" This patchset has support for VXLAN decap full offload, SR device support in tf_core and a few bug fixes. v1->v2: - Squashed some patches. - Updated commit logs. - Fixed a compilation issue reported during clang builds. v2->v3: - Added the SPDX header for cfa_resource_types.h in patch [01/11]. - Update commit logs. v3->v4: - Addressed review comments. - Added verbose commit messages. Ajit Khaparde (3): net/bnxt: increase the size of Rx CQ net/bnxt: fix to reset mbuf data offset net/bnxt: set thread safe flow ops flag Farah Smith (1): net/bnxt: add table scope to PF Mapping Jay Ding (1): net/bnxt: support two table scopes Kishore Padmanabha (2): net/bnxt: add hierarchical flow counters net/bnxt: add mapper support for wildcard TCAM Peter Spreadborough (2): net/bnxt: add stingray support to core layer net/bnxt: update ULP resource counts Rahul Gupta (1): net/bnxt: fix Rx performance by removing spinlock Somnath Kotur (2): net/bnxt: fix flow query count net/bnxt: modify HWRM command to create reps Venkat Duvvuru (3): net/bnxt: refactor flow id allocation net/bnxt: add VXLAN decap templates net/bnxt: add VXLAN decap offload support doc/guides/nics/bnxt.rst | 20 + doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/bnxt/bnxt.h | 10 +- drivers/net/bnxt/bnxt_cpr.c | 12 + drivers/net/bnxt/bnxt_cpr.h | 1 + drivers/net/bnxt/bnxt_ethdev.c | 8 + drivers/net/bnxt/bnxt_hwrm.c | 60 +- drivers/net/bnxt/bnxt_hwrm.h | 2 - drivers/net/bnxt/bnxt_reps.c | 18 +- drivers/net/bnxt/bnxt_ring.h | 2 +- drivers/net/bnxt/bnxt_rxq.c | 4 - drivers/net/bnxt/bnxt_rxq.h | 3 - drivers/net/bnxt/bnxt_rxr.c | 6 +- drivers/net/bnxt/bnxt_rxr.h | 2 - drivers/net/bnxt/bnxt_txr.h | 2 - drivers/net/bnxt/hcapi/hcapi_cfa.h | 39 +- drivers/net/bnxt/meson.build | 1 + drivers/net/bnxt/tf_core/cfa_resource_types.h | 82 +- drivers/net/bnxt/tf_core/tf_core.c | 57 +- drivers/net/bnxt/tf_core/tf_core.h | 57 +- drivers/net/bnxt/tf_core/tf_device.c | 9 +- drivers/net/bnxt/tf_core/tf_device.h | 47 +- drivers/net/bnxt/tf_core/tf_device_p4.c | 69 +- drivers/net/bnxt/tf_core/tf_device_p4.h | 6 + drivers/net/bnxt/tf_core/tf_device_p45.h | 105 + drivers/net/bnxt/tf_core/tf_em.h | 25 +- drivers/net/bnxt/tf_core/tf_em_common.c | 176 +- drivers/net/bnxt/tf_core/tf_em_common.h | 27 +- drivers/net/bnxt/tf_core/tf_em_host.c | 31 +- drivers/net/bnxt/tf_core/tf_global_cfg.c | 4 +- drivers/net/bnxt/tf_core/tf_global_cfg.h | 42 +- drivers/net/bnxt/tf_core/tf_msg.c | 13 +- drivers/net/bnxt/tf_core/tf_msg.h | 4 +- drivers/net/bnxt/tf_core/tf_session.h | 16 +- drivers/net/bnxt/tf_core/tf_tbl.h | 3 + drivers/net/bnxt/tf_core/tfp.c | 19 + drivers/net/bnxt/tf_core/tfp.h | 16 + drivers/net/bnxt/tf_ulp/bnxt_tf_common.h | 4 +- drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 50 +- drivers/net/bnxt/tf_ulp/bnxt_ulp.h | 12 + drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c | 129 +- drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 48 +- drivers/net/bnxt/tf_ulp/ulp_fc_mgr.c | 133 +- drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h | 19 + drivers/net/bnxt/tf_ulp/ulp_flow_db.c | 475 +++- drivers/net/bnxt/tf_ulp/ulp_flow_db.h | 46 + drivers/net/bnxt/tf_ulp/ulp_mapper.c | 83 +- drivers/net/bnxt/tf_ulp/ulp_mapper.h | 6 +- drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 85 +- drivers/net/bnxt/tf_ulp/ulp_rte_parser.h | 12 + .../net/bnxt/tf_ulp/ulp_template_db_class.c | 962 ++++--- .../net/bnxt/tf_ulp/ulp_template_db_enum.h | 42 +- .../net/bnxt/tf_ulp/ulp_template_db_field.h | 363 ++- .../tf_ulp/ulp_template_db_stingray_act.c | 116 +- .../tf_ulp/ulp_template_db_stingray_class.c | 2493 ++++++++++++++--- drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c | 9 +- .../bnxt/tf_ulp/ulp_template_db_wh_plus_act.c | 116 +- .../tf_ulp/ulp_template_db_wh_plus_class.c | 2489 +++++++++++++--- drivers/net/bnxt/tf_ulp/ulp_template_struct.h | 7 + drivers/net/bnxt/tf_ulp/ulp_tun.c | 310 ++ drivers/net/bnxt/tf_ulp/ulp_tun.h | 92 + drivers/net/bnxt/tf_ulp/ulp_utils.c | 125 + drivers/net/bnxt/tf_ulp/ulp_utils.h | 48 +- 63 files changed, 7225 insertions(+), 2050 deletions(-) create mode 100644 drivers/net/bnxt/tf_core/tf_device_p45.h create mode 100644 drivers/net/bnxt/tf_ulp/ulp_tun.c create mode 100644 drivers/net/bnxt/tf_ulp/ulp_tun.h