From patchwork Fri Apr 21 18:11:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Schacher X-Patchwork-Id: 126404 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 256F2429A8; Fri, 21 Apr 2023 20:12:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A0BCE4113D; Fri, 21 Apr 2023 20:12:19 +0200 (CEST) Received: from mail-oa1-f97.google.com (mail-oa1-f97.google.com [209.85.160.97]) by mails.dpdk.org (Postfix) with ESMTP id 426E1410FB for ; Fri, 21 Apr 2023 20:12:18 +0200 (CEST) Received: by mail-oa1-f97.google.com with SMTP id 586e51a60fabf-187edc01fa3so811432fac.3 for ; Fri, 21 Apr 2023 11:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1682100737; x=1684692737; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=7zWh+ASp5tXVg9LFMs+XpHjyDfabN433qwhiVjtxiYQ=; b=WtoIBUnMHL2tjrhdQ1b080hIKlswF93n8OmJaRkPEHfHKjfK30JFquFJEOJ3T/vyTb Aa2GJTpN48W68txyK22ibGYoh6UtSAnQ/YxD2dHdghpmOzUc51+iDlTS9TRMmbp68Uaz GQ63g1cuUDel64kdGCBO0sx4+Sm7OzaqThQzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682100737; x=1684692737; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7zWh+ASp5tXVg9LFMs+XpHjyDfabN433qwhiVjtxiYQ=; b=dsnBkSgqcJWlk4ePl+le7V5e8NqaYLgk5uAkCklNXsDjFcFyH8L8XiW54zmUmTxc+e lkTddtYsGtWLgwHYk/l2V5FbOxfgdAjOp96YI5gEjkLf6eT1uk10YpmVt/2N1m8wkh1D Gc2OOBHa7a2TceZpXau0NOSvNaf4QgblOixj9dau9R2UXrthlJoaACZtYnQWm5mqtI3C 86d8CH/m+QN2Vck2e/UC89rEZLkw/ZVMRYCpvwK7Cm2rW2AK4cSQQ4vp+TcuqO0y4r2v UQlXWUsfvO1YDEyrbzv0d2GIjAQJx4vBCSV7T6MYJI/CB2pTMd7XK2/6dT0Z9OfIxumc lJvg== X-Gm-Message-State: AAQBX9e/iDKB5v1u8miMCie712L0IVp4mOXitfD3xKrORzY4D4LFjn7i QeIo8UBrqDjOwDZGbI05yNZgPgRU0dqmdlRQKXAzfLu9ID/cOZk8wzPHHMgCr0SIHJCDZr5QznE 6ZtLCWkagBA38GK6G83BCXnpDnr4C956bslgvotPLiPFAkrO4hISD0+vHs9RFnSNn0ONYPWdL6b Ux0+lxkWrtQshc X-Google-Smtp-Source: AKy350avB395mcHEZ1gK6vTs7tJYwHCuJ1iAlCrDRSwrdDl1EPwtA9KPwLzwoFl7nnunfCmjqD3FEx1HjPHz X-Received: by 2002:a05:6870:b525:b0:184:3723:c145 with SMTP id v37-20020a056870b52500b001843723c145mr3709851oap.12.1682100736869; Fri, 21 Apr 2023 11:12:16 -0700 (PDT) Received: from r650-k2.dhcp.broadcom.net ([192.19.144.250]) by smtp-relay.gmail.com with ESMTPS id o21-20020a056870e81500b0017eb57c3417sm397528oan.19.2023.04.21.11.12.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 11:12:16 -0700 (PDT) X-Relaying-Domain: broadcom.com From: Randy Schacher To: dev@dpdk.org Subject: [PATCH v2 00/11] sync Truflow support with latest release Date: Fri, 21 Apr 2023 18:11:44 +0000 Message-Id: <20230421181155.2160482-1-stuart.schacher@broadcom.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Version 2 fixes: - misspellings - whitespace issues - signed off issues Kishore Padmanabha (1): net/bnxt: fix multi-root card support Randy Schacher (9): net/bnxt: remove deprecated features net/bnxt: update bnxt hsi structure net/bnxt: update copyright date and cleanup whitespace net/bnxt: update Truflow core net/bnxt: update ULP shared session support net/bnxt: add support for RSS action and Queue action net/bnxt: add ulp support for rte meter net/bnxt: update PTP support on Thor net/bnxt: add ulp support for ecpri Shuanglin Wang (1): net/bnxt: Avoid submitting hwrm rss request when rss mode disabled drivers/net/bnxt/bnxt.h | 77 +- drivers/net/bnxt/bnxt_cpr.c | 2 +- drivers/net/bnxt/bnxt_cpr.h | 2 +- drivers/net/bnxt/bnxt_ethdev.c | 211 +- drivers/net/bnxt/bnxt_filter.c | 2 +- drivers/net/bnxt/bnxt_filter.h | 6 +- drivers/net/bnxt/bnxt_flow.c | 75 +- drivers/net/bnxt/bnxt_hwrm.c | 272 +- drivers/net/bnxt/bnxt_hwrm.h | 40 +- drivers/net/bnxt/bnxt_irq.c | 2 +- drivers/net/bnxt/bnxt_irq.h | 3 +- drivers/net/bnxt/bnxt_nvm_defs.h | 3 +- drivers/net/bnxt/bnxt_reps.c | 4 +- drivers/net/bnxt/bnxt_reps.h | 2 +- drivers/net/bnxt/bnxt_ring.c | 7 +- drivers/net/bnxt/bnxt_ring.h | 3 +- drivers/net/bnxt/bnxt_rxq.c | 159 +- drivers/net/bnxt/bnxt_rxq.h | 2 +- drivers/net/bnxt/bnxt_rxr.c | 15 +- drivers/net/bnxt/bnxt_rxr.h | 3 +- drivers/net/bnxt/bnxt_rxtx_vec_avx2.c | 2 +- drivers/net/bnxt/bnxt_rxtx_vec_common.h | 2 +- drivers/net/bnxt/bnxt_rxtx_vec_neon.c | 2 +- drivers/net/bnxt/bnxt_rxtx_vec_sse.c | 2 +- drivers/net/bnxt/bnxt_stats.c | 2 +- drivers/net/bnxt/bnxt_stats.h | 2 +- drivers/net/bnxt/bnxt_txq.c | 3 +- drivers/net/bnxt/bnxt_txq.h | 2 +- drivers/net/bnxt/bnxt_txr.c | 95 +- drivers/net/bnxt/bnxt_txr.h | 4 +- drivers/net/bnxt/bnxt_util.c | 2 +- drivers/net/bnxt/bnxt_util.h | 3 +- drivers/net/bnxt/bnxt_vnic.c | 974 +- drivers/net/bnxt/bnxt_vnic.h | 80 +- drivers/net/bnxt/hsi_struct_def_dpdk.h | 5723 ++- drivers/net/bnxt/meson.build | 5 +- drivers/net/bnxt/rte_pmd_bnxt.c | 2 +- drivers/net/bnxt/rte_pmd_bnxt.h | 2 +- drivers/net/bnxt/tf_core/bitalloc.c | 3 +- drivers/net/bnxt/tf_core/bitalloc.h | 3 +- drivers/net/bnxt/tf_core/cfa_resource_types.h | 5 +- drivers/net/bnxt/tf_core/cfa_tcam_mgr.c | 2116 + drivers/net/bnxt/tf_core/cfa_tcam_mgr.h | 523 + .../net/bnxt/tf_core/cfa_tcam_mgr_device.h | 101 + .../net/bnxt/tf_core/cfa_tcam_mgr_hwop_msg.c | 201 + .../net/bnxt/tf_core/cfa_tcam_mgr_hwop_msg.h | 28 + drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c | 921 + drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.h | 20 + drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c | 926 + drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.h | 20 + drivers/net/bnxt/tf_core/cfa_tcam_mgr_sbmp.h | 126 + .../net/bnxt/tf_core/cfa_tcam_mgr_session.c | 377 + .../net/bnxt/tf_core/cfa_tcam_mgr_session.h | 54 + drivers/net/bnxt/tf_core/dpool.c | 3 +- drivers/net/bnxt/tf_core/dpool.h | 3 +- drivers/net/bnxt/tf_core/ll.c | 2 +- drivers/net/bnxt/tf_core/ll.h | 2 +- drivers/net/bnxt/tf_core/lookup3.h | 1 - drivers/net/bnxt/tf_core/meson.build | 38 +- drivers/net/bnxt/tf_core/rand.c | 2 +- drivers/net/bnxt/tf_core/rand.h | 3 +- drivers/net/bnxt/tf_core/stack.c | 2 +- drivers/net/bnxt/tf_core/stack.h | 3 +- drivers/net/bnxt/tf_core/tf_common.h | 3 +- drivers/net/bnxt/tf_core/tf_core.c | 56 +- drivers/net/bnxt/tf_core/tf_core.h | 189 +- drivers/net/bnxt/tf_core/tf_device.c | 53 +- drivers/net/bnxt/tf_core/tf_device.h | 9 +- drivers/net/bnxt/tf_core/tf_device_p4.c | 24 +- drivers/net/bnxt/tf_core/tf_device_p4.h | 3 +- drivers/net/bnxt/tf_core/tf_device_p58.c | 94 +- drivers/net/bnxt/tf_core/tf_device_p58.h | 2 +- drivers/net/bnxt/tf_core/tf_em.h | 3 +- drivers/net/bnxt/tf_core/tf_em_common.c | 10 +- drivers/net/bnxt/tf_core/tf_em_common.h | 4 +- .../net/bnxt/tf_core/tf_em_hash_internal.c | 2 +- drivers/net/bnxt/tf_core/tf_em_host.c | 3 +- drivers/net/bnxt/tf_core/tf_em_internal.c | 13 +- drivers/net/bnxt/tf_core/tf_ext_flow_handle.h | 4 +- drivers/net/bnxt/tf_core/tf_global_cfg.c | 2 +- drivers/net/bnxt/tf_core/tf_global_cfg.h | 3 +- drivers/net/bnxt/tf_core/tf_hash.c | 2 +- drivers/net/bnxt/tf_core/tf_hash.h | 3 +- drivers/net/bnxt/tf_core/tf_identifier.c | 111 +- drivers/net/bnxt/tf_core/tf_identifier.h | 7 +- drivers/net/bnxt/tf_core/tf_if_tbl.c | 59 +- drivers/net/bnxt/tf_core/tf_if_tbl.h | 11 +- drivers/net/bnxt/tf_core/tf_msg.c | 217 +- drivers/net/bnxt/tf_core/tf_msg.h | 38 +- drivers/net/bnxt/tf_core/tf_msg_common.h | 3 +- drivers/net/bnxt/tf_core/tf_project.h | 3 +- drivers/net/bnxt/tf_core/tf_resources.h | 3 +- drivers/net/bnxt/tf_core/tf_rm.c | 135 +- drivers/net/bnxt/tf_core/tf_rm.h | 6 +- drivers/net/bnxt/tf_core/tf_session.c | 121 +- drivers/net/bnxt/tf_core/tf_session.h | 80 +- .../net/bnxt/tf_core/tf_shadow_identifier.c | 190 - .../net/bnxt/tf_core/tf_shadow_identifier.h | 229 - drivers/net/bnxt/tf_core/tf_shadow_tcam.c | 837 - drivers/net/bnxt/tf_core/tf_shadow_tcam.h | 195 - drivers/net/bnxt/tf_core/tf_sram_mgr.c | 117 +- drivers/net/bnxt/tf_core/tf_sram_mgr.h | 23 +- drivers/net/bnxt/tf_core/tf_tbl.c | 8 +- drivers/net/bnxt/tf_core/tf_tbl.h | 4 +- drivers/net/bnxt/tf_core/tf_tbl_sram.c | 25 +- drivers/net/bnxt/tf_core/tf_tbl_sram.h | 6 +- drivers/net/bnxt/tf_core/tf_tcam.c | 451 +- drivers/net/bnxt/tf_core/tf_tcam.h | 41 +- drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.c | 286 + drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.h | 49 + drivers/net/bnxt/tf_core/tf_tcam_shared.c | 1146 +- drivers/net/bnxt/tf_core/tf_tcam_shared.h | 4 +- drivers/net/bnxt/tf_core/tf_util.c | 5 +- drivers/net/bnxt/tf_core/tf_util.h | 3 +- drivers/net/bnxt/tf_core/tfp.c | 2 +- drivers/net/bnxt/tf_core/tfp.h | 4 +- drivers/net/bnxt/tf_ulp/bnxt_tf_common.h | 3 +- drivers/net/bnxt/tf_ulp/bnxt_tf_pmd_shim.c | 251 +- drivers/net/bnxt/tf_ulp/bnxt_tf_pmd_shim.h | 37 +- drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 850 +- drivers/net/bnxt/tf_ulp/bnxt_ulp.h | 121 +- drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c | 280 +- drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c | 909 + .../bnxt/tf_ulp/generic_templates/meson.build | 18 +- .../generic_templates/ulp_template_db_act.c | 7000 +++- .../generic_templates/ulp_template_db_class.c | 33556 +++++++++++----- .../generic_templates/ulp_template_db_enum.h | 4366 +- .../generic_templates/ulp_template_db_field.h | 689 +- .../generic_templates/ulp_template_db_tbl.c | 16055 ++++++-- .../ulp_template_db_thor_act.c | 8714 ++-- .../ulp_template_db_thor_class.c | 10746 +++-- .../ulp_template_db_wh_plus_act.c | 1157 +- .../ulp_template_db_wh_plus_class.c | 288 +- drivers/net/bnxt/tf_ulp/meson.build | 26 +- drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 16 +- drivers/net/bnxt/tf_ulp/ulp_fc_mgr.c | 26 +- drivers/net/bnxt/tf_ulp/ulp_fc_mgr.h | 8 +- drivers/net/bnxt/tf_ulp/ulp_flow_db.c | 29 +- drivers/net/bnxt/tf_ulp/ulp_flow_db.h | 14 +- drivers/net/bnxt/tf_ulp/ulp_gen_hash.c | 2 +- drivers/net/bnxt/tf_ulp/ulp_gen_hash.h | 3 +- drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c | 37 +- drivers/net/bnxt/tf_ulp/ulp_gen_tbl.h | 5 +- drivers/net/bnxt/tf_ulp/ulp_ha_mgr.c | 131 +- drivers/net/bnxt/tf_ulp/ulp_ha_mgr.h | 6 +- drivers/net/bnxt/tf_ulp/ulp_mapper.c | 726 +- drivers/net/bnxt/tf_ulp/ulp_mapper.h | 4 +- drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c | 2 +- drivers/net/bnxt/tf_ulp/ulp_mark_mgr.h | 3 +- drivers/net/bnxt/tf_ulp/ulp_matcher.c | 14 +- drivers/net/bnxt/tf_ulp/ulp_matcher.h | 3 +- drivers/net/bnxt/tf_ulp/ulp_port_db.c | 64 +- drivers/net/bnxt/tf_ulp/ulp_port_db.h | 35 +- drivers/net/bnxt/tf_ulp/ulp_rte_handler_tbl.c | 30 +- drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 512 +- drivers/net/bnxt/tf_ulp/ulp_rte_parser.h | 46 +- drivers/net/bnxt/tf_ulp/ulp_template_struct.h | 25 +- drivers/net/bnxt/tf_ulp/ulp_tun.c | 2 +- drivers/net/bnxt/tf_ulp/ulp_tun.h | 3 +- drivers/net/bnxt/tf_ulp/ulp_utils.c | 2 +- drivers/net/bnxt/tf_ulp/ulp_utils.h | 3 +- lib/cmdline/cmdline_parse_string.h | 2 +- lib/cmdline/cmdline_private.h | 2 +- 163 files changed, 79573 insertions(+), 25429 deletions(-) create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr.c create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr.h create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_device.h create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_hwop_msg.c create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_hwop_msg.h create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.c create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_p4.h create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.c create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_p58.h create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_sbmp.h create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_session.c create mode 100644 drivers/net/bnxt/tf_core/cfa_tcam_mgr_session.h delete mode 100644 drivers/net/bnxt/tf_core/tf_shadow_identifier.c delete mode 100644 drivers/net/bnxt/tf_core/tf_shadow_identifier.h delete mode 100644 drivers/net/bnxt/tf_core/tf_shadow_tcam.c delete mode 100644 drivers/net/bnxt/tf_core/tf_shadow_tcam.h create mode 100644 drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.c create mode 100644 drivers/net/bnxt/tf_core/tf_tcam_mgr_msg.h create mode 100644 drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c