-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reclaim buffer] Common infrastructure update for reclaiming buffer (#…
…9133) - Why I did it This is to update the common sonic-buildimage infra for reclaiming buffer. - How I did it Render zero_profiles.j2 to zero_profiles.json for vendors that support reclaiming buffer The zero profiles will be referenced in PR [Reclaim buffer] Reclaim unused buffers by applying zero buffer profiles #8768 on Mellanox platforms and there will be test cases to verify the behavior there. Rendering is done here for passing azure pipeline. Load zero_profiles.json when the dynamic buffer manager starts Generate inactive port list to reclaim buffer Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Loading branch information
1 parent
1ebe528
commit fa0ae42
Showing
7 changed files
with
106 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[ | ||
{ | ||
"BUFFER_POOL_TABLE:ingress_zero_pool": { | ||
"mode": "static", | ||
"type": "ingress", | ||
"size": "0" | ||
}, | ||
"OP": "SET" | ||
}, | ||
{ | ||
"BUFFER_PROFILE_TABLE:ingress_lossy_pg_zero_profile" : { | ||
"pool":"ingress_zero_pool", | ||
"size":"0", | ||
"static_th":"0" | ||
}, | ||
"OP": "SET" | ||
}, | ||
{ | ||
"BUFFER_PROFILE_TABLE:ingress_lossy_zero_profile" : { | ||
"pool":"ingress_lossless_pool", | ||
"size":"0", | ||
"dynamic_th":"-8" | ||
}, | ||
"OP": "SET" | ||
}, | ||
{ | ||
"BUFFER_PROFILE_TABLE:ingress_lossless_zero_profile" : { | ||
"pool":"ingress_lossless_pool", | ||
"size":"0", | ||
"dynamic_th":"-8" | ||
}, | ||
"OP": "SET" | ||
}, | ||
{ | ||
"BUFFER_PROFILE_TABLE:egress_lossy_zero_profile" : { | ||
"pool":"egress_lossy_pool", | ||
"size":"0", | ||
"dynamic_th":"-8" | ||
}, | ||
"OP": "SET" | ||
}, | ||
{ | ||
"BUFFER_PROFILE_TABLE:egress_lossless_zero_profile" : { | ||
"pool":"egress_lossless_pool", | ||
"size":"0", | ||
"dynamic_th":"-8" | ||
}, | ||
"OP": "SET" | ||
}, | ||
{ | ||
"control_fields" : { | ||
"pgs_to_apply_zero_profile":"0", | ||
"ingress_zero_profile":"ingress_lossy_pg_zero_profile" | ||
}, | ||
"OP": "SET" | ||
} | ||
] |