Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tofino port shaping cleanup on ChassisConfig push #824

Merged
merged 4 commits into from
Sep 27, 2021

Conversation

pudelkoM
Copy link
Member

@pudelkoM pudelkoM commented Aug 30, 2021

Currently, pushing a new chassis config without any port shaping does not delete a previous config, i.e. shaping stays enabled.
This PR addresses this by always disabling port shaping first, then potentially applying the new config afterwards.
During a chassis config push, there will be a short period of time where the traffic rate could be higher than expected. Similar to how ports might flip up->down->up right now. Fixing this would require a more substantial rewrite of the BfChassisManager.

@codecov
Copy link

codecov bot commented Aug 30, 2021

Codecov Report

Merging #824 (8e3b5dc) into main (9b23711) will increase coverage by 0.00%.
The diff coverage is 90.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #824   +/-   ##
=======================================
  Coverage   78.59%   78.59%           
=======================================
  Files         334      334           
  Lines       30039    30042    +3     
=======================================
+ Hits        23608    23611    +3     
  Misses       6431     6431           
Impacted Files Coverage Δ
stratum/hal/lib/barefoot/bf_chassis_manager.cc 72.50% <90.00%> (+0.08%) ⬆️

@pudelkoM pudelkoM marked this pull request as ready for review September 25, 2021 00:35
@pudelkoM pudelkoM changed the title Fix bfrt port shaping on delete Fix bfrt port shaping cleanup on ChassisConfig push Sep 25, 2021
@pudelkoM pudelkoM changed the title Fix bfrt port shaping cleanup on ChassisConfig push Fix BfRt port shaping cleanup on ChassisConfig push Sep 25, 2021
@pudelkoM pudelkoM changed the title Fix BfRt port shaping cleanup on ChassisConfig push Fix Tofino port shaping cleanup on ChassisConfig push Sep 25, 2021
@pudelkoM
Copy link
Member Author

pudelkoM commented Sep 27, 2021

We (@dariusgrassi and I) confirmed that this change fixes the issue in a manual test.

@pudelkoM pudelkoM merged commit 3dbafcb into main Sep 27, 2021
@pudelkoM pudelkoM deleted the bfrt-fix-port-shaping branch September 27, 2021 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant