#
f6e12015 |
| 07-Nov-2024 |
Kishore Padmanabha <kishore.padmanabha@broadcom.com> |
net/bnxt/tf_ulp: add mask defaults when not specified
If application does not specify mask in a field description then use the default mask values from dpdk header files.
This patch also includes t
net/bnxt/tf_ulp: add mask defaults when not specified
If application does not specify mask in a field description then use the default mask values from dpdk header files.
This patch also includes the following related changes.
fix stats collection for shared session The stats accumulation was being performed on default session, it needs to get the correct session type to get shared session counters.
updated ulp flow db for 64 bit handles Updated the ulp flow database so that all the hardware handles are 64 bit for all the resource types.
Template rejection with no tables fails for vf to vf Fixed the template rejection logic to include the table even on unconditional rejection. This was exposed for vf to vf traffic on Thor 2 and resulted in a segmentation fault.
fix spec and default mask parsing for flow items. Fixed the protocol header parsing when bith spec and mask are not given.
Thor2 priority for l2 tcam records not adhered to Fix l2 context records priority in template compiler Fix flow handle mask offset Fix cpu_to_le_16 macro issues Fix misspellings in code
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@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 ...
|
#
49cdf043 |
| 07-Nov-2024 |
Kishore Padmanabha <kishore.padmanabha@broadcom.com> |
net/bnxt/tf_ulp: support tunnel flow stats
Added support for vxlan tunnel flow stats for thor2.
This patch also updates template files needed to support this feature.
Signed-off-by: Kishore Padman
net/bnxt/tf_ulp: support tunnel flow stats
Added support for vxlan tunnel flow stats for thor2.
This patch also updates template files needed to support this feature.
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Mike Baucom <michael.baucom@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
dd0191d5 |
| 07-Nov-2024 |
Shuanglin Wang <shuanglin.wang@broadcom.com> |
net/bnxt/tf_ulp: support Thor2 ULP layer
This patch includes the support for following features that enable Thor2 support in the ULP layer:
1. Added support for ulp initialization on Thor2 platform
net/bnxt/tf_ulp: support Thor2 ULP layer
This patch includes the support for following features that enable Thor2 support in the ULP layer:
1. Added support for ulp initialization on Thor2 platform. This involved breaking the functionality that is common and not common between Thor and Thor2 platforms. 2. MPC support for Thor2. This feature enables the access of the DRAM memory location in the HOST CPU for Exact match flows and Action records for those flows. 3. Added support for VF's on Thor2 platform. 4. Added support to offload traffic between two VF's on the system. 5. Renamed all BNXT_TF_DBG macros to BNXT_DRV_DBG. 6. Added logic to get error conditions in the flow create path. 7. Added support for Geneve header and set TTL action parsing. 8. Add mpc batching to ulp flow create for Thor2.
This patch also updates the template files for the changes that are being added in this patch.
Signed-off-by: Shuanglin Wang <shuanglin.wang@broadcom.com> Signed-off-by: Mike Baucom <michael.baucom@broadcom.com> Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Signed-off-by: Manish Kurup <manish.kurup@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
d9e70b1d |
| 21-Apr-2023 |
Randy Schacher <stuart.schacher@broadcom.com> |
net/bnxt: update ULP shared session support
- Update ulp generic templates - Modify code to support shared sessions
This should allow more than one application to share a TruFlow session.
Signed-o
net/bnxt: update ULP shared session support
- Update ulp generic templates - Modify code to support shared sessions
This should allow more than one application to share a TruFlow session.
Signed-off-by: Randy Schacher <stuart.schacher@broadcom.com> Signed-off-by: Kishore Padmanabha <kishore.padmanabha@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 ...
|
#
bdf4a3c6 |
| 20-Sep-2021 |
Kishore Padmanabha <kishore.padmanabha@broadcom.com> |
net/bnxt: support tunnel offload
Add support for tunnel offload APIs. Specifically the following are supported. tunnel_decap_set, tunnel_match, tunnel_action_decap_release, tunnel_item_release.
Thi
net/bnxt: support tunnel offload
Add support for tunnel offload APIs. Specifically the following are supported. tunnel_decap_set, tunnel_match, tunnel_action_decap_release, tunnel_item_release.
This provides support for VXLAN decap action where two flows can indicate tunnel offload rule. The first flow indicates the tunnel properties and second flow indicates the inner packet structure. The templates are updated to support this feature.
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@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 ...
|
#
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 ...
|
#
640bfd23 |
| 26-Oct-2020 |
Kishore Padmanabha <kishore.padmanabha@broadcom.com> |
net/bnxt: add hierarchical flow counters
Add support for hierarchical flow counter accumulation. In case of hierarchical flows, involving parent and child flows, the child flow counters are aggregat
net/bnxt: add hierarchical flow counters
Add support for hierarchical flow counter accumulation. In case of hierarchical flows, involving parent and child flows, the child flow counters are aggregated to get the parent flow counter information. This should help in cases where one ore more flows is related to a previously offloaded flow.
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
811229d4 |
| 11-Sep-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: check and set initial counter ID
Instead of relying on value of Flow counter ID to determine validity have an explicit boolean flag for the same to check and set.
Fixes: 306c2d28e247 ("ne
net/bnxt: check and set initial counter ID
Instead of relying on value of Flow counter ID to determine validity have an explicit boolean flag for the same to check and set.
Fixes: 306c2d28e247 ("net/bnxt: support count action in flow query") Fixes: 9cf9c8385df7 ("net/bnxt: add ULP flow counter manager") Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
49b8d40b |
| 06-Jul-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: avoid hard coded values when reading counters
Instead of using hardcoded values for the byte/pkt value shifts/masks to read from the HW counters, use the shift/mask values from the device
net/bnxt: avoid hard coded values when reading counters
Instead of using hardcoded values for the byte/pkt value shifts/masks to read from the HW counters, use the shift/mask values from the device template params
Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
306c2d28 |
| 02-Jul-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: support count action in flow query
Use the flow counter manager to fetch the accumulated stats for a flow.
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Venkat
net/bnxt: support count action in flow query
Use the flow counter manager to fetch the accumulated stats for a flow.
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|
#
9cf9c838 |
| 02-Jul-2020 |
Somnath Kotur <somnath.kotur@broadcom.com> |
net/bnxt: add ULP flow counter manager
The Flow counter manager allocates memory to hold the software view of the counters where the on-chip counter data will be accumulated along with another memor
net/bnxt: add ULP flow counter manager
The Flow counter manager allocates memory to hold the software view of the counters where the on-chip counter data will be accumulated along with another memory block that will be shadowing the on-chip counter data i.e where the raw counter data will be DMAed into from the chip. It also keeps track of the first HW counter ID as that will be needed to retrieve the counter data in bulk using a TF API. It issues this cmd in an rte_alarm thread that keeps running every second.
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
show more ...
|