#
580fcb3d |
| 07-Nov-2024 |
Randy Schacher <stuart.schacher@broadcom.com> |
net/bnxt/tf_core: allocate TCAM entries dynamically
Previously, TCAM entries were allocated statically, but this takes up too much stack memory. Change the identifier for TCAM entries from an index
net/bnxt/tf_core: allocate TCAM entries dynamically
Previously, TCAM entries were allocated statically, but this takes up too much stack memory. Change the identifier for TCAM entries from an index which is tied to the HW location, to an abstract entry ID associated with the session.
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Shuanglin Wang <shuanglin.wang@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
19f3ac61 |
| 07-Nov-2024 |
Shuanglin Wang <shuanglin.wang@broadcom.com> |
net/bnxt/tf_core: support flow scale query
TF supports the flow scale query feature for OVS application. The resource usage is tracked when opening a TF session or adding/deleting a flow. The resour
net/bnxt/tf_core: support flow scale query
TF supports the flow scale query feature for OVS application. The resource usage is tracked when opening a TF session or adding/deleting a flow. The resources includes WC TCAM, EM, Action, Counter, Meter, ACT_ENCAP, ACT_ENCAP, and SP_SMAC. User can query the resource usage using niccli.
Several improvements on flow scale query feature: 1. Some default rules require both RX and TX resources; need to update usage states on both directions. 2. Update resource usage state for regular flows only. 3. Added a buffer dirty state to avoid unnecessary state sync with firmware.
This feature is disabled by default. Using the build flag -DTF_FLOW_SCALE_QUERY to enable it.
Signed-off-by: Shuanglin Wang <shuanglin.wang@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
show more ...
|
#
e99981af |
| 12-Aug-2024 |
David Marchand <david.marchand@redhat.com> |
drivers: replace logging helpers
Prepare for the conversion to RTE_LOG_LINE. Some drivers currently add no \n in the logging macro and have the callers do it.
Let's invert this logic but again, thi
drivers: replace logging helpers
Prepare for the conversion to RTE_LOG_LINE. Some drivers currently add no \n in the logging macro and have the callers do it.
Let's invert this logic but again, thinking about backports, introduce the change in new macros.
Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
97435d79 |
| 21-Apr-2023 |
Randy Schacher <stuart.schacher@broadcom.com> |
net/bnxt: update Truflow core
Update TruFlow core code to: - Add shared session management - Add SRAM session management - Add dynamic TCAM management - Add shared TCAM session management - Add Hot
net/bnxt: update Truflow core
Update TruFlow core code to: - Add shared session management - Add SRAM session management - Add dynamic TCAM management - Add shared TCAM session management - Add Hot Upgrade support - Update copyright year
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
e6e8f03e |
| 21-Apr-2023 |
Randy Schacher <stuart.schacher@broadcom.com> |
net/bnxt: update copyright date and cleanup whitespace
Update the Copyright to 2023 Clean up extra blank lines Clean up other whitespace issues
Signed-off-by: Randy Schacher <stuart.schacher@broadc
net/bnxt: update copyright date and cleanup whitespace
Update the Copyright to 2023 Clean up extra blank lines Clean up other whitespace issues
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
fb97e509 |
| 20-Sep-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: add SRAM manager shared session
Fix shared session support issues due to SRAM manager additions. Shared session does not support slices within RM blocks. Calculate resources required witho
net/bnxt: add SRAM manager shared session
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 <farah.smith@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
dfc65c77 |
| 20-Sep-2021 |
Peter Spreadborough <peter.spreadborough@broadcom.com> |
net/bnxt: enable dynamic pool allocator
Enable dynamic entry allocator for Exact Match SRAM entries. Deprecate static entry allocator code.
Signed-off-by: Peter Spreadborough <peter.spreadborough@b
net/bnxt: enable dynamic pool allocator
Enable dynamic entry allocator for Exact Match SRAM entries. Deprecate static entry allocator code.
Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
b08e34cd |
| 30-May-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: refactor host session failure cleanup
- Close FW session if session open fails after Fw session open. - Additional WC TCAM debug info to help in future debug - Reduce key/mask buffer sizes
net/bnxt: refactor host session failure cleanup
- Close FW session if session open fails after Fw session open. - Additional WC TCAM debug info to help in future debug - Reduce key/mask buffer sizes for performance - When a 64b counter is freed, clear the entry
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
1678535b |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: cleanup logs in session handling paths
Cleanup some of the log messages in the session open and close paths.
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Jay Ding
net/bnxt: cleanup logs in session handling paths
Cleanup some of the log messages in the session open and close paths.
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
1a3f3817 |
| 30-May-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: modify resource reservation strategy
Allow an application to only reserve resources for one direction.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Randy Schacher <stuar
net/bnxt: modify resource reservation strategy
Allow an application to only reserve resources for one direction.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
b97763fc |
| 30-May-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: update shared session functionality
- Distinguish the shared session on host side using PCI address - One session could be shared by multiple interfaces.
Signed-off-by: Jay Ding <jay.ding
net/bnxt: update shared session functionality
- Distinguish the shared session on host side using PCI address - One session could be shared by multiple interfaces.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
05b405d5 |
| 30-May-2021 |
Peter Spreadborough <peter.spreadborough@broadcom.com> |
net/bnxt: add dpool allocator for EM allocation
The dpool allocator supports variable size entries and also supports defragmentation of the allocation space. EM will by default use the fixed size st
net/bnxt: add dpool allocator for EM allocation
The dpool allocator supports variable size entries and also supports defragmentation of the allocation space. EM will by default use the fixed size stack allocator. The dynamic allocator may be selected at build time. The dpool allocator supports variable size entries and also supports defragmentation of the allocation space.
Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
873661aa |
| 30-May-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: support shared session
There are 2 types of sessions - shared and non-shared. For non-shared all the allocated resources are owned and managed by a single session instance. No other appli
net/bnxt: support shared session
There are 2 types of sessions - shared and non-shared. For non-shared all the allocated resources are owned and managed by a single session instance. No other applications have access to the resources owned by the non-shared session. For a shared session, resources are shared between 2 applications.
The FW shared session can only be created by one application and shared by other apps. The host session that creates the FW shared session is the creator.
Applications can retrieve the reserved resources through a new API tf_get_session_resc_info.
Each module supports two sessions, one is shared session, the other is non-shared session.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
38dc96f9 |
| 30-May-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: change RM database type
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
net/bnxt: change RM database type
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 <jay.ding@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
70529991 |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: add action SRAM translation
- Translate Truflow action types for Thor to HCAPI RM resource defined SRAM banks. - move module type enum definitions to tf_core API - Switch to subtype conc
net/bnxt: add action SRAM translation
- Translate Truflow action types for Thor to HCAPI RM resource defined SRAM banks. - move module type enum definitions to tf_core API - Switch to subtype concept for RM. - alloc/free working for Thor SRAM table type for full AR.
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
539931ea |
| 30-May-2021 |
Peter Spreadborough <peter.spreadborough@broadcom.com> |
net/bnxt: support EM with FKB
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 Spreadb
net/bnxt: support EM with FKB
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 <peter.spreadborough@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
acd38b0a |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: update TRUFLOW resources
- Remove unused tables from tf_tbl_type - Encode flow type into flow handle (internal or external) - Clean up Whitney resource tables - Clean up Truflow CLI open t
net/bnxt: update TRUFLOW resources
- Remove unused tables from tf_tbl_type - Encode flow type into flow handle (internal or external) - Clean up Whitney resource tables - Clean up Truflow CLI open tables and update Thor resources - Add Thor SRAM and external pool types to core API - Remove unneeded Stingray table reference
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Jay Ding <jay.ding@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
2addc463 |
| 27-Jan-2021 |
Ajit Khaparde <ajit.khaparde@broadcom.com> |
net/bnxt: update copyright year
Update copyright year in various files.
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by
net/bnxt: update copyright year
Update copyright year in various files.
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
show more ...
|
#
f01b6fce |
| 11-Sep-2020 |
Mike Baucom <michael.baucom@broadcom.com> |
net/bnxt: free EM index on failure
When a Exact Match entry fails insertion, the allocated index needs to be pushed back to the allocation stack. This patch takes care of that.
Signed-off-by: Mike
net/bnxt: free EM index on failure
When a Exact Match entry fails insertion, the allocated index needs to be pushed back to the allocation stack. This patch takes care of that.
Signed-off-by: Mike Baucom <michael.baucom@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
be19e7fe |
| 15-Jul-2020 |
Peter Spreadborough <peter.spreadborough@broadcom.com> |
net/bnxt: delay EEM sysmem mapping
- The mapping of kernel pages for EEM sysmem operation takes a significant amount of time. This change give the build option to delay the sysmem mapping until
net/bnxt: delay EEM sysmem mapping
- The mapping of kernel pages for EEM sysmem operation takes a significant amount of time. This change give the build option to delay the sysmem mapping until the first write to EEM
Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
show more ...
|
#
e2a002d8 |
| 02-Jul-2020 |
Peter Spreadborough <peter.spreadborough@broadcom.com> |
net/bnxt: update RM to support HCAPI only
- For the EM Module there is a need to only allocate the EM Records in HCAPI RM but the storage control is requested to be outside of the RM DB. - Add T
net/bnxt: update RM to support HCAPI only
- For the EM Module there is a need to only allocate the EM Records in HCAPI RM but the storage control is requested to be outside of the RM DB. - Add TF_RM_ELEM_CFG_HCAPI_BA. - Return error when the number of reserved entries for wc tcam is odd number in tf_tcam_bind. - Remove em_pool from session - Use RM provided start offset and size - HCAPI returns entry index instead of row index for WC TCAM. - Move resource type conversion to hrwm set/free tcam functions.
Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
ced3cded |
| 02-Jul-2020 |
Michael Wildt <michael.wildt@broadcom.com> |
net/bnxt: update table get to use new design
- Move bulk table get implementation to new Tbl Module design. - Update messages for bulk table get - Retrieve specified table element using bulk mechani
net/bnxt: update table get to use new design
- Move bulk table get implementation to new Tbl Module design. - Update messages for bulk table get - Retrieve specified table element using bulk mechanism - Remove deprecated resource definitions - Update device type configuration for P4. - Update RM DB HCAPI count check and fix EM internal and host code such that EM DBs can be created correctly. - Update error logging to be info on unbind in the different modules. - Move RTE RSVD out of tf_resources.h
Signed-off-by: Michael Wildt <michael.wildt@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
ca5e61bd |
| 02-Jul-2020 |
Peter Spreadborough <peter.spreadborough@broadcom.com> |
net/bnxt: support EM and TCAM lookup with table scope
- Support for table scope within the EM module - Support for host and system memory - Update TCAM set/free. - Replace TF device type by HCAPI RM
net/bnxt: support EM and TCAM lookup with table scope
- Support for table scope within the EM module - Support for host and system memory - Update TCAM set/free. - Replace TF device type by HCAPI RM type. - Update TCAM set and free for HCAPI RM type
Signed-off-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|