summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-03-30Support for more chipset versions, written by Ian LindsayTheo de Raadt
2009-03-30Remove the DRM_SPIN lock macros, just expand them to mutex operations.Owain Ainsworth
2009-03-29Correct a couple of ioctl definitions (GEM ioctls, not used yet). andOwain Ainsworth
add two more {GET,SET}_PARAM arguments that aren't supported yet but are needed for a libdrm update.
2009-03-29bzero pci attach argsMark Kettenis
2009-03-29bzero pci attach argsMark Kettenis
ok deraadt@, miod@
2009-03-29Take a shot at baud rate calculations for the 8-portTheo de Raadt
Serial Technologies Expander PCI-232-108
2009-03-29Enable ahc(4).Mark Kettenis
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-03-29Make sure systat mbufs prints the interface name even if an interface onlyMark Kettenis
allocates clusters larger than 2k. ok deraadt@
2009-03-29Update spf_calc() for OSPFv3.Stefan Sperling
This implements the first stage of the shortest path tree calculation (Dijkstra calculation) as outlined in rfc5340, with the exception that we do not yet treat multiple router LSAs originated by a single router as an agregate. For now, we only use the Router LSA with the lowest link state ID. For each destination, show the calculated set of nexthops in the debug log. We can stop doing this once spf tree calculation has been shown to be stable. "A lot of debug code but yes why not. commit it." claudio@
2009-03-29Update calc_nexthop() for OSPFv3, using helper functions added inStefan Sperling
last commit. Next hop IP addresses and outgoing interfaces can now be correctly determined, paving the way for SPF tree calculation. Arguments have changed, so update callers, too. ok claudio@
2009-03-29As a first step towards SPF tree calculation, prepare for properStefan Sperling
next-hop calculation. In OSPFv3, next-hop IP addresses are always link-local. The kernel will want to know which interface the link-local address belongs to, so we need an ifindex in struct v_nexthop in addition to the IP address. Because we cannot determine a link-local next hop IP address for transit networks, only the outgoing interface will be recorded. Update calc_nexthop_add() according to the above. Also add new helpers calc_nexthop_lladdr() and calc_nexthop_transit_nbr(), to figure out link-local addresses of nexthop neighbours. ok claudio@
2009-03-29No more NUMBOOT==2 stuff around, nuke it for sake of clarity.Tobias Weingartner
ok krw@
2009-03-29Update linked() for OSPFv3.Stefan Sperling
A router vertex w has a point-to-point link back to a router vertex v if v's router ID occurs as neighbour ID in one of the point-to-point links described in w's router LSA. A router vertex w has a link back to a network vertex v if the router ID of v's advertising router (i.e. DR) occurs as neighbour ID in one of the transit links described in w's router LSA, and v's interface ID to the network matches the neighbour interface ID of that transit link. A network vertex w has a link back to a router vertex v if v's router ID occurs in the list of attached routers in w's network LSA. Also, get_rtr_link() and get_net_link() take an unsigned int now. "commit it" claudio@
2009-03-29Change get_net_link()'s idx argument to unsigned, and make itStefan Sperling
use less local variables. Makes it consistent with get_rtr_link(). ok claudio@
2009-03-29Because get_rtr_link() forgot to increment the buffer offsetStefan Sperling
it was always returning the first link in the LSA, no matter which link was requested. Fix this bug. Also, decrease the number of local variables while here, and convert the idx argument to unsigned int. Adjust one caller to pass an unsigned int, other callers will be handled in follow-up commits. ok claudio@
2009-03-29Remove lsa_find_net(), it isn't needed for OSPFv3.Stefan Sperling
pointed out by and ok claudio@
2009-03-29printf() -> cvs_printf() so it works under server mode as wellJoris Vink
spotted by Jonathan Armani <dbd@asystant.net>
2009-03-29Add lsa_find_rtr() function, which finds among multiple routerStefan Sperling
LSAs originated by the same router the one with the lowest link state ID. ok claudio@
2009-03-29In lsa_num_links(), be more obvious about what parts of the LSAStefan Sperling
are subtracted from the total length. ok claudio@
2009-03-29Add log_rtr_id() function to log 32bit numbers in dot-quad notation.Stefan Sperling
Most obvious use is to log router IDs. To facilitate logging of multiple IDs within the same format string, we use NUM_LOGS static buffers, just like log_sockaddr() does. help and ok claudio@
2009-03-29Now that struct lsa_net represents just the options, orig_net_lsa()Stefan Sperling
can make use of it much better. No functional change. ok claudio@
2009-03-29Remove att_rtr field from struct lsa_net.Stefan Sperling
In Network-LSAs, the only thing sitting between the LSA header and the attached router list is the options field. We already have lsa_net_link to represent elements of the attached router list, so there's no need to have a single entry of this list in lsa_net. ok claudio@
2009-03-29Key-Id 0 is not only not available on Cisco devices but also on other devices.Claudio Jeker
Make this a more general concern about using 0 as key id. After discussion with Tamas TEVESZ
2009-03-29Stop using the att_rtr member of struct lsa_net, we're going to remove it.Stefan Sperling
Calculate offsets with a struct lsa_net_link pointer instead. ok claudio@
2009-03-29When trying to get the console font metrics and window position, we canMiod Vallat
always retrieve the font metrics, even on older (< 2.9) prom, so do it.
2009-03-29Finally fix kernel crash (page fault) when closing bulk devices.Marcus Glocker
Help from kettenis@
2009-03-29For SPF calculation, we will need the source address specifiedStefan Sperling
in hello packets by next-hop neighbours. So when notifying the RDE of a new neighbour, send the source address, too. ok claudio@
2009-03-29ospf6ctl had lsa_rtr_link fields mixed up.Stefan Sperling
It printed iface_id as the neighbour's interface ID, but iface_id is in fact the ID of the advertising router's interface being described. ok claudio@
2009-03-29spelloMarco Peereboom
2009-03-29Bypass macsec on extreme/supreme based chips.Jonathan Gray
Makes my 88E8072 work. ok kettenis@
2009-03-29turn some log_debugs into log_warns or even fatals; "looks ok" gilles@Jacek Masiulaniec
2009-03-29Remove holdover XMAC II writes/reads inherited from sk asJonathan Gray
they aren't required and cause problems like the 88E8072 hard locking a system when enabling macsec bypass. Tested on 8053/8072 by me and 8021 by kettenis. ok kettenis@
2009-03-29Remove unused prototype.Mark Kettenis
2009-03-29otto points out that the -v printing changes are incompatible with theTheo de Raadt
expectation that -R will read the output of disklabel. I suspect we will find another way to do this; ok otto
2009-03-29Remove the lock_time member from the hardware lock. It's not thatOwain Ainsworth
useful, and driver shouldn't need to know about ``ticks''.
2009-03-29when we steal the SYNC CACHE command in mfi_scsi_cmd we still have toDavid Gwynne
mark the xs as done and call scsi_done for it rather than just returning COMPLETE.
2009-03-29fix a small race in mfi_mgmt between the checking of a ccbs completion andDavid Gwynne
the sleep waiting for the completion. it is possible to get the interrupt completing the command just before the tsleep, which will never get a wakeup because the interrupt with the wakeup has already happened.
2009-03-28Verbiage tweaks from jmc@ and millert@.Kenneth R Westerback
2009-03-28do not crash when no mountpoints, spotted by otto; ok krwTheo de Raadt
2009-03-28when i fixed to attic handling i forgot one special caseJoris Vink
that we'd hit in normal checkouts/updates for duplicate file and dirs. found and diff tested by krw@
2009-03-28Use vnconfig's -t capability to avoid specifying geometry info toKenneth R Westerback
fdisk while building media. ok deraadt@
2009-03-28Move some output under the control of the '-v' flag. In particular onlyKenneth R Westerback
display the partition info by default as is done in the E(ditor). The physical info is now only displayed if '-v' is specified. ok deraadt@
2009-03-28Add 'U' command to E(ditor). It reverts label to state it was inKenneth R Westerback
when entering E(ditor) mode. Clean up 'u' code and make more effort to keep label and mountpoint info in sync. Makes 'u' undo-able so those with vi fingers can apply and revert changes (with perhaps a 'p' or two in between) to validate changes. 'U' suggested by deraadt@. ok deraadt@
2009-03-28add C99-conformant nan, nanf, nanl for vax. always return zero,Martynas Venckus
since its fp does not have distinguished values for qnans. tested by naddy@; fixes libnova. ok theo
2009-03-28Print the correct function name in log_debug().Michele Marchetto
ok stsp@
2009-03-28pathnames with space, tab, newline, etc are encoded before being sent.Theo de Raadt
But they were not reliably being decoded, resulting in wrong naming on the target machine. diff from Tim van der Molen
2009-03-28use a static and unique string as the disk lock name, so if we're waitingDavid Gwynne
on the disk lock we can find that code rather than wondering where "sd0" gets passed to tsleep. ok deraadt@
2009-03-28the CAVEAT about -B is described earlier; ok jmcTheo de Raadt
2009-03-28make -B not even show up in usage on non-NUMBOOT systems; ok jmc krwTheo de Raadt