[PATCH] net/bnxt: fix Thor svif size mismatch for generic tables

2021-11-21 Thread Venkat Duvvuru
;) Cc: sta...@dpdk.org Signed-off-by: Mike Baucom Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- .../generic_templates/ulp_template_db_enum.h | 15 +- .../generic_templates/ulp_template_db_tbl.c | 73 ++-- .../ulp_template_db_thor_class.c | 175 ++-

[PATCH 4/4] net/bnxt: fix ULP context list deadlock

2021-11-16 Thread Venkat Duvvuru
dd HA support in ULP") Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 7 --- drivers/net/bnxt/tf_ulp/ulp_ha_mgr.c | 8 2 files changed, 8 insertions(+), 7 deletion

[PATCH 3/4] net/bnxt: fix multi adapter support

2021-11-16 Thread Venkat Duvvuru
correct ulp context. These changes help in support of multiple network cards using single dpdk application. Fixes: d75b55121bcd ("net/bnxt: add context list for timers") Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher Reviewed-by: Mich

[PATCH 2/4] net/bnxt: fix sram resource free block list

2021-11-16 Thread Venkat Duvvuru
block is not empty. Fixes: 37ff91c158a3 ("net/bnxt: add SRAM manager model") Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_sram_mgr.c | 16 +--- 1 file changed, 9

[PATCH 1/4] net/bnxt: remove settings to support multiple session

2021-11-16 Thread Venkat Duvvuru
From: Jay Ding Move wc_tcam_slices_per_row and database structure of global_cfg and if_tbl to session structure to support multiple TruFlow sessions with different card type under single dpdk application instance. Signed-off-by: Jay Ding Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith

[PATCH 0/4] fixes to TruFlow

2021-11-16 Thread Venkat Duvvuru
This patch set adds fixes to Truflow feature. Jay Ding (1): net/bnxt: remove settings to support multiple session Kishore Padmanabha (3): net/bnxt: fix sram resource free block list net/bnxt: fix multi adapter support net/bnxt: fix ULP context list deadlock drivers/net/bnxt/tf_core/tf_d

[dpdk-dev] [PATCH v2 19/19] net/bnxt: check for mismatch of control and physical port

2021-10-26 Thread Venkat Duvvuru
From: Kishore Padmanabha During the parsing of the ingress port ignore for a flow, added check to match the control port and the physical port that is configured to be ignored. If they do not match then the configuration to setup the svif ignore shall fail. Signed-off-by: Kishore Padmanabha Rev

[dpdk-dev] [PATCH v2 16/19] net/bnxt: add TruFlow and AFM SRAM partitioning support

2021-10-26 Thread Venkat Duvvuru
From: Jay Ding Implement set/get_sram_policy which support both rx/tx direction truflow type the specific SRAM bank. Signed-off-by: Jay Ding Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher Reviewed-by: Farah Smith --- drivers/net/bnxt/tf_core/tf_core.c | 82 ++ drivers

[dpdk-dev] [PATCH v2 15/19] net/bnxt: add new API TruFlow get SRAM resources

2021-10-26 Thread Venkat Duvvuru
From: Jay Ding Implement tf_get_sram_resources to return SRAM partition information, including bank count and SRAM profile number. Signed-off-by: Jay Ding Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith Reviewed-by: Randy Schacher --- drivers/net/bnxt/hsi_struct_def_dpdk.h | 11

[dpdk-dev] [PATCH v2 18/19] net/bnxt: remove 2-slice WC entries for scale

2021-10-26 Thread Venkat Duvvuru
From: Mike Baucom The type-5 WC IPv6 flows were removed in order to increase the scale for app-id=3. The app no longer supports 2-slice WC entries. Signed-off-by: Mike Baucom Signed-off-by: Venkat Duvvuru Reviewed-by: Kishore Padmanabha Reviewed-by: Randy Schacher --- drivers/net/bnxt

[dpdk-dev] [PATCH v2 17/19] net/bnxt: add Tx TruFlow table config for p4

2021-10-26 Thread Venkat Duvvuru
From: Jay Ding Add TX direction TruFlow table type config to be compatible with other devices. For P4, the TX cfg is duplicated from RX. Signed-off-by: Jay Ding Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_device.c

[dpdk-dev] [PATCH v2 12/19] net/bnxt: updated the log messages

2021-10-26 Thread Venkat Duvvuru
From: Kishore Padmanabha Some of the error level log messages are made debug level messages. When Truflow is not enabled then Truflow init error messages are moved to debug level instead. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Shahaji Bhosle Reviewed-by

[dpdk-dev] [PATCH v2 11/19] net/bnxt: fix clang compiler warnings

2021-10-26 Thread Venkat Duvvuru
From: Shahaji Bhosle Typecast flow_item type, action_item type and the ENUMs to uint32_t before comparing. Fixes: 53a0d4f7663 ("net/bnxt: support flow API item parsing") Signed-off-by: Shahaji Bhosle Signed-off-by: Venkat Duvvuru Reviewed-by: Ajit Khaparde --- drivers/net/b

