.. index:: pair: group; Check autonegotiation and advertised modes. .. _doxid-group__ethtool-autoneg__advertise: Check autonegotiation and advertised modes. =========================================== .. toctree:: :hidden: Check that autonegotiation selects the preferred common exact PHY mode and renegotiates to a lower-priority common mode after advertised modes are changed on one side. #. Save current PHY configuration on both endpoints. #. Choose two common advertised PHY modes with different priorities. #. Establish a connection between IUT and Tester. #. Advertise preferred and lower-priority PHY modes on both sides. #. Wait until link comes up on both sides. #. Check local autonegotiation state on both sides with the initial advertised set. #. Check link partner autonegotiation state on both sides with the initial advertised set. #. Check locally advertised exact PHY modes with the initial advertised set. #. Check link partner advertised exact modes with the initial advertised set. #. Check that the preferred PHY mode is negotiated with the initial advertised set. #. Check that traffic flows with the initial advertised set. #. Remove the preferred PHY mode from the advertised set on the changed side. #. Bring the IUT interface down. #. Bring the IUT interface up. #. Wait until link comes up on both sides. #. Check local autonegotiation state on both sides. #. Check link partner autonegotiation state on both sides. #. Check locally advertised exact modes. #. Check link partner advertised exact modes. #. Check that both sides renegotiated to the lower-priority PHY mode. #. Check that traffic still flows. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * ``env.peer2peer.an_iut_change`` * ``env.peer2peer.an_tst_change`` * - if_down - If ``TRUE``, restart IUT interface after PHY changes.