Skip to content

Commit

Permalink
[Barefoot] Add xon_offset to pg_profile_lookup.ini (sonic-net#12073)
Browse files Browse the repository at this point in the history
- Why I did it
Barefoot uses hysteresis, instead of 'xon-threshold'. 'xon' is only
supported in static mode, so there is a need to add this attribute
to every mode in PG profile init file

- How I did it
'xon_offset' was added to pg_profile_lookup.ini

- How to verify it
Install and basic sanity tests including traffic.
Checked with:
pfcwd/test_pfc_config.py pfcwd/test_pfcwd_all_port_storm.py
pfcwd/test_pfcwd_function.py pfcwd/test_pfcwd_war_reboot.py
pfc_asym/test_pfc_asym.py

Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>

Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>
  • Loading branch information
MariuszStachura authored Oct 20, 2022
1 parent 1dec490 commit bdebcff
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
10000 5m 34816 18432 16384 7
25000 5m 34816 18432 16384 7
40000 5m 34816 18432 16384 7
50000 5m 34816 18432 16384 7
100000 5m 36864 18432 18432 7
400000 5m 36864 18432 18432 7
10000 40m 36864 18432 18432 7
25000 40m 39936 18432 21504 7
40000 40m 41984 18432 23552 7
50000 40m 41984 18432 23552 7
100000 40m 54272 18432 35840 7
400000 40m 54272 18432 35840 7
10000 300m 49152 18432 30720 7
25000 300m 71680 18432 53248 7
40000 300m 94208 18432 75776 7
50000 300m 94208 18432 75776 7
100000 300m 184320 18432 165888 7
400000 300m 184320 18432 165888 7
# speed cable size xon xoff threshold xon_offset
10000 5m 34816 18432 16384 7 18432
25000 5m 34816 18432 16384 7 18432
40000 5m 34816 18432 16384 7 18432
50000 5m 34816 18432 16384 7 18432
100000 5m 36864 18432 18432 7 18432
400000 5m 36864 18432 18432 7 18432
10000 40m 36864 18432 18432 7 18432
25000 40m 39936 18432 21504 7 18432
40000 40m 41984 18432 23552 7 18432
50000 40m 41984 18432 23552 7 18432
100000 40m 54272 18432 35840 7 18432
400000 40m 54272 18432 35840 7 18432
10000 300m 49152 18432 30720 7 18432
25000 300m 71680 18432 53248 7 18432
40000 300m 94208 18432 75776 7 18432
50000 300m 94208 18432 75776 7 18432
100000 300m 184320 18432 165888 7 18432
400000 300m 184320 18432 165888 7 18432

Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
10000 5m 34816 18432 16384 0
25000 5m 34816 18432 16384 0
40000 5m 34816 18432 16384 0
50000 5m 34816 18432 16384 0
100000 5m 36864 18432 18432 0
10000 40m 36864 18432 18432 0
25000 40m 39936 18432 21504 0
40000 40m 41984 18432 23552 0
50000 40m 41984 18432 23552 0
100000 40m 54272 18432 35840 0
10000 300m 49152 18432 30720 0
25000 300m 71680 18432 53248 0
40000 300m 94208 18432 75776 0
50000 300m 94208 18432 75776 0
100000 300m 184320 18432 165888 0
# speed cable size xon xoff threshold xon_offset
10000 5m 34816 18432 16384 0 18432
25000 5m 34816 18432 16384 0 18432
40000 5m 34816 18432 16384 0 18432
50000 5m 34816 18432 16384 0 18432
100000 5m 36864 18432 18432 0 18432
10000 40m 36864 18432 18432 0 18432
25000 40m 39936 18432 21504 0 18432
40000 40m 41984 18432 23552 0 18432
50000 40m 41984 18432 23552 0 18432
100000 40m 54272 18432 35840 0 18432
10000 300m 49152 18432 30720 0 18432
25000 300m 71680 18432 53248 0 18432
40000 300m 94208 18432 75776 0 18432
50000 300m 94208 18432 75776 0 18432
100000 300m 184320 18432 165888 0 18432

Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# PG lossless profiles.
# speed cable size xon xoff threshold
10000 5m 34816 18432 16384 0
25000 5m 34816 18432 16384 0
40000 5m 34816 18432 16384 0
50000 5m 34816 18432 16384 0
100000 5m 36864 18432 18432 0
10000 40m 36864 18432 18432 0
25000 40m 39936 18432 21504 0
40000 40m 41984 18432 23552 0
50000 40m 41984 18432 23552 0
100000 40m 54272 18432 35840 0
10000 300m 49152 18432 30720 0
25000 300m 71680 18432 53248 0
40000 300m 94208 18432 75776 0
50000 300m 94208 18432 75776 0
100000 300m 184320 18432 165888 0
# speed cable size xon xoff threshold xon_offset
10000 5m 34816 18432 16384 0 18432
25000 5m 34816 18432 16384 0 18432
40000 5m 34816 18432 16384 0 18432
50000 5m 34816 18432 16384 0 18432
100000 5m 36864 18432 18432 0 18432
10000 40m 36864 18432 18432 0 18432
25000 40m 39936 18432 21504 0 18432
40000 40m 41984 18432 23552 0 18432
50000 40m 41984 18432 23552 0 18432
100000 40m 54272 18432 35840 0 18432
10000 300m 49152 18432 30720 0 18432
25000 300m 71680 18432 53248 0 18432
40000 300m 94208 18432 75776 0 18432
50000 300m 94208 18432 75776 0 18432
100000 300m 184320 18432 165888 0 18432

0 comments on commit bdebcff

Please sign in to comment.