summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2007-04-18 00:40:43 +0000
committeryongari <yongari@FreeBSD.org>2007-04-18 00:40:43 +0000
commit8c9ec0ed497bc6067b306bca51ac84e2a8b520f1 (patch)
tree76cd6874bee43fcc95f1df2f29d8b234c4fc6fd5 /sys/pci
parentb85dc1755da55a6af9894519f2f87dbdc3a872e2 (diff)
downloadFreeBSD-src-8c9ec0ed497bc6067b306bca51ac84e2a8b520f1.zip
FreeBSD-src-8c9ec0ed497bc6067b306bca51ac84e2a8b520f1.tar.gz
Don't reinitialize the hardware if only PROMISC flag was changed.
Previously whenever PROMISC mode turned on/off link renegotiation occurs and it could resulted in network unavailability for serveral seconds.(Depending on switch STP settings it could last several tens seconds.) Reported by: Prokofiev S.P. < proks AT logos DOT uptel DOT net > Tested by: Prokofiev S.P. < proks AT logos DOT uptel DOT net >
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_rlreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index da0fbca..8377f35 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -728,6 +728,7 @@ struct rl_softc {
uint32_t rl_hwrev;
uint32_t rl_rxlenmask;
int rl_testmode;
+ int rl_if_flags;
int suspended; /* 0 = normal 1 = suspended */
#ifdef DEVICE_POLLING
int rxcycles;
OpenPOWER on IntegriCloud