diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-11-26 00:12:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-11-26 00:12:32 +0000 |
commit | 76fd7ffdc11cba1cb8d764a1ce63ab2eceba8abd (patch) | |
tree | fdc75888cc45217644a2f5a667eb16fff2b30cff /sys/dev/pci/if_re_pci.c | |
parent | a52fd6eebd2b388f9a82495a72a44e75eef968dd (diff) |
Only re-initialise interfaces on suspend if they were IFF_RUNNING.
ok deraadt@, claudio@
Diffstat (limited to 'sys/dev/pci/if_re_pci.c')
-rw-r--r-- | sys/dev/pci/if_re_pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_re_pci.c b/sys/dev/pci/if_re_pci.c index 89f7a2d9c1c..34011c517b4 100644 --- a/sys/dev/pci/if_re_pci.c +++ b/sys/dev/pci/if_re_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_re_pci.c,v 1.26 2009/11/24 17:40:43 kettenis Exp $ */ +/* $OpenBSD: if_re_pci.c,v 1.27 2009/11/26 00:12:31 kettenis Exp $ */ /* * Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org> @@ -252,7 +252,8 @@ re_pci_activate(struct device *self, int act) break; case DVACT_RESUME: re_reset(sc); - re_init(ifp); + if (ifp->if_flags & IFF_RUNNING) + re_init(ifp); break; } |