[dpdk-dev] [PATCH v2 14/19] net/bnxt: delete the VF pair before VF representor alloc

2021-10-26 Thread Venkat Duvvuru
restarted. If the deletion of an existing VF rep is not done then hw pipeline is not cleaned and a new allocation shall leave the hw in inconsistent state. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Ajit Khaparde Reviewed-by: Shahaji Bhosle --- drivers/net/bnxt

[dpdk-dev] [PATCH v2 10/19] net/bnxt: remove accumulation of stats devargs argument

2021-10-26 Thread Venkat Duvvuru
Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Ajit Khaparde Reviewed-by: Michael Baucom --- drivers/net/bnxt/bnxt.h | 3 -- drivers/net/bnxt/bnxt_ethdev.c | 53 drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 8 - drivers/net/bnxt/tf_ulp

[dpdk-dev] [PATCH v2 08/19] net/bnxt: get TruFlow version

2021-10-26 Thread Venkat Duvvuru
From: Jay Ding Implement tf_get_version that returns TruFlow version numbers and CFA resources capbilities. Signed-off-by: Jay Ding Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith Reviewed-by: Randy Schacher Reviewed-by: Peter Spreadborough --- drivers/net/bnxt

[dpdk-dev] [PATCH v2 07/19] net/bnxt: support inner IP header for GRE tunnel flows

2021-10-26 Thread Venkat Duvvuru
From: Kishore Padmanabha This change allows adding IP header matches for GRE flows that does not specify outer IP header in the flow match pattern. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom Reviewed-by: Ajit Khaparde Reviewed-by: Randy

[dpdk-dev] [PATCH v2 04/19] net/bnxt: add clear on read support

2021-10-26 Thread Venkat Duvvuru
-off-by: Farah Smith Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher Reviewed-by: Shahaji Bhosle --- drivers/net/bnxt/hsi_struct_def_dpdk.h | 34 -- drivers/net/bnxt/tf_core/tf_msg.c | 24 +++--- drivers/net

[dpdk-dev] [PATCH v2 09/19] net/bnxt: increase flow scale for Thor

2021-10-26 Thread Venkat Duvvuru
From: Shahaji Bhosle * Updated defines and data types to allow 256 VFRs. * Increased the encap record cache to support 256 to 4K entries. So VxLAN connections can be scaled to 4K entries. Signed-off-by: Shahaji Bhosle Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed

[dpdk-dev] [PATCH v2 03/19] net/bnxt: fix the out of boundary issue in hash list

2021-10-26 Thread Venkat Duvvuru
From: Kishore Padmanabha The number of hash bucket list calculation is fixed and added check to limit the out of boundary condition Fixes: 0001cc58d362 ("net/bnxt: support generic hash table") Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Mich

[dpdk-dev] [PATCH v2 02/19] net/bnxt: add support for multi root capability

2021-10-26 Thread Venkat Duvvuru
From: Kishore Padmanabha Update driver to read the multi root capability and ignore pci address check while creating ulp session when multi root capability is enabled in the hardware. DPDK HSI version updated from 1.10.1.70 to 1.10.2.54. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat

[dpdk-dev] [PATCH v2 05/19] net/bnxt: add capability option for socket redirect

2021-10-26 Thread Venkat Duvvuru
From: Kishore Padmanabha Added support for socket redirect feature capability so applications can enable or disable this feature. This patch contains the template changes. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom Reviewed-by: Randy Schacher

[dpdk-dev] [PATCH v2 01/19] net/bnxt: add NAT support for dest IP and port combination

2021-10-26 Thread Venkat Duvvuru
Signed-off-by: Venkat Duvvuru Reviewed-by: Shahaji Bhosle Reviewed-by: Michael Baucom Reviewed-by: Randy Schacher --- .../generic_templates/ulp_template_db_act.c | 376 +++--- .../generic_templates/ulp_template_db_enum.h | 18 +- .../generic_templates/ulp_template_db_tbl.c | 14

[dpdk-dev] [PATCH v2 00/19] fixes and enhancements to Truflow

2021-10-26 Thread Venkat Duvvuru
This patch set adds enhancements and fixes to Truflow feature. Enhancements include: * Scaling numbers on Thor * Inner IP header support for GRE tunnel flows * Enable wildcard match for ingress flows * Add clear on read for flow stats on Thor * Add nat support for dest IP and port combination * Re

[dpdk-dev] [PATCH 8/9] net/bnxt: get Truflow version

2021-10-01 Thread Venkat Duvvuru
From: Jay Ding Implement TF_GET_VERSION that returns Truflow version numbers and CFA resources capabilities. Signed-off-by: Jay Ding Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith Reviewed-by: Randy Schacher Reviewed-by: Peter Spreadborough --- drivers/net/bnxt

[dpdk-dev] [PATCH 9/9] net/bnxt: increase scaling numbers on Thor

