fafd5327bd
- 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>
58 lines
1.3 KiB
JSON
58 lines
1.3 KiB
JSON
[
|
|
{
|
|
"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"
|
|
}
|
|
]
|