<p dir="ltr">On Nov 11, 2014 6:09 PM, "Shankar Unni" <<a href="mailto:shankarunni@netscape.net">shankarunni@netscape.net</a>> wrote:<br>
><br>
> Our box has to deal with a few broken external switches that don't auto-negotiate properly. (Our box is based on an Intel Rangeley Atom, with the IGB driver for eth0/1, and we're running BB, more or less - tip of the barrier_breaker branch).<br>
><br>
> Is there any way to disable auto-negotiation on an ethernet interface and manually set the speed and duplex parameters for it via netifd? (some equivalent of "option autonegotiate 0", etc.?) I couldn't find anything in netifd that would allow us to specify this directly. Failing this, are there any clever tricks that can allow us to do this?</p>
<p dir="ltr">I do not think netifd supports that but one way to do it is to invoke ethtool. That said, it should not be too hard to patch netifd to send the ethtool ioctl() to force the speed/duplex/autoneg on a specific interface<br></p>
<p dir="ltr">><br>
> I'm guessing this will come down to writing some hotplug scripts to read extra configs from /etc/config/network and invoke ethtool manually..</p>
<p dir="ltr">Right that's what I would do, unless you go patch netifd to do that.</p>
<p dir="ltr">><br>
> Thanks in advance!<br>
> --<br>
> Shankar Unni.<br>
> _______________________________________________<br>
> openwrt-devel mailing list<br>
> <a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
> <a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</p>