to avoid the dilemma what meaningless value to pass.
ok deraadt@
-/* $OpenBSD: re.c,v 1.123 2010/07/14 19:24:27 naddy Exp $ */
+/* $OpenBSD: re.c,v 1.124 2010/07/27 20:53:39 kettenis Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
/*
* Cancel pending I/O and free all RX/TX buffers.
*/
- re_stop(ifp, 0);
+ re_stop(ifp);
/*
* Enable C+ RX and TX mode, as well as RX checksum offload.
re_init(ifp);
} else {
if (ifp->if_flags & IFF_RUNNING)
- re_stop(ifp, 1);
+ re_stop(ifp);
}
break;
case SIOCGIFMEDIA:
* RX and TX lists.
*/
void
-re_stop(struct ifnet *ifp, int disable)
+re_stop(struct ifnet *ifp)
{
struct rl_softc *sc;
int i;
-/* $OpenBSD: revar.h,v 1.6 2009/11/24 17:40:43 kettenis Exp $ */
+/* $OpenBSD: revar.h,v 1.7 2010/07/27 20:53:39 kettenis Exp $ */
/*
* Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org>
int re_attach(struct rl_softc *, const char *);
void re_reset(struct rl_softc *);
int re_init(struct ifnet *);
-void re_stop(struct ifnet *, int);
+void re_stop(struct ifnet *);
-/* $OpenBSD: if_re_pci.c,v 1.27 2009/11/26 00:12:31 kettenis Exp $ */
+/* $OpenBSD: if_re_pci.c,v 1.28 2010/07/27 20:53:39 kettenis Exp $ */
/*
* Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org>
switch(act) {
case DVACT_SUSPEND:
+ if (ifp->if_flags & IFF_RUNNING)
+ re_stop(ifp);
break;
case DVACT_RESUME:
re_reset(sc);
- if (ifp->if_flags & IFF_RUNNING)
+ if (ifp->if_flags & IFF_UP)
re_init(ifp);
break;
}