[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

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 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_

[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 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 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 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:

[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

[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 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 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 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] 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 ++-

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 00/58] enhancements to host based flow table management

2021-05-30 Thread Venkat Duvvuru
Bhosle (1): net/bnxt: cleanup ULP parser and mapper Venkat Duvvuru (4): net/bnxt: check FW capability to support TRUFLOW net/bnxt: modify VXLAN decap for multichannel mode net/bnxt: add support for GRE flows net/bnxt: reorganize ULP template directory structure doc/guides/nics/bnxt.rst

[dpdk-dev] [PATCH 01/58] net/bnxt: add CFA folder to HCAPI directory

2021-05-30 Thread Venkat Duvvuru
From: Jeffrey Huang Before introducing more HCAPI components to DPDK, the CFA code needs to be organized into a dedicated folder so it is separated from other new HCAPI components Signed-off-by: Jeffrey Huang Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah

[dpdk-dev] [PATCH 02/58] net/bnxt: add base TRUFLOW support for Thor

2021-05-30 Thread Venkat Duvvuru
From: Farah Smith Add infrastructure code to support TRUFLOW on Thor NICs. Also update meson.build Signed-off-by: Farah Smith Signed-off-by: Peter Spreadborough Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core

[dpdk-dev] [PATCH 04/58] net/bnxt: check resource reservation in TRUFLOW

2021-05-30 Thread Venkat Duvvuru
From: Jay Ding - Allow tf_open to continue if no resource is allocated for some table type. - Close the session if binding fails for any table. - Close the session if no resource is allocated for all tables. Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru

[dpdk-dev] [PATCH 03/58] net/bnxt: add mailbox selection via dev op

2021-05-30 Thread Venkat Duvvuru
From: Peter Spreadborough Add get mailbox dev op so that mailbox offset is based on device rather than hard coded. Signed-off-by: Peter Spreadborough Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith --- drivers/net/bnxt/tf_core/tf_device.c | 21

[dpdk-dev] [PATCH 05/58] net/bnxt: update TRUFLOW resources

2021-05-30 Thread Venkat Duvvuru
table reference 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| 9 +- drivers/net/bnxt/tf_core/tf_core.h| 83 + drivers/net/bnxt

[dpdk-dev] [PATCH 06/58] net/bnxt: add support for EM with FKB

2021-05-30 Thread Venkat Duvvuru
From: Peter Spreadborough Main TF changes to support EM insert with FKB. Flexible Key builder is required to create Wild Card and Exact Match keys for TCAM lookups. Signed-off-by: Peter Spreadborough Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith

[dpdk-dev] [PATCH 09/58] net/bnxt: add Thor WC TCAM support

2021-05-30 Thread Venkat Duvvuru
Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith --- drivers/net/bnxt/tf_core/tf_core.c | 2 + drivers/net/bnxt/tf_core/tf_core.h | 5 +- drivers/net/bnxt/tf_core/tf_device_p4.c | 2 - drivers/net/bnxt/tf_core/tf_device_p58.c | 7 +- drivers/net/bnxt/tf_core

[dpdk-dev] [PATCH 08/58] net/bnxt: add action SRAM Translation

2021-05-30 Thread Venkat Duvvuru
: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Peter Spreadborough Reviewed-by: Randy Schacher --- drivers/net/bnxt/bnxt_util.h| 3 + drivers/net/bnxt/hcapi/cfa/hcapi_cfa.h | 339 +++-- drivers/net/bnxt/hcapi/cfa/hcapi_cfa_defs.h | 387 +- drivers/net

[dpdk-dev] [PATCH 07/58] net/bnxt: add L2 Context TCAM get support

2021-05-30 Thread Venkat Duvvuru
From: Jay Ding - Implement TCAM get in host - Add Thor support for TCAM set/free Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Peter Spreadborough Reviewed-by: Farah Smith --- drivers/net/bnxt/tf_core/hwrm_tf.h | 1 + drivers/net

[dpdk-dev] [PATCH 13/58] net/bnxt: change RM database type

2021-05-30 Thread Venkat Duvvuru
From: Jay Ding RM databases are statically defined in each module. New static database needs to be defined in the code when multiple sessions are added. Add dynamic alloc database and associate it to each session. Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat

[dpdk-dev] [PATCH 12/58] net/bnxt: modify TRUFLOW HWRM messages

2021-05-30 Thread Venkat Duvvuru
From: Farah Smith - Move Bulk get to a direct HWRM message - Deprecate code based on HCAPI changes Signed-off-by: Farah Smith Signed-off-by: Peter Spreadborough Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/hcapi/cfa

[dpdk-dev] [PATCH 11/58] net/bnxt: add hashing changes for Thor

2021-05-30 Thread Venkat Duvvuru
Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher Reviewed-by: Farah Smith --- drivers/net/bnxt/hcapi/cfa/hcapi_cfa.h| 72 ++- drivers/net/bnxt/hcapi/cfa/hcapi_cfa_common.c | 85 drivers/net/bnxt/hcapi/cfa/hcapi_cfa_defs.h | 15 +++ drivers/net

[dpdk-dev] [PATCH 10/58] net/bnxt: add 64B SRAM record management with RM

2021-05-30 Thread Venkat Duvvuru
-by: Farah Smith Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_device.h | 29 - drivers/net/bnxt/tf_core/tf_device_p4.c | 2 + drivers/net/bnxt/tf_core/tf_device_p58.c | 71 ++ drivers/net/bnxt

[dpdk-dev] [PATCH 14/58] net/bnxt: add shared session support

2021-05-30 Thread Venkat Duvvuru
sessions, one is shared session, the other is non-shared session. Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith --- drivers/net/bnxt/hsi_struct_def_dpdk.h| 281 +- drivers/net/bnxt/tf_core/bitalloc.c

[dpdk-dev] [PATCH 15/58] net/bnxt: add dpool allocator for EM allocation

2021-05-30 Thread Venkat Duvvuru
and also supports defragmentation of the allocation space. Signed-off-by: Peter Spreadborough Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith --- drivers/net/bnxt/tf_core/dpool.c | 373 ++ drivers/net/bnxt/tf_core/dpool.h

[dpdk-dev] [PATCH 17/58] net/bnxt: modify resource reservation strategy

2021-05-30 Thread Venkat Duvvuru
From: Jay Ding Allow an application to only reserve resources for one direction. Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_core.c| 4 -- drivers

[dpdk-dev] [PATCH 16/58] net/bnxt: update shared session functionality

2021-05-30 Thread Venkat Duvvuru
From: Jay Ding - Distinguish the shared session on host side using PCI address - One session could be shared by multiple interfaces. Signed-off-by: Jay Ding Signed-off-by: Randy Schacher Signed-off-by: Venkat Duvvuru Reviewed-by: Farah Smith --- drivers/net/bnxt/tf_core/tf_core.c

[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 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 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

[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

  1   2   3   >