RTL8102E (if_re) doesn't work with -current

Bruce Cran bruce at cran.org.uk
Thu Dec 18 04:49:38 UTC 2008


On Wed, Dec 17, 2008 at 06:19:34PM +0900, Pyun YongHyeon wrote:
> 
> Oops, please forget previous patch and use attached patch instead.
> 
> Index: if_re.c
> ===================================================================
> --- if_re.c	(revision 186214)
> +++ if_re.c	(working copy)
> @@ -2681,7 +2681,14 @@
>  	ifp->if_drv_flags |= IFF_DRV_RUNNING;
>  	ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
>  
> -	sc->rl_flags &= ~RL_FLAG_LINK;
> +	/*
> +	 * XXX
> +	 * Since we don't request reset for rlphy(4), it's necessary
> +	 * to set initial (fake) link state. Otherwise re(4) wouldn't
> +	 * work as link state 'UP' event from mii(4) may not be
> +	 * delivered if the valid link was already established.
> +	 */
> +	sc->rl_flags |= RL_FLAG_LINK;
>  	sc->rl_watchdog_timer = 0;
>  	callout_reset(&sc->rl_stat_callout, hz, re_tick, sc);
>  }

With that patch applied (I kept the changes to rlphy.c too) the network is 
now working again.  Thanks!

-- 
Bruce Cran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20081218/be586a3d/attachment.pgp


More information about the freebsd-current mailing list