#
5873bd31 |
| 07-Nov-2024 |
Randy Schacher <stuart.schacher@broadcom.com> |
net/bnxt/tf_core: remove code to choose TCAM allocation
Remove references to tx_tcam_supported and rx_tcam_supported logic which chooses between FW-based tcam resource allocation and driver-based tc
net/bnxt/tf_core: remove code to choose TCAM allocation
Remove references to tx_tcam_supported and rx_tcam_supported logic which chooses between FW-based tcam resource allocation and driver-based tcam manager.
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com> Reviewed-by: Manish Kurup <manish.kurup@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
4545fdf6 |
| 07-Nov-2024 |
Randy Schacher <stuart.schacher@broadcom.com> |
net/bnxt/tf_core: remove dead AFM code
Remove references to AFM allocated memory which is no longer supported with TCAM mgr and truflow
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com>
net/bnxt/tf_core: remove dead AFM code
Remove references to AFM allocated memory which is no longer supported with TCAM mgr and truflow
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: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
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 ...
|
#
1190f2f8 |
| 07-Nov-2024 |
Sangtani Parag Satishbhai <parag-satishbhai.sangtani@broadcom.com> |
net/bnxt/tf_core: fix slice count in case of HA entry move
When entries are moved during HA, a shared move function transfers TCAM entries by using get/set message APIs, and the slice number of the
net/bnxt/tf_core: fix slice count in case of HA entry move
When entries are moved during HA, a shared move function transfers TCAM entries by using get/set message APIs, and the slice number of the entry is required to accomplish the movement. The slice number is calculated as the product of row_slice and entry size. Before calling get/set message APIs, the source entry size should be updated with the destination entry size; otherwise, it might corrupt the slice number field, which may result in writing an incorrect entry. A fix is made which now copies the entry size from the source to the destination before calling get/set message APIs, ensuring the correct slice number is modified.
Fixes: 97435d7906d7 ("net/bnxt: update Truflow core") Cc: stable@dpdk.org
Signed-off-by: Sangtani Parag Satishbhai <parag-satishbhai.sangtani@broadcom.com> Reviewed-by: Sriharsha Basavapatna <sriharsha.basavapatna@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 ...
|
#
0bee506e |
| 07-Nov-2024 |
Shahaji Bhosle <sbhosle@broadcom.com> |
net/bnxt/tf_core: fix TCAM manager data corruption
Max entries per session were not getting initialized to 0, when the sessions were closed. Reset max entries counter session when the session is ini
net/bnxt/tf_core: fix TCAM manager data corruption
Max entries per session were not getting initialized to 0, when the sessions were closed. Reset max entries counter session when the session is initialized
Fixes: 97435d7906d7 ("net/bnxt: update Truflow core") Cc: stable@dpdk.org
Signed-off-by: Shahaji Bhosle <sbhosle@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Shuanglin Wang <shuanglin.wang@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 ...
|