Skip to content

Add logic to generate global pause frames#720

Merged
lguohan merged 2 commits intosonic-net:masterfrom
wendani:pf_gen
Oct 10, 2018
Merged

Add logic to generate global pause frames#720
lguohan merged 2 commits intosonic-net:masterfrom
wendani:pf_gen

Conversation

@wendani
Copy link
Contributor

@wendani wendani commented Oct 8, 2018

Signed-off-by: Wenda [email protected]

Description of PR

Summary:
Fixes # (issue)

Type of change

  • [] Bug fix
  • [] Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

How did you do it?

How did you verify/test it?

Tested on dut:

$sudo python pfc_gen.py -p 16 -t 65535 -n 100000000 -i et7 -r 10.64.247.225

Every 2.0s: bcmcmd "show c xe6" | grep -E "RXPF|PFC|RXPP"                                                                                    Wed Oct 10 04:06:03 2018

RXPP.xe6                    :            59,521,457             +90,504          43,029/s
RPFC4.xe6                   :            59,597,193             +98,714           5,605/s


$sudo python pfc_gen.py -g -t 65535 -n 100000000 -i et7 -r 10.64.247.225

Every 2.0s: bcmcmd "show c xe6" | grep -E "RXPF|PFC|RXPP"                                                                                    Wed Oct 10 04:07:05 2018

RXPF.xe6                    :           103,264,765            +193,943          91,976/s


$ sudo python pfc_gen.py -g -p 16 -t 65535 -n 100000000 -i et7 -r 10.64.247.225
'-p' option is not valid when sending global pause frames ('--global' / '-g')
Usage: pfc_gen.py [options] arg1 arg2

Options:
  -h, --help            show this help message and exit
  -i Interface, --interface=Interface
                        Interface list to send packets, seperated by ','
  -p Priority, --priority=Priority
                        PFC class enable bitmap.
  -t time, --time=time  Pause time in quanta for global pause or enabled class
  -n number, --num=number
                        Number of packets to be sent
  -r IPAddress, --rsyslog-server=IPAddress
                        Rsyslog server IPv4 address
  -g, --global          Send global pause frames (not PFC)

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@wendani wendani requested review from lguohan and maggiemsft October 8, 2018 22:49
@lguohan
Copy link
Contributor

lguohan commented Oct 8, 2018

duplicated with pfc_gen.py? can you merge this into pfc_gen.py and add an option to do that?

@wendani wendani changed the title Add script to generate global pause frames Add logic to generate global pause frames Oct 10, 2018
@wendani
Copy link
Contributor Author

wendani commented Oct 10, 2018

Merged into pfc_gen.py

#720 (comment)

@lguohan lguohan merged commit cb15fec into sonic-net:master Oct 10, 2018
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…net#14412)

Why I did it
src/linkmgrd

* 3403160 - (HEAD -> 202205, origin/202205) [ci] fix azure pipeline (sonic-net#190) (33 hours ago) [Jing Zhang]
* 95abb4c - [active-standby] avoid unnecessary mux state probe after configuring to `auto` (sonic-net#183) (33 hours ago) [Jing Zhang]
* 9277650 - [ci] Fix apt-get install unable locate package issue. (sonic-net#177) (33 hours ago) [Liu Shilong]
src/sonic-linux-kernel

* 836aedf - (HEAD -> 202205, origin/202205) [202205] Add Secure Boot Kernel configuration (sonic-net#310) (35 hours ago) [Sachin Naik]
src/sonic-platform-common

* 9b367e4 - (HEAD -> 202205, origin/202205) Modify get_host_lane_assignment_option to return value based on application id (sonic-net#352) (33 hours ago) [mihirpat1]
src/sonic-platform-daemons

* a6015f2 - (HEAD -> 202205, origin/202205) chassisd: Fix crash on exit on linecard (sonic-net#347) (33 hours ago) [Patrick MacArthur]
* dcc0079 - [Supervisor][fabric] Modify the deinit function not to remove CHASSIS_FABRIC_ASIC_TABLE when supervisorctl stop chassisd (sonic-net#340) (33 hours ago) [prem-nokia]
src/sonic-swss

* a2f1428 - (HEAD -> 202205, origin/202205) Run individule pytests instead of running all pytests at once. (sonic-net#2350) (33 hours ago) [mint570]
src/sonic-swss-common

* 643132e - (HEAD -> 202205, origin/202205) Fix mod_config with empty config will delete table bug. (sonic-net#767) (34 hours ago) [Hua Liu]
* 4c7ee30 - Revamp module build script to make it work for 5.15 on Ubuntu 20.04 (sonic-net#720) (34 hours ago) [Saikrishna Arcot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants