[systemd-devel] networkd: Is auto-negotiation turned off when specifying parameters in a link file?
poma
pomidorabelisima at gmail.com
Mon May 4 13:47:24 PDT 2015
On 04.05.2015 03:29, Lennart Poettering wrote:
> On Sat, 02.05.15 12:00, Paul Menzel (paulepanter at users.sourceforge.net) wrote:
>
>>> /etc/udev/rules.d/10-speed1G-enp1s6.rules
>>> ACTION=="add", SUBSYSTEM=="net", RUN+="/usr/sbin/ethtool -s enp1s6 advertise 0x20"
>>>
>>> :03 systemd[1]: Starting Network Service...
>>> :05 systemd-networkd[1612]: enp1s6 : link configured
>>> :05 systemd-networkd[1612]: enp1s6 : gained carrier
>>> :06 systemd-networkd[1612]: enp1s6 : lost carrier
>>> :09 systemd-networkd[1612]: enp1s6 : gained carrier
>>>
>>> ~~~
>>>
>>> /etc/udev/rules.d/10-speed1G-enp1s6.rules-
>>>
>>> :15 systemd[1]: Starting Network Service...
>>> :17 systemd-networkd[1633]: enp1s6 : link configured
>>> :17 systemd-networkd[1633]: enp1s6 : gained carrier
>>
>> So in your case, `gained carrier` is indeed shown earlier saving two
>> seconds. The next message probably indicates a problem with the driver.
>>
>> Poma, what Linux kernel do you use?
>>
>> Lennart, is poma’s test sufficient to show that integrating an
>> `advertise` command(?) into systemd-networkd would be useful?
>
> Hmm? Not sure I understand the test, but if I got it right then it
> shows that using ethtool like this slows things down by 3s?
>
>
> Lennart
>
Almost true, 4s. :)
Various kernels, from longterm 3.18.12 to mainline 4.1.x.
More information about the systemd-devel
mailing list