[systemd-devel] networkd: Is auto-negotiation turned off when specifying parameters in a link file?
Lennart Poettering
lennart at poettering.net
Sun May 3 18:29:31 PDT 2015
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
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list