2021-10-01 Thread Venkat Duvvuru
From: Shahaji Bhosle * Updated defines and data types to allow 256 VFRs. * Increased the encap record cache to support 256 to 4K entries. So vxlan connections can be scaled to 4k entries. Signed-off-by: Shahaji Bhosle Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed

[dpdk-dev] [PATCH 4/9] net/bnxt: add clear on read stats support for Thor

2021-10-01 Thread Venkat Duvvuru
: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher Reviewed-by: Shahaji Bhosle --- drivers/net/bnxt/hsi_struct_def_dpdk.h | 34 -- drivers/net/bnxt/tf_core/tf_msg.c | 24 +++--- drivers/net/bnxt/tf_core/tf_msg.h | 6

[dpdk-dev] [PATCH 5/9] net/bnxt: add feature capability option for socket direct

2021-10-01 Thread Venkat Duvvuru
From: Kishore Padmanabha Added support for socket direct feature capability so applications can enable or disable this feature. This patch contains the template changes. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom Reviewed-by: Randy Schacher

[dpdk-dev] [PATCH 3/9] net/bnxt: fix the out of boundary issue in hash list

2021-10-01 Thread Venkat Duvvuru
From: Kishore Padmanabha The number of hash bucket list calculation is fixed and added check to limit the out of boundary condition Fixes: 0001cc58d362 ("net/bnxt: support generic hash table") Cc: sta...@dpdk.org Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru R

[dpdk-dev] [PATCH 1/9] net/bnxt: add nat support for dest IP and port combination

2021-10-01 Thread Venkat Duvvuru
Signed-off-by: Venkat Duvvuru Reviewed-by: Shahaji Bhosle Reviewed-by: Michael Baucom Reviewed-by: Randy Schacher --- .../generic_templates/ulp_template_db_act.c | 376 +++--- .../generic_templates/ulp_template_db_enum.h | 18 +- .../generic_templates/ulp_template_db_tbl.c | 14

[dpdk-dev] [PATCH 2/9] net/bnxt: support multi root capability flag

2021-10-01 Thread Venkat Duvvuru
From: Kishore Padmanabha Update driver to read the multi root capability and ignore pci address check while creating ulp session when multi root capability is enabled in the hardware. DPDK HSI version updated from 1.10.1.70 to 1.10.2.54. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat

[dpdk-dev] [PATCH 6/9] net/bnxt: enable wildcard match for ingress flows

2021-10-01 Thread Venkat Duvvuru
From: Kishore Padmanabha Enabled wildcard match support for ipv4 ingress flows. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom Reviewed-by: Randy Schacher --- .../generic_templates/ulp_template_db_enum.h | 4

[dpdk-dev] [PATCH 7/9] net/bnxt: support inner IP header for GRE tunnel flows

2021-10-01 Thread Venkat Duvvuru
From: Kishore Padmanabha This change allows adding ip header matches for GRE flows that does not specify outer ip header in the flow match pattern. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom Reviewed-by: Ajit Khaparde Reviewed-by: Randy

[dpdk-dev] [PATCH 0/9] fixes and enhancements to Truflow

2021-10-01 Thread Venkat Duvvuru
This patch set adds enhancements and fixes to Truflow feature. Enhancements include: * Scaling numbers on Thor * Inner IP header support for GRE tunnel flows * Enable wildcard match for ingress flows * Add clear on read for flow stats on Thor * Add nat support for dest IP and port combination Far

[dpdk-dev] [PATCH v4 12/13] net/bnxt: add SRAM manager shared session

2021-09-20 Thread Venkat Duvvuru
From: Farah Smith Fix shared session support issues due to SRAM manager additions. Shared session does not support slices within RM blocks. Calculate resources required without slices and determine base addresses using old methods for the shared session. Signed-off-by: Farah Smith Reviewed-by:

[dpdk-dev] [PATCH v4 10/13] net/bnxt: change log level to debug

2021-09-20 Thread Venkat Duvvuru
From: Farah Smith Adjust info message to debug level to prevent excessive logging. Signed-off-by: Farah Smith Reviewed-by: Mike Baucom Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/tf_tbl_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf

[dpdk-dev] [PATCH v4 11/13] net/bnxt: dynamically allocate space for EM defrag function

2021-09-20 Thread Venkat Duvvuru
From: Randy Schacher The dynamic pool allocation defrag function currently uses stack allocation. To improve use of stack space, dynamically allocate and deallocate memory for use to defragment the dynamic pool of EM resources. Signed-off-by: Randy Schacher Reviewed-by: Peter Spreadborough Rev

[dpdk-dev] [PATCH v4 05/13] net/bnxt: add flow template support for Thor

2021-09-20 Thread Venkat Duvvuru
From: Kishore Padmanabha Template adds non-VFR based support for testpmd with: matches to include - DMAC, SIP, DIP, Proto, Sport, Dport - SIP, DIP, Proto, Sport, Dport actions: - count, drop Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Mike Baucom Acked-by

[dpdk-dev] [PATCH v4 03/13] net/bnxt: add flow meter drop counter support

