#
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 ...
|
#
aa49b38f |
| 07-Nov-2024 |
Shuanglin Wang <shuanglin.wang@broadcom.com> |
net/bnxt/tf_core: cleanup external EM support
Isolate external EM support as it is now defunct on Wh+.
Signed-off-by: Shuanglin Wang <shuanglin.wang@broadcom.com> Signed-off-by: Sriharsha Basavapat
net/bnxt/tf_core: cleanup external EM support
Isolate external EM support as it is now defunct on Wh+.
Signed-off-by: Shuanglin Wang <shuanglin.wang@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.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 ...
|
#
0d63f20a |
| 21-Apr-2023 |
Randy Schacher <stuart.schacher@broadcom.com> |
net/bnxt: remove deprecated features
- Deprecate shadow identifier - Deprecate shadow TCAM - Remove files which are not needed anymore.
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com>
net/bnxt: remove deprecated features
- Deprecate shadow identifier - Deprecate shadow TCAM - Remove files which are not needed anymore.
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
f2c730d4 |
| 03-Nov-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: use enum for bank ID
Instead of integer, using enum tf_sram_bank_id for bank id in tf_set_sram_policy_parms.
Add index check against the allocation of the meter instance for meter drop co
net/bnxt: use enum for bank ID
Instead of integer, using enum tf_sram_bank_id for bank id in tf_set_sram_policy_parms.
Add index check against the allocation of the meter instance for meter drop count because there is no reason to access it if the corresponding meter entry is not allocated.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Reviewed-by: Steve Rempe <steve.rempe@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
d1bd2897 |
| 03-Nov-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: support TruFlow and AFM SRAM partitioning
Implement set/get_sram_policy which support both Rx/Tx direction truflow type the specific SRAM bank.
Signed-off-by: Jay Ding <jay.ding@broadcom.
net/bnxt: support TruFlow and AFM SRAM partitioning
Implement set/get_sram_policy which support both Rx/Tx direction truflow type the specific SRAM bank.
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: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
4d05ce4e |
| 03-Nov-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: add TruFlow API to get SRAM resources
Implement tf_get_sram_resources to return SRAM partition information, including bank count and SRAM profile number.
Signed-off-by: Jay Ding <jay.ding
net/bnxt: add TruFlow API to get SRAM resources
Implement tf_get_sram_resources to return SRAM partition information, including bank count and SRAM profile number.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
588e333e |
| 03-Nov-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: get TruFlow version
Implement tf_get_version that returns TruFlow version numbers and CFA resources capabilities.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Venkat Duv
net/bnxt: get TruFlow version
Implement tf_get_version that returns TruFlow version numbers and CFA resources capabilities.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Farah Smith <farah.smith@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 ...
|
#
37ff91c1 |
| 20-Sep-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: add SRAM manager model
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 wil
net/bnxt: add SRAM manager model
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 the size required.
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
998b9639 |
| 20-Sep-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: support flow meter drop counter
This patch adds flow meter drop counter support for Thor.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.co
net/bnxt: support flow meter drop counter
This patch adds flow meter drop counter support for Thor.
Signed-off-by: Jay Ding <jay.ding@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
c6d273e9 |
| 20-Sep-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: update TruFlow core index table
Update the TruFlow core index table and remove unused shadow table functionality.
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Peter
net/bnxt: update TruFlow core index table
Update the TruFlow core index table and remove unused shadow table functionality.
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
1993b267 |
| 30-May-2021 |
Shahaji Bhosle <sbhosle@broadcom.com> |
net/bnxt: cleanup ULP parser and mapper
1. Disable accum_stats for Thor 2. Delete the generic port table for default flow 3. The packet mask to calculate the number of packets must be 28 bits. 4. In
net/bnxt: cleanup ULP parser and mapper
1. Disable accum_stats for Thor 2. Delete the generic port table for default flow 3. The packet mask to calculate the number of packets must be 28 bits. 4. Increase the WC TCAM entries to 512 per application and add 2 shared L2 context TCAM entries to match identifiers for flow scaling 5. Ignore multiple critical resources in ULP flow database 6. Renamed conditional code update to function opcode. 7. Updated TRUFLOW debug logs to support the above changes. 8. As part of the HA cleanup, the shared session name now allows the user to designate that the session uses the wc_tcam regions within the shared session. 9. The CFA action pointer does not exist if there is no support for VF representor, so no need to display the message for use case where there is no support for VF representors. 10. Cleanup flow counter software accumulation. 11. When an application exits ungracefully, the HA code now clears the appropriate shared WC region and sets the HA state. 12. Removal of unnecessary INFO message. The message is an indicator that the ports are being removed from DPDK, but all cleanup has not completed. Once the cleanup is completed, the timer will be stopped.
Signed-off-by: Shahaji Bhosle <sbhosle@broadcom.com> Signed-off-by: Mike Baucom <michael.baucom@broadcom.com> Signed-off-by: Kishore Padmanabha <kishore.padmanabha@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 ...
|
#
3fe124d2 |
| 30-May-2021 |
Kishore Padmanabha <kishore.padmanabha@broadcom.com> |
net/bnxt: support Thor platform
1. Add templates to support Thor platform. 2. Flow counter manager is not enabled if no flow counters are configured. 3. Mark database is not enabled if mark actio
net/bnxt: support Thor platform
1. Add templates to support Thor platform. 2. Flow counter manager is not enabled if no flow counters are configured. 3. Mark database is not enabled if mark action is not supported. 4. Removed application to port default flow. 5. Add allocate and write for the global registry file. 6. Multiple default flow templates are combined to one. 7. Remove default loopback action record, this is required in order to support multiple platforms. 8. Enable port table support in the generic table. 9. remove global template table in order to support multiple platforms. 10. Add support to get parent VNIC from port table database. 11. VF representor action mark is made optional since not all configurations need representor support. 12. Add layer 4 ports to computational fields. 13. Update templates to support the above changes. 14. Add support for wildcard.
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Mike Baucom <michael.baucom@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
4e61f0f4 |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: add functions to clear TCAM regions
Add TRUFLOW API to clear either the hi or the low regions in WildCard TCAM for ungraceful exit cleanup.
Signed-off-by: Farah Smith <farah.smith@broadco
net/bnxt: add functions to clear TCAM regions
Add TRUFLOW API to clear either the hi or the low regions in WildCard TCAM for ungraceful exit cleanup.
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 ...
|
#
c87bd543 |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: add functions to get shared table increments
Add TRUFLOW API to get the shared table increment value for a given TRUFLOW table type. The API is being added for Wh+ and Thor devices.
Signe
net/bnxt: add functions to get shared table increments
Add TRUFLOW API to get the shared table increment value for a given TRUFLOW table type. The API is being added for Wh+ and Thor devices.
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 ...
|
#
83680d37 |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: support WC TCAM management
- 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 <farah.smit
net/bnxt: support WC TCAM management
- 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 <farah.smith@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 ...
|
#
87286092 |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: support shared TCAM region
- switch to single slice management on Wh+ - Support of shared session WC_TCAM_HIGH and WC_TCAM_LOW regions - Enable/disable using TF_TCAM_SHARED flag in tf_core
net/bnxt: support shared TCAM region
- switch to single slice management on Wh+ - Support of shared session WC_TCAM_HIGH and WC_TCAM_LOW regions - Enable/disable using TF_TCAM_SHARED flag in tf_core.h - Fix empty session module DBs in the case that none are allocated for a given module type
Signed-off-by: Farah Smith <farah.smith@broadcom.com> 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 ...
|
#
08e1af1a |
| 30-May-2021 |
Farah Smith <farah.smith@broadcom.com> |
net/bnxt: modify TRUFLOW HWRM messages
- Move Bulk get to a direct HWRM message - Deprecate code based on HCAPI changes
Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Peter Sp
net/bnxt: modify TRUFLOW HWRM messages
- Move Bulk get to a direct HWRM message - Deprecate code based on HCAPI changes
Signed-off-by: Farah Smith <farah.smith@broadcom.com> 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: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
902fa8b5 |
| 30-May-2021 |
Jay Ding <jay.ding@broadcom.com> |
net/bnxt: support Thor WC TCAM
1. Add set/get/free/alloc for WC TCAM 2. Rework the key size in slice management. 3. Add 3 FKB WC keys for WC TCAM set cli cmd 4. Add transform key function for WC TCA
net/bnxt: support Thor WC TCAM
1. Add set/get/free/alloc for WC TCAM 2. Rework the key size in slice management. 3. Add 3 FKB WC keys for WC TCAM set cli cmd 4. Add transform key function for WC TCAM FKB key 5. Add checking for key buffer length for get_tcam
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 ...
|
#
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 ...
|