Set new status of the Ethernet link flow
control test
Set new status of the Ethernet link flow control for Ethernet device
Make sure that it is possible to set new status of the Ethernet link flow control
Set flow control on the partner to 'autoneg=on, rx=on, tx=on'
Initialize EAL, prepare ethdev_state Ethernet device state
Get current flow control settings on port iut_port
Set new flow control settings on port iut_port
If
ethdev_state == TEST_ETHDEV_STARTED:Await link renegotiation
Get flow control settings
Compare flow control settings with written ones
If device is already started, stop it
Start the device to check settings once again
Get flow control settings once again
Compare obtained flow control settings vs previously obtained
Daniil Byshenko daniil.byshenko@oktetlabs.ru
Parameters:
ethdev_state |
The state of Ethernet device
|
mode |
The Flow Control mode to set:
|
high_water |
High water mark of Rx flow control, or |
low_water |
Low water mark of Rx flow control, or |
pause_time |
Pause frame transmit time, or |
send_xon |
Whether to send XON frames ( |
autoneg |
Flow control autonegotiation ( |
mac_ctrl_frame_fwd |
Forwarding of MAC control frames ( |