2021-09-20 Thread Venkat Duvvuru
From: Jay Ding This patch adds flow meter drop counter support for Thor. Signed-off-by: Jay Ding Reviewed-by: Farah Smith Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/cfa_resource_types.h | 5 +- drivers/net/bnxt/tf_core/tf_core.h| 8 +- drivers/net/bnxt/tf_core/tf_d

[dpdk-dev] [PATCH v4 08/13] net/bnxt: add wild card TCAM byte order for Thor

2021-09-20 Thread Venkat Duvvuru
From: Kishore Padmanabha The wild card TCAM for Thor platform is different from the profile TCAM byte order. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Shuanglin Wang Reviewed-by: Mike Baucom Reviewed-by: Ajit Khaparde --- .../generic_templates

[dpdk-dev] [PATCH v4 04/13] net/bnxt: add SRAM manager model

2021-09-20 Thread Venkat Duvvuru
From: Farah Smith The SRAM manager supports allocation and free of variable sized records within SRAM memory. These record sizes are 8, 16, 32, or 64B. The SRAM manager algorithm will not fragment memory during run time. Previous implementation only included fixed size 64B records regardless of

[dpdk-dev] [PATCH v4 01/13] net/bnxt: updates to TF core index table

2021-09-20 Thread Venkat Duvvuru
From: Farah Smith Update the TRUFLOW core index table and remove unused shadow table functionality. Signed-off-by: Farah Smith Reviewed-by: Peter Spreadborough Acked-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/tf_core.c | 65 -- drivers/net/bnxt/tf_core/tf_core.h

[dpdk-dev] [PATCH v4 00/13] enhancements to host based flow table management

2021-09-20 Thread Venkat Duvvuru
This patch set adds support for new offload features/enhancments for Thor adapters like VF representor support, new flow matches/actions & dynamic SRAM manager support. Farah Smith (4): net/bnxt: updates to TF core index table net/bnxt: add SRAM manager model net/bnxt: change log level to de

[dpdk-dev] [PATCH v4 02/13] net/bnxt: enable dpool allocator

2021-09-20 Thread Venkat Duvvuru
From: Peter Spreadborough Enable dynamic entry allocator for Exact Match SRAM entries. Deprecate static entry allocator code. Signed-off-by: Peter Spreadborough Reviewed-by: Randy Schacher Acked-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/tf_device_p58.c | 4 - drivers/net/bnxt/tf_

Re: [dpdk-dev] [PATCH v3 04/13] net/bnxt: add Thor SRAM mgr model

2021-09-16 Thread Venkat Duvvuru
On Thu, Sep 16, 2021 at 7:20 PM Ferruh Yigit wrote: > > On 9/11/2021 4:30 PM, Venkat Duvvuru wrote: > > diff --git a/meson_options.txt b/meson_options.txt > > index 0e92734c49..f686e6d92a 100644 > > --- a/meson_options.txt > > +++ b/meson_options.txt > > @@

[dpdk-dev] [PATCH v3 11/13] net/bnxt: dynamically allocate space for EM defrag function

2021-09-11 Thread Venkat Duvvuru
From: Randy Schacher Alter defrag function to dynamically allocate and delete free_list and adj_list buffers. Signed-off-by: Randy Schacher Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/dpool.c | 38 +--- 1 file changed, 25 insertions(+), 13 deletio

[dpdk-dev] [PATCH v3 12/13] net/bnxt: sram manager shared session

2021-09-11 Thread Venkat Duvvuru
From: Farah Smith Fix shared session support issues due to SRAM manager additions. Shared session does not support slices within RM blocks. Calculate resources required without slices and determine base addresses using old methods for the shared session. Signed-off-by: Farah Smith Reviewed-by

[dpdk-dev] [PATCH v3 08/13] net/bnxt: add wild card TCAM byte order for Thor

2021-09-11 Thread Venkat Duvvuru
From: Kishore Padmanabha The wild card tcam for Thor platform is different from the profile tcam byte order. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Shuanglin Wang Reviewed-by: Michael Baucom Reviewed-by: Ajit Khaparde --- .../generic_templates

[dpdk-dev] [PATCH v3 10/13] net/bnxt: tf core SRAM Manager

2021-09-11 Thread Venkat Duvvuru
From: Farah Smith Adjust info message to debug level to prevent excessive logging. Signed-off-by: Farah Smith Reviewed-by: Michael Baucom --- drivers/net/bnxt/tf_core/tf_tbl_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/tf_tbl_sram.c b/dr

[dpdk-dev] [PATCH v3 05/13] net/bnxt: add flow templates support for Thor

2021-09-11 Thread Venkat Duvvuru
From: Kishore Padmanabha Template adds non-VFR based support for testpmd with: matches to include - DMAC, SIP, DIP, Proto, Sport, Dport - SIP, DIP, Proto, Sport, Dport actions: - count, drop Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Mike Baucom --- drivers

[dpdk-dev] [PATCH v3 01/13] net/bnxt: tf core index table updates

2021-09-11 Thread Venkat Duvvuru
From: Farah Smith Remove unused shadow table functionality. Signed-off-by: Farah Smith Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/tf_core.c | 65 -- drivers/net/bnxt/tf_core/tf_core.h | 103 +-- drivers/net/bnxt/tf_core/tf_device

[dpdk-dev] [PATCH v3 02/13] net/bnxt: enable dpool allocator

2021-09-11 Thread Venkat Duvvuru
From: Peter Spreadborough Enable dynamic entry allocator for EM SRAM entries. Deprecate static entry allocator code. Signed-off-by: Peter Spreadborough Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_device_p58.c | 4 - drivers/net/bnxt/tf_core/tf_em.h | 10 -

[dpdk-dev] [PATCH v3 00/13] enhancements to host based flow table management

2021-09-11 Thread Venkat Duvvuru
This patch set adds support for new offload features/enhancments for Thor adapters like VF representor support, new flow matches/actions & dynamic SRAM manager support. v2 ==> v3 = * Fixed compilation issue. Farah Smith (4): net/bnxt: tf core index table updates net/bnxt: add Thor SRA

[dpdk-dev] [PATCH v3 03/13] net/bnxt: add flow meter drop counter support

2021-09-11 Thread Venkat Duvvuru
From: Jay Ding - Add flow meter drop counter support for Thor. Signed-off-by: Jay Ding Reviewed-by: Farah Smith Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/cfa_resource_types.h | 5 +- drivers/net/bnxt/tf_core/tf_core.h| 8 +- drivers/net/bnxt/tf_core/tf_device_p58.

[dpdk-dev] [PATCH v3 04/13] net/bnxt: add Thor SRAM mgr model

2021-09-11 Thread Venkat Duvvuru
From: Farah Smith Add dynamic SRAM manager allocation support. Signed-off-by: Farah Smith Reviewed-by: Shahaji Bhosle Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/ll.c | 3 + drivers/net/bnxt/tf_core/ll.h | 50 +- drivers/net/bnxt/tf_core/meson.bui

[dpdk-dev] [PATCH v2 10/13] net/bnxt: tf core SRAM Manager

2021-09-08 Thread Venkat Duvvuru
From: Farah Smith Adjust info message to debug level to prevent excessive logging. Signed-off-by: Farah Smith Reviewed-by: Michael Baucom --- drivers/net/bnxt/tf_core/tf_tbl_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/tf_tbl_sram.c b/dr

[dpdk-dev] [PATCH v2 12/13] net/bnxt: sram manager shared session

2021-09-08 Thread Venkat Duvvuru
From: Farah Smith Fix shared session support issues due to SRAM manager additions. Shared session does not support slices within RM blocks. Calculate resources required without slices and determine base addresses using old methods for the shared session. Signed-off-by: Farah Smith Reviewed-by

[dpdk-dev] [PATCH v2 11/13] net/bnxt: dynamically allocate space for EM defrag function

2021-09-08 Thread Venkat Duvvuru
From: Randy Schacher Alter defrag function to dynamically allocate and delete free_list and adj_list buffers. Signed-off-by: Randy Schacher Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/dpool.c | 38 +--- 1 file changed, 25 insertions(+), 13 deletio

[dpdk-dev] [PATCH v2 08/13] net/bnxt: add wild card TCAM byte order for Thor

2021-09-08 Thread Venkat Duvvuru
From: Kishore Padmanabha The wild card tcam for Thor platform is different from the profile tcam byte order. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Shuanglin Wang Reviewed-by: Michael Baucom Reviewed-by: Ajit Khaparde --- .../generic_templates

[dpdk-dev] [PATCH v2 04/13] net/bnxt: add Thor SRAM mgr model

2021-09-08 Thread Venkat Duvvuru
From: Farah Smith Add dynamic SRAM manager allocation support. Signed-off-by: Farah Smith Reviewed-by: Shahaji Bhosle Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/ll.c | 3 + drivers/net/bnxt/tf_core/ll.h | 50 +- drivers/net/bnxt/tf_core/meson.bui

[dpdk-dev] [PATCH v2 00/13] enhancements to host based flow table management

2021-09-08 Thread Venkat Duvvuru
This patch set adds support for new offload features/enhancments for Thor adapters like VF representor support, new flow matches/actions & dynamic SRAM manager support. v1 ==> v2 = 1. Fixed compilation issues 2. Abandoned patch 14 Farah Smith (4): net/bnxt: tf core index table updates

[dpdk-dev] [PATCH v2 05/13] net/bnxt: add flow templates support for Thor

2021-09-08 Thread Venkat Duvvuru
From: Kishore Padmanabha Template adds non-VFR based support for testpmd with: matches to include - DMAC, SIP, DIP, Proto, Sport, Dport - SIP, DIP, Proto, Sport, Dport actions: - count, drop Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Mike Baucom --- drivers

[dpdk-dev] [PATCH v2 03/13] net/bnxt: add flow meter drop counter support

