Change WAIT_FOR_AUTO_NEG_DEFAULT to 0. Do not wait for auto-negotiation to
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 16 Apr 2004 23:18:14 +0000 (23:18 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 16 Apr 2004 23:18:14 +0000 (23:18 +0000)
commitd8edf95fc6f49ec23601a21ded9be1999f26150c
treebe7ffda31e002fe6b4b2659a1e21594d65402109
parentab443496c754b5decb7f419505bdf853d2b1ac09
Change WAIT_FOR_AUTO_NEG_DEFAULT to 0.  Do not wait for auto-negotiation to
complete before continuing.  if_em can take over two seconds to autoneg, and it
renegotiates virtually every time the interface is manipulated.  For example,
running dhclient will cause if_em to renegotiate 3 times in a row.

Note that even when we were waiting for autoneg, the interface would not
always be completely up after the autoneg completed.  This is possibly
due to the watchdog timer (which is on a 2 second interval).  In fact, on
my test box this is what was tickling the recently fixed DNS bug (timing
out on part of the dns search path) and subsequent NFS mount failures.
sys/dev/netif/em/if_em.h