diff options
author | 2014-04-17 23:53:49 +0000 | |
---|---|---|
committer | 2014-04-17 23:53:49 +0000 | |
commit | 7f93ad5d860e28e9a3e102b1a66d0582c3cd7a59 (patch) | |
tree | 37430014e7222e7ce321ced3ac3e2bc1feedfc5a /sys/dev/pci/qle.c | |
parent | whack a bunch of disabled code. ok beck lteo (diff) | |
download | wireguard-openbsd-7f93ad5d860e28e9a3e102b1a66d0582c3cd7a59.tar.xz wireguard-openbsd-7f93ad5d860e28e9a3e102b1a66d0582c3cd7a59.zip |
When iterating through fabric ports, start at our own port ID, so we can
reliably tell when we've been through the whole list.
Diffstat (limited to 'sys/dev/pci/qle.c')
-rw-r--r-- | sys/dev/pci/qle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c index e14ff742fbb..97f71d222c9 100644 --- a/sys/dev/pci/qle.c +++ b/sys/dev/pci/qle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qle.c,v 1.22 2014/04/17 23:17:18 jmatthew Exp $ */ +/* $OpenBSD: qle.c,v 1.23 2014/04/17 23:53:49 jmatthew Exp $ */ /* * Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org> @@ -2038,7 +2038,7 @@ qle_do_update(void *xsc, void *x) DEVNAME(sc)); qle_clear_port_lists(sc); qle_ports_gone(sc, QLE_LOCATION_FABRIC); - lastport = 0; + lastport = sc->sc_port_id; firstport = 0xffffffff; step = 0; if (qle_update_fabric(sc)) |