2021-09-08 Thread Venkat Duvvuru
From: Jay Ding - Add flow meter drop counter support for Thor. Signed-off-by: Jay Ding Reviewed-by: Farah Smith Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/cfa_resource_types.h | 5 +- drivers/net/bnxt/tf_core/tf_core.h| 8 +- drivers/net/bnxt/tf_core/tf_device_p58.

[dpdk-dev] [PATCH v2 02/13] net/bnxt: enable dpool allocator

2021-09-08 Thread Venkat Duvvuru
From: Peter Spreadborough Enable dynamic entry allocator for EM SRAM entries. Deprecate static entry allocator code. Signed-off-by: Peter Spreadborough Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_device_p58.c | 4 - drivers/net/bnxt/tf_core/tf_em.h | 10 -

[dpdk-dev] [PATCH v2 01/13] net/bnxt: tf core index table updates

2021-09-08 Thread Venkat Duvvuru
From: Farah Smith Remove unused shadow table functionality. Signed-off-by: Farah Smith Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/tf_core.c | 65 -- drivers/net/bnxt/tf_core/tf_core.h | 103 +-- drivers/net/bnxt/tf_core/tf_device

[dpdk-dev] [PATCH 10/14] net/bnxt: tf core SRAM Manager

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Adjust info message to debug level to prevent excessive logging. Signed-off-by: Farah Smith Reviewed-by: Michael Baucom --- drivers/net/bnxt/tf_core/tf_tbl_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/tf_tbl_sram.c b/dr

[dpdk-dev] [PATCH 12/14] net/bnxt: sram manager shared session

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Fix shared session support issues due to SRAM manager additions. Shared session does not support slices within RM blocks. Calculate resources required without slices and determine base addresses using old methods for the shared session. Signed-off-by: Farah Smith Reviewed-by

[dpdk-dev] [PATCH 14/14] net/bnxt: add support for testpmd co-existence

2021-09-01 Thread Venkat Duvvuru
Currently, testpmd support in ULP is enabled only during compilation time. This patch adds support for testpmd during runtime using devarg "testpmd". Signed-off-by: Venkat Duvvuru Reviewed-by: Kishore Padmanabha --- drivers/net/bnxt/bnxt.h | 3 ++ driver

[dpdk-dev] [PATCH 11/14] net/bnxt: dynamically allocate space for EM defrag function

2021-09-01 Thread Venkat Duvvuru
From: Randy Schacher Alter defrag function to dynamically allocate and delete free_list and adj_list buffers. Signed-off-by: Randy Schacher Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/dpool.c | 38 +--- 1 file changed, 25 insertions(+), 13 deletio

[dpdk-dev] [PATCH 08/14] net/bnxt: add wild card TCAM byte order for Thor

2021-09-01 Thread Venkat Duvvuru
From: Kishore Padmanabha The wild card tcam for Thor platform is different from the profile tcam byte order. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Shuanglin Wang Reviewed-by: Michael Baucom Reviewed-by: Ajit Khaparde --- .../generic_templates

[dpdk-dev] [PATCH 05/14] net/bnxt: add flow templates support for Thor

2021-09-01 Thread Venkat Duvvuru
From: Kishore Padmanabha Template adds non-VFR based support for testpmd with: matches to include - DMAC, SIP, DIP, Proto, Sport, Dport - SIP, DIP, Proto, Sport, Dport actions: - count, drop Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Mike Baucom --- drivers

[dpdk-dev] [PATCH 02/14] net/bnxt: enable dpool allocator

2021-09-01 Thread Venkat Duvvuru
From: Peter Spreadborough Enable dynamic entry allocator for EM SRAM entries. Deprecate static entry allocator code. Signed-off-by: Peter Spreadborough Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_device_p58.c | 4 - drivers/net/bnxt/tf_core/tf_em.h | 10 -

[dpdk-dev] [PATCH 01/14] net/bnxt: tf core index table updates

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Remove unused shadow table functionality. Signed-off-by: Farah Smith Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/tf_core.c | 65 -- drivers/net/bnxt/tf_core/tf_core.h | 103 +-- drivers/net/bnxt/tf_core/tf_device

[dpdk-dev] [PATCH 00/14] enhancements to host based flow table management

2021-09-01 Thread Venkat Duvvuru
TCAM byte order for Thor net/bnxt: add flow templates for Thor net/bnxt: add enhancements to TF ULP Peter Spreadborough (1): net/bnxt: enable dpool allocator Randy Schacher (1): net/bnxt: dynamically allocate space for EM defrag function Venkat Duvvuru (1): net/bnxt: add support for testpm

[dpdk-dev] [PATCH 03/14] net/bnxt: add flow meter drop counter support

2021-09-01 Thread Venkat Duvvuru
From: Jay Ding - Add flow meter drop counter support for Thor. Signed-off-by: Jay Ding Reviewed-by: Farah Smith Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/cfa_resource_types.h | 5 +- drivers/net/bnxt/tf_core/tf_core.h| 8 +- drivers/net/bnxt/tf_core/tf_device_p58.

[dpdk-dev] [PATCH 04/14] net/bnxt: add Thor SRAM mgr model

2021-09-01 Thread Venkat Duvvuru
From: Farah Smith Add dynamic SRAM manager allocation support. Signed-off-by: Farah Smith Reviewed-by: Shahaji Bhosle Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/ll.c | 3 + drivers/net/bnxt/tf_core/ll.h | 50 +- drivers/net/bnxt/tf_core/meson.bui

[dpdk-dev] [PATCH 55/58] net/bnxt: add support for ULP context list for timers

2021-05-30 Thread Venkat Duvvuru
From: Kishore Padmanabha The alarm callback needs to have a valid context pointer when it is invoked, the context could become invalid if the port goes down and the callback is invoked before it is cancelled. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Randy

[dpdk-dev] [PATCH 54/58] net/bnxt: add support for icmp6 ULP parsing

2021-05-30 Thread Venkat Duvvuru
From: Kishore Padmanabha This patch adds support for parsing rte_flow items for icmp6 flows. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_ulp/ulp_rte_handler_tbl.c | 4 +- drivers/net/bnxt/tf_ulp/ulp_rte_parser.c

[dpdk-dev] [PATCH 51/58] net/bnxt: process resource lists before session open

2021-05-30 Thread Venkat Duvvuru
allocated on demand. The sum of both named and unnamed resources must be requested when initializing the session. The ulp_init now processes both lists prior to calling tf_open_session for both shared and regular sessions. Signed-off-by: Mike Baucom Signed-off-by: Venkat Duvvuru Reviewed-by: Randy

[dpdk-dev] [PATCH 53/58] net/bnxt: add HA support in ULP

2021-05-30 Thread Venkat Duvvuru
From: Mike Baucom Added the ability for cooperative applications to share resources and perform some high availability functions. Signed-off-by: Mike Baucom Signed-off-by: Venkat Duvvuru Reviewed-by: Shahaji Bhosle Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_ulp/bnxt_ulp.c

[dpdk-dev] [PATCH 48/58] net/bnxt: add shared session support to ULP

2021-05-30 Thread Venkat Duvvuru
Signed-off-by: Mike Baucom Signed-off-by: Venkat Duvvuru Reviewed-by: Kishore Padmanabha --- drivers/net/bnxt/bnxt.h |2 + drivers/net/bnxt/bnxt_ethdev.c| 50 + drivers/net/bnxt/tf_ulp/bnxt_ulp.c| 645 +++-- drivers/net/bnxt/tf_ulp

[dpdk-dev] [PATCH 41/58] net/bnxt: add support for wild card pattern match

2021-05-30 Thread Venkat Duvvuru
From: Kishore Padmanabha The computational field is enabled for wild card pattern support. The template checks the computational field to add a flow as wild card entry or exact match entry. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Venkat Duvvuru Reviewed

[dpdk-dev] [PATCH 42/58] net/bnxt: add support for GRE flows

2021-05-30 Thread Venkat Duvvuru
This patch does the following to support GRE flows: 1. RTE_FLOW_ITEM_TYPE_ANY & RTE_FLOW_ITEM_TYPE_GRE processing 2. Calculate the absolute function ID from the logical VF ID passed as part of RTE_FLOW_ACTION_TYPE_VF action. 3. Move bnxt_get_bp API to bnxt_ethdev.c Signed-off-by: Ve

[dpdk-dev] [PATCH 44/58] net/bnxt: refactor ULP mapper and parser

2021-05-30 Thread Venkat Duvvuru
red session. Signed-off-by: Venkat Duvvuru Signed-off-by: Kishore Padmanabha Signed-off-by: Jay Ding Reviewed-by: Lance Richardson Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Michael Baucom Reviewed-by: Somnath Kotur Reviewed-by: Randy Schacher --- drivers/net/bnxt/bnxt.h

[dpdk-dev] [PATCH 40/58] net/bnxt: add partial header field processing

2021-05-30 Thread Venkat Duvvuru
From: Kishore Padmanabha For support for wild card TCAM, some of the header fields have to be partially written, hence this new opcode is added. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Michael Baucom --- drivers/net/bnxt

[dpdk-dev] [PATCH 36/58] net/bnxt: set shared handle for generic table

2021-05-30 Thread Venkat Duvvuru
From: Kishore Padmanabha The shared handle is set in the mapper params when generic resource are created, this shall be used by application as a handle to the shared resource like mirror handle. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom

[dpdk-dev] [PATCH 32/58] net/bnxt: modify table processing

2021-05-30 Thread Venkat Duvvuru
values for critical resource is replaced with template defined values. Signed-off-by: Kishore Padmanabha Signed-off-by: Michael Baucom Signed-off-by: Venkat Duvvuru Reviewed-by: Michael Baucom --- drivers/net/bnxt/tf_ulp/ulp_gen_tbl.c | 18 +- drivers/net/bnxt/tf_ulp/ulp_gen_tbl.h

[dpdk-dev] [PATCH 31/58] net/bnxt: modify VXLAN decap for multichannel mode

2021-05-30 Thread Venkat Duvvuru
patch fixes the above two problems by 1. Using dpdk port id as the index to store tunnel inner info. 2. Caching any number of tunnel inner flow offload requests that come before offloading tunnel outer flow offload request Signed-off-by: Venkat Duvvuru Reviewed-by: Shahaji Bhosle --- drivers

[dpdk-dev] [PATCH 29/58] net/bnxt: add conditional execution and rejection

2021-05-30 Thread Venkat Duvvuru
From: Mike Baucom Conditional execution and rejection processing added for templates and tables. This allows the mapper to skip tables and reject templates based on the content without having to hard code rules. Signed-off-by: Mike Baucom Signed-off-by: Venkat Duvvuru Reviewed-by: Kishore

[dpdk-dev] [PATCH 25/58] net/bnxt: add API to clear hi/lo WC region

2021-05-30 Thread Venkat Duvvuru
From: Farah Smith Provide TRUFLOW API to clear either the hi or the low region for ungraceful exit cleanup. Signed-off-by: Farah Smith Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Jay Ding Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/tf_core.c

[dpdk-dev] [PATCH 30/58] net/bnxt: modify TCAM opcode processing

2021-05-30 Thread Venkat Duvvuru
From: Kishore Padmanabha Added TCAM table specific opcode to process TCAM entry creation and reuse. This change removes the TCAM cache mechanism and uses the generic table mechanism for reuse of TCAM entries. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael

[dpdk-dev] [PATCH 24/58] net/bnxt: add support for WC TCAM shared session

2021-05-30 Thread Venkat Duvvuru
From: Jay Ding If the session shares WC TCAM entries with others, specify it in the session name by attach "-wc_tcam". Firmware will flush the shared WC TCAM entries if the last shared session using them is closed. Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-

[dpdk-dev] [PATCH 26/58] net/bnxt: check FW capability to support TRUFLOW

2021-05-30 Thread Venkat Duvvuru
may not want to use devarg to enable flow offloads. This patch fixes it by checking for truflow feature support in device's capabilities and configurations field of the hwrm_ver_get's response. Signed-off-by: Venkat Duvvuru Reviewed-by: Kalesh Anakkur Purayil Reviewed-by: Somnath Ko

[dpdk-dev] [PATCH 28/58] net/bnxt: add support for mapper flow database opcodes

2021-05-30 Thread Venkat Duvvuru
From: Kishore Padmanabha Added support for mapper flow database opcode to enable shared resources like mirror action. This allows mapper to conditionally populate flow database based on template content. Signed-off-by: Kishore Padmanabha Signed-off-by: Venkat Duvvuru Reviewed-by: Michael

[dpdk-dev] [PATCH 22/58] net/bnxt: modify host session failure cleanup

2021-05-30 Thread Venkat Duvvuru
: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_em_internal.c | 15 +++--- drivers/net/bnxt/tf_core/tf_identifier.c | 14 -- drivers/net/bnxt/tf_core/tf_msg.c | 24 ++--- drivers/net/bnxt/tf_core/tf_msg.h | 9

[dpdk-dev] [PATCH 23/58] net/bnxt: cleanup of WC TCAM shared unbind

2021-05-30 Thread Venkat Duvvuru
Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_tcam_shared.c | 333 -- 1 file changed, 179 insertions(+), 154 deletions(-) diff --git a/drivers/net/bnxt/tf_core/tf_tcam_shared.c b/drivers/net/bnxt/tf_core/tf_tcam_shared.c

[dpdk-dev] [PATCH 20/58] net/bnxt: add WC TCAM hi/lo move support

2021-05-30 Thread Venkat Duvvuru
From: Farah Smith - Add new API to move wc tcam regions from the hi pool to the low pool. - Enable shared tcam get/set functions on Thor. Signed-off-by: Farah Smith Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core

[dpdk-dev] [PATCH 19/58] net/bnxt: cleanup session open/close messages

2021-05-30 Thread Venkat Duvvuru
From: Farah Smith Add profile_id to set_prof_tcam. Signed-off-by: Farah Smith Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher Reviewed-by: Peter Spreadborough --- drivers/net/bnxt/tf_core/tf_device.c | 90

[dpdk-dev] [PATCH 21/58] net/bnxt: add API to get shared table increments

2021-05-30 Thread Venkat Duvvuru
From: Farah Smith Provide tf API to get the shared table increment value for a given TF table type. Signed-off-by: Farah Smith Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_core.c| 52

[dpdk-dev] [PATCH 18/58] net/bnxt: shared TCAM region support

2021-05-30 Thread Venkat Duvvuru
Smith Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/meson.build | 25 +- drivers/net/bnxt/tf_core/tf_core.h| 45 +- drivers/net/bnxt/tf_core/tf_device.c

  1   2   3   >