-
Notifications
You must be signed in to change notification settings - Fork 727
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
Add qos_params.th5.yaml #14250
Open
rick-arista
wants to merge
10
commits into
sonic-net:master
Choose a base branch
from
rick-arista:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add qos_params.th5.yaml #14250
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1b39f31
Add qos_params.th5.yaml
rick-arista a7fd3e2
Merge branch 'sonic-net:master' into master
rick-arista 6e2b891
update th5 qos params, fix sai tests
rick-arista 2e24adf
update th5 qos params, fix sai tests
rick-arista 5ddc8e4
update th5 qos params, fix sai tests
rick-arista 1ee540e
Increase qos test timeout
rick-arista 591633c
Increase qos test timeout
rick-arista 5b6f53e
add topo-t0-standalone-32
rick-arista c9725e3
fix wrr tests
rick-arista bb94ee0
fix wrr tests
rick-arista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
qos_params: | ||
th5: | ||
topo-t0-standalone-256: | ||
cell_size: 254 | ||
hdrm_pool_wm_multiplier: 1 | ||
200000_5m: | ||
hdrm_pool_size: | ||
dscps: | ||
- 3 | ||
- 4 | ||
dst_port_id: 0 | ||
ecn: 1 | ||
margin: 4 | ||
pgs: | ||
- 3 | ||
- 4 | ||
pgs_num: 50 | ||
pkts_num_hdrm_full: 1185 | ||
pkts_num_hdrm_partial: 47 | ||
pkts_num_trig_pfc: 120117 | ||
pkts_num_trig_pfc_multi: | ||
- 120117 | ||
- 60096 | ||
- 30085 | ||
- 15079 | ||
- 7577 | ||
- 3825 | ||
- 1950 | ||
- 1012 | ||
- 543 | ||
- 308 | ||
- 191 | ||
- 133 | ||
- 103 | ||
- 89 | ||
- 81 | ||
- 78 | ||
- 76 | ||
- 75 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
- 74 | ||
src_port_ids: | ||
- 1 | ||
- 2 | ||
- 3 | ||
- 4 | ||
- 5 | ||
- 6 | ||
- 7 | ||
- 8 | ||
- 9 | ||
- 10 | ||
- 11 | ||
- 12 | ||
- 13 | ||
- 14 | ||
- 15 | ||
- 16 | ||
- 17 | ||
- 18 | ||
- 19 | ||
- 20 | ||
- 21 | ||
- 22 | ||
- 23 | ||
- 24 | ||
- 25 | ||
lossy_queue_1: | ||
dscp: 8 | ||
ecn: 1 | ||
pg: 0 | ||
pkts_num_margin: 2 | ||
pkts_num_trig_egr_drp: 120051 | ||
pkts_num_egr_mem: 238 | ||
pkts_num_leak_out: 0 | ||
wm_pg_headroom: | ||
cell_size: 254 | ||
dscp: 3 | ||
ecn: 1 | ||
pg: 3 | ||
pkts_num_margin: 4 | ||
pkts_num_trig_ingr_drp: 121302 | ||
pkts_num_trig_pfc: 120117 | ||
wm_pg_shared_lossless: | ||
cell_size: 254 | ||
dscp: 3 | ||
ecn: 1 | ||
packet_size: 64 | ||
pg: 3 | ||
pkts_num_fill_min: 74 | ||
pkts_num_margin: 0 | ||
pkts_num_trig_pfc: 120117 | ||
wm_pg_shared_lossy: | ||
cell_size: 254 | ||
dscp: 8 | ||
ecn: 1 | ||
packet_size: 64 | ||
pg: 0 | ||
pkts_num_fill_min: 7 | ||
pkts_num_margin: 0 | ||
pkts_num_trig_egr_drp: 120053 | ||
wm_q_shared_lossless: | ||
cell_size: 254 | ||
dscp: 3 | ||
ecn: 1 | ||
pkts_num_fill_min: 0 | ||
pkts_num_margin: 2 | ||
pkts_num_trig_ingr_drp: 121302 | ||
queue: 3 | ||
wm_q_shared_lossy: | ||
cell_size: 254 | ||
dscp: 8 | ||
ecn: 1 | ||
pkts_num_fill_min: 7 | ||
pkts_num_margin: 2 | ||
pkts_num_trig_egr_drp: 120051 | ||
queue: 0 | ||
xoff_1: | ||
dscp: 3 | ||
ecn: 1 | ||
pg: 3 | ||
pkts_num_margin: 4 | ||
pkts_num_trig_ingr_drp: 121302 | ||
pkts_num_trig_pfc: 120117 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rick-arista How do you get pkts_num_trig_pfc: 120117? |
||
xoff_2: | ||
dscp: 4 | ||
ecn: 1 | ||
pg: 4 | ||
pkts_num_margin: 4 | ||
pkts_num_trig_ingr_drp: 121302 | ||
pkts_num_trig_pfc: 120117 | ||
xon_1: | ||
dscp: 3 | ||
ecn: 1 | ||
pg: 3 | ||
pkts_num_dismiss_pfc: 14 | ||
pkts_num_margin: 4 | ||
pkts_num_trig_pfc: 120117 | ||
xon_2: | ||
dscp: 4 | ||
ecn: 1 | ||
pg: 4 | ||
pkts_num_dismiss_pfc: 14 | ||
pkts_num_margin: 4 | ||
pkts_num_trig_pfc: 120117 | ||
wrr: | ||
ecn: 1 | ||
q0_num_of_pkts: 140 | ||
q1_num_of_pkts: 140 | ||
q2_num_of_pkts: 140 | ||
q3_num_of_pkts: 150 | ||
q4_num_of_pkts: 150 | ||
q5_num_of_pkts: 140 | ||
q6_num_of_pkts: 140 | ||
q7_num_of_pkts: 140 | ||
limit: 80 | ||
wrr_chg: | ||
ecn: 1 | ||
q0_num_of_pkts: 80 | ||
q1_num_of_pkts: 80 | ||
q2_num_of_pkts: 80 | ||
q3_num_of_pkts: 300 | ||
q4_num_of_pkts: 300 | ||
q5_num_of_pkts: 80 | ||
q6_num_of_pkts: 80 | ||
q7_num_of_pkts: 80 | ||
limit: 80 | ||
lossy_weight: 8 | ||
lossless_weight: 30 |
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 |
---|---|---|
|
@@ -1763,7 +1763,7 @@ def runTest(self): | |
pkts_num_leak_out = 0 | ||
|
||
# send packets short of triggering pfc | ||
if hwsku == 'DellEMC-Z9332f-M-O16C64' or hwsku == 'DellEMC-Z9332f-O32': | ||
if hwsku in ('DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32', 'Arista-7060X6-64PE-256x200G'): | ||
# send packets short of triggering pfc | ||
send_packet(self, src_port_id, pkt, (pkts_num_egr_mem + | ||
pkts_num_leak_out + | ||
|
@@ -2567,6 +2567,12 @@ def runTest(self): | |
(pkts_num_egr_mem + pkts_num_leak_out + pkts_num_trig_pfc - | ||
pkts_num_dismiss_pfc - hysteresis) // cell_occupancy | ||
) | ||
elif hwsku == 'Arista-7060X6-64PE-256x200G': | ||
send_packet( | ||
self, src_port_id, pkt, | ||
(pkts_num_egr_mem + pkts_num_leak_out + pkts_num_trig_pfc - | ||
pkts_num_dismiss_pfc - hysteresis) // cell_occupancy - margin | ||
) | ||
elif 'cisco-8000' in asic_type: | ||
fill_leakout_plus_one( | ||
self, src_port_id, dst_port_id, | ||
|
@@ -2609,6 +2615,12 @@ def runTest(self): | |
(pkts_num_egr_mem + pkts_num_leak_out + pkts_num_dismiss_pfc + | ||
hysteresis) // cell_occupancy + margin - 1 | ||
) | ||
elif hwsku == 'Arista-7060X6-64PE-256x200G': | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sync'ed offline. let's check TH5 for better change in the next PR. |
||
send_packet( | ||
self, src_port_id, pkt2, | ||
(pkts_num_egr_mem + pkts_num_leak_out + pkts_num_dismiss_pfc + | ||
hysteresis) // cell_occupancy + margin * 2 - 1 | ||
) | ||
elif 'cisco-8000' in asic_type: | ||
if not is_multi_asic: | ||
fill_leakout_plus_one( | ||
|
@@ -2652,7 +2664,7 @@ def runTest(self): | |
log_message('step {}: {}\n'.format(step_id, step_desc), to_stderr=True) | ||
xmit_3_counters_base, _ = sai_thrift_read_port_counters( | ||
self.dst_client, asic_type, port_list['dst'][dst_port_3_id]) | ||
if hwsku == 'DellEMC-Z9332f-M-O16C64' or hwsku == 'DellEMC-Z9332f-O32': | ||
if hwsku in ('DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32', 'Arista-7060X6-64PE-256x200G'): | ||
send_packet(self, src_port_id, pkt3, | ||
pkts_num_egr_mem + pkts_num_leak_out + 1) | ||
elif 'cisco-8000' in asic_type: | ||
|
@@ -3030,7 +3042,7 @@ def runTest(self): | |
ip_ttl=64) | ||
|
||
hwsku = self.test_params['hwsku'] | ||
if (hwsku == 'DellEMC-Z9332f-M-O16C64' or hwsku == 'DellEMC-Z9332f-O32'): | ||
if hwsku in ('DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32', 'Arista-7060X6-64PE-256x200G'): | ||
send_packet( | ||
self, self.src_port_ids[sidx], pkt, pkts_num_egr_mem + self.pkts_num_leak_out) | ||
else: | ||
|
@@ -3972,7 +3984,7 @@ def runTest(self): | |
pkts_num_leak_out = 0 | ||
|
||
# send packets short of triggering egress drop | ||
if hwsku == 'DellEMC-Z9332f-O32' or hwsku == 'DellEMC-Z9332f-M-O16C64': | ||
if hwsku in ('DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32', 'Arista-7060X6-64PE-256x200G'): | ||
# send packets short of triggering egress drop | ||
send_packet(self, src_port_id, pkt, pkts_num_egr_mem + | ||
pkts_num_leak_out + pkts_num_trig_egr_drp - 1 - margin) | ||
|
@@ -4437,6 +4449,9 @@ def runTest(self): | |
pg_min_pkts_num = pkts_num_egr_mem + \ | ||
pkts_num_leak_out + pkts_num_fill_min + margin | ||
send_packet(self, src_port_id, pkt, pg_min_pkts_num) | ||
elif hwsku == 'Arista-7060X6-64PE-256x200G': | ||
pg_min_pkts_num = pkts_num_egr_mem + pkts_num_fill_min | ||
send_packet(self, src_port_id, pkt, pg_min_pkts_num) | ||
elif 'cisco-8000' in asic_type: | ||
fill_leakout_plus_one( | ||
self, src_port_id, dst_port_id, pkt, pg, asic_type, pkts_num_egr_mem) | ||
|
@@ -4472,6 +4487,8 @@ def runTest(self): | |
if platform_asic and platform_asic == "broadcom-dnx": | ||
assert (pg_shared_wm_res[pg] <= | ||
((pkts_num_leak_out + pkts_num_fill_min) * (packet_length + internal_hdr_size))) | ||
elif hwsku == 'Arista-7060X6-64PE-256x200G': | ||
assert (pg_shared_wm_res[pg] == pg_shared_wm_res_base[pg]) | ||
else: | ||
assert (pg_shared_wm_res[pg] == 0) | ||
else: | ||
|
@@ -4673,7 +4690,7 @@ def runTest(self): | |
pkts_num_leak_out = 0 | ||
|
||
# send packets to trigger pfc but not trek into headroom | ||
if hwsku == 'DellEMC-Z9332f-O32' or hwsku == 'DellEMC-Z9332f-M-O16C64': | ||
if hwsku in ('DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32', 'Arista-7060X6-64PE-256x200G'): | ||
send_packet(self, src_port_id, pkt, (pkts_num_egr_mem + | ||
pkts_num_leak_out + pkts_num_trig_pfc) // cell_occupancy - margin) | ||
else: | ||
|
@@ -5048,7 +5065,7 @@ def runTest(self): | |
# so if queue min is zero, it will directly trek into shared pool by 1 | ||
# TH2 uses scheduler-based TX enable, this does not require sending packets | ||
# to leak out | ||
if hwsku == 'DellEMC-Z9332f-O32' or hwsku == 'DellEMC-Z9332f-M-O16C64': | ||
if hwsku in ('DellEMC-Z9332f-O32', 'DellEMC-Z9332f-M-O16C64', 'Arista-7060X6-64PE-256x200G'): | ||
que_min_pkts_num = pkts_num_egr_mem + pkts_num_leak_out + pkts_num_fill_min | ||
send_packet(self, src_port_id, pkt, que_min_pkts_num) | ||
else: | ||
|
@@ -5081,7 +5098,10 @@ def runTest(self): | |
None, None, pg_shared_wm_res, pg_headroom_wm_res, q_wm_res) | ||
|
||
if pkts_num_fill_min: | ||
assert (q_wm_res[queue] == 0) | ||
if hwsku == 'Arista-7060X6-64PE-256x200G': | ||
assert (q_wm_res[queue] <= margin * cell_size) | ||
else: | ||
assert (q_wm_res[queue] == 0) | ||
elif 'cisco-8000' in asic_type or "SN5600" in hwsku: | ||
assert (q_wm_res[queue] <= (margin + 1) * cell_size) | ||
else: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rick-arista , I believe we should use topo-t0-standalone-32 here, as it is consistent with our internal setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These params are generated for the 256 interface config. If you're testing with 32 interfaces I think they should still work, but you'll need to modify this ad hoc.