ƒ·X222511 146 488 168 146 408 621 160 137 460 243 422 218 202 197 144 125 99 848 651 420 567 661 580 285 145 142 208 3090 117 114 383 292 393 537 116 138 617 175 99 112 619 189 173 282 212 354 313 837 677 166 154 147 338 1215 300 172 148 148 186 201 421 421 99 169 1083 1083 170 170 193 619 619 275 776 1475 925 1023 661 155 759 409 371 183 125 382 151 227 156 164 155 109 128 240 276 200 103 174 179 203 148 217 593 419 99 474 225 270 161 124 266 387 320 167 294 1389 1389 119 115 1389 541 390 573 127 234 256 158 360 96 266 135 185 149 125 163 317 294 779 118 540 268 164 306 368 465 1372 598 99 879 K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-05-30T21:41:06.436179Z K 7 svn:log V 392 posix_spawn(): Do not fail when trying to close an fd that is not open. As noted in Austin Group issue #370 (an interpretation has been issued), failing posix_spawn() because an fd specified with posix_spawn_file_actions_addclose() is not open is unnecessarily harsh, and there are existing implementations that do not fail posix_spawn() for this reason. Reviewed by: ed MFC after: 10 days END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-05-30T21:49:59.182860Z K 7 svn:log V 73 sh: Add tests for some somewhat obscure aspects of function definitions. END K 10 svn:author V 2 np K 8 svn:date V 27 2011-05-30T21:56:37.041835Z K 7 svn:log V 55 Update to firmware interface 1.3.10 MFC after: 1 week END K 10 svn:author V 2 np K 8 svn:date V 27 2011-05-30T23:27:42.746706Z K 7 svn:log V 316 MFC r222003, r222085, r222102 r222003: Add missing header. The test for VLAN_CAPABILITIES later in the file doesn't make sense without it. r222085: - Enable per-channel congestion notification. - Enable PCIe relaxed ordering for all egress queues and rx data buffers. r222102: Simplify t4_os_find_pci_capability. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-05-31T00:25:52.046573Z K 7 svn:log V 529 No logner set an IPv4 loopback address by default in defaults/rc.conf. If not specified, network.subr will add it automatically if we have INET support (1). In network.subr only call the address family up/down functions if the respective AF is available. Switch to new kern.features variables for inet and inet6 as the inet sysctl tree is also available for IPv6-only kernels leading to unexpected results. Suggested by: hrs (1) Reviewed by: hrs Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 20 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-05-31T01:30:58.745563Z K 7 svn:log V 64 Correctly check MAC running status before disabling TX/RX MACs. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-05-31T05:00:45.694285Z K 7 svn:log V 46 MFC r222243,222244: Remove unused variable. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-05-31T07:02:49.765281Z K 7 svn:log V 367 Imagine situation where a security problem is found in setuid binary. User upgrades his system to fix the problem, but if he has any ZFS snapshots for the file system which contains problematic binary, any user can mount the snapshot and execute vulnerable binary. Prevent this from happening by always mounting snapshots with setuid turned off. MFC after: 2 weeks END K 10 svn:author V 3 bcr K 8 svn:date V 27 2011-05-31T07:13:07.255819Z K 7 svn:log V 150 Minor wording adjustments to usbdump(8). PR: docs/157317 Submitted by: Warren Block (wblock at wonkity dot com) Reviewed by: hps@ MFC after: 5 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-05-31T09:22:52.743646Z K 7 svn:log V 329 Add quirks to hint 4K physical sector (Advanced Format) for ATA disks not reporting it properly (none? of known disks now). Hitachi and WDC AF disks seem could be identified more or less formally. For Seagate and Samsung enumerate some found models/series. For other disks it can be forced with kern.cam.ada.X.quirks=1 tunable. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-05-31T12:03:34.793702Z K 7 svn:log V 125 - Implement RA option expiration based on the lifetime field. - Add option length check described in RFC 6106 Section 5.3.1. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-05-31T12:54:32.006160Z K 7 svn:log V 109 - Remove #ifdef RDNSS. - Style(9). - Define sin6_{linklocal,sitelocal}_all{nodes,routers} vars consistently. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-05-31T12:59:15.863430Z K 7 svn:log V 97 It is generally considered useful for release media to have kernels on them. Submitted by: joel END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-05-31T13:21:20.576055Z K 7 svn:log V 52 Fix a typo: s/file/pidfile/. Spotted by: Ben Kaduk END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-05-31T13:32:36.453461Z K 7 svn:log V 33 Use uint8_t for sockaddr sa_len. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-05-31T14:18:10.871542Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-05-31T14:40:21.772834Z K 7 svn:log V 756 Conditionally compile in the af_inet and af_inet6, af_nd6 modules. If compiled in for dual-stack use, test with feature_present(3) to see if we should register the IPv4/IPv6 address family related options. In case there is no "inet" support we would love to go with the usage() and make the address family mandatory (as it is for anything but inet in theory). Unfortunately people are used to ifconfig IF up/down etc. as well, so use a fallback of "link". Adjust the man page to reflect these minor details. Improve error handling printing a warning in addition to the usage telling that we do not know the given address family in two places. Reviewed by: hrs, rwatson Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 2 weeks END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-05-31T15:02:30.327528Z K 7 svn:log V 559 Start teaching pc-sysinstall about IPv6. Add some additional empty string checks for IPv4 and try to configure a netmask along with the address rather than doing things twice. Contrary to AUTO-DHCP, IPv6-SLAAC will accept static configuration as well, which we will use at least for resolv.conf currently and if we were given a static address configure that as an alias as well. The pc-sysinstaller changes going along were committed to PC-BSD as r10773. Reviewed by: kmoore Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 20 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-05-31T15:05:29.198726Z K 7 svn:log V 328 Remove some further INET related symbols from pf to allow the module to not only compile bu load as well for testing with IPv6-only kernels. For the moment we ignore the csum change in pf_ioctl.c given the pending update to pf45. Reported by: dru Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 20 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-05-31T15:11:23.426295Z K 7 svn:log V 474 Add a new option to toggle the display of the system idle process (per-CPU idle threads). The process is displayed by default (subject to whether or not system processes are displayed) to preserve existing behavior. The system idle process can be hidden via the '-z' command line argument or the 'z' key while top is running. When it is hidden, top more closely matches the behavior of FreeBSD <= 4.x where idle time was not accounted to any process. MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-05-31T15:11:43.481011Z K 7 svn:log V 560 On multi-core, multi-threaded PPC systems, it is important that the threads be brought up in the order they are enumerated in the device tree (in particular, that thread 0 on each core be brought up first). The SLIST through which we loop to start the CPUs has all of its entries added with SLIST_INSERT_HEAD(), which means it is in reverse order of enumeration and so AP startup would always fail in such situations (causing a machine check or RTAS failure). Fix this by changing the SLIST into an STAILQ, and inserting new CPUs at the end. Reviewed by: jhb END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-05-31T15:41:10.112883Z K 7 svn:log V 487 - Document the -H option and 'H' key alongside other options and keys rather than at the bottom of the manpage. - Remove an obsolete comment about SWAIT being a stale state. It was resurrected for a different purpose in FreeBSD 5 to mark idle ithreads. - Add a comment documenting that the SLEEP and LOCK states typically display the name of the event being waited on with lock names being prefixed with an asterisk and sleep event names not having a prefix. MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-05-31T15:49:28.880192Z K 7 svn:log V 184 Be less yell-y about new CPUs when running under a hypervisor. Hopefully the HV has set them up in a reasonable way, and the chance we can change any important settings is low anyway. END K 10 svn:author V 3 imp K 8 svn:date V 27 2011-05-31T16:59:14.322190Z K 7 svn:log V 53 Fix a couple of spelling errors. Submitted by: bcr@ END K 10 svn:author V 3 imp K 8 svn:date V 27 2011-05-31T17:14:06.104888Z K 7 svn:log V 50 Don't need (and can't use) -L to copy links here. END K 10 svn:author V 4 will K 8 svn:date V 27 2011-05-31T17:24:18.237837Z K 7 svn:log V 114 MFC r222313: Close a race between libzfs and mountd when updating NFS exports. Reviewed by: pjd Approved by: ken END K 10 svn:author V 3 ken K 8 svn:date V 27 2011-05-31T17:29:58.326880Z K 7 svn:log V 2996 Fix apparent garbage in the message buffer. While we have had a fix in place (options PRINTF_BUFR_SIZE=128) to fix scrambled console output, the message buffer and syslog were still getting log messages one character at a time. While all of the characters still made it into the log (courtesy of atomic operations), they were often interleaved when there were multiple threads writing to the buffer at the same time. This fixes message buffer accesses to use buffering logic as well, so that strings that are less than PRINTF_BUFR_SIZE will be put into the message buffer atomically. So now dmesg output should look the same as console output. subr_msgbuf.c: Convert most message buffer calls to use a new spin lock instead of atomic variables in some places. Add a new routine, msgbuf_addstr(), that adds a NUL-terminated string to a message buffer. This takes a priority argument, which allows us to eliminate some races (at least in the the string at a time case) that are present in the implementation of msglogchar(). (dangling and lastpri are static variables, and are subject to races when multiple callers are present.) msgbuf_addstr() also allows the caller to request that carriage returns be stripped out of the string. This matches the behavior of msglogchar(), but in testing so far it doesn't appear that any newlines are being stripped out. So the carriage return removal functionality may be a candidate for removal later on if further analysis shows that it isn't necessary. subr_prf.c: Add a new msglogstr() routine that calls msgbuf_logstr(). Rename putcons() to putbuf(). This now handles buffered output to the message log as well as the console. Also, remove the logic in putcons() (now putbuf()) that added a carriage return before a newline. The console path was the only path that needed it, and cnputc() (called by cnputs()) already adds a carriage return. So this duplication resulted in kernel-generated console output lines ending in '\r''\r''\n'. Refactor putchar() to handle the new buffering scheme. Add buffering to log(). Change log_console() to use msglogstr() instead of msglogchar(). Don't add extra newlines by default in log_console(). Hide that behavior behind a tunable/sysctl (kern.log_console_add_linefeed) for those who would like the old behavior. The old behavior led to the insertion of extra newlines for log output for programs that print out a string, and then a trailing newline on a separate write. (This is visible with dmesg -a.) msgbuf.h: Add a prototype for msgbuf_addstr(). Add three new fields to struct msgbuf, msg_needsnl, msg_lastpri and msg_lock. The first two are needed for log message functionality previously handled by msglogchar(). (Which is still active if buffering isn't enabled.) Include sys/lock.h and sys/mutex.h for the new mutex. Reviewed by: gibbs END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-05-31T17:33:30.563933Z K 7 svn:log V 24 Import ACPICA 20110527. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-05-31T17:34:30.934486Z K 7 svn:log V 21 Tag ACPICA 20110527. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-05-31T17:43:25.582824Z K 7 svn:log V 285 Fix the new NFS client so that it doesn't do an NFSv3 Pathconf RPC for cases where the reply doesn't include the answer. This fixes a problem reported by avg@ where the NFSv3 Pathconf RPC would fail when "ls -l" did an lpathconf(2) for _PC_ACL_NFS4. Tested by: avg MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-05-31T18:27:18.476964Z K 7 svn:log V 194 Add a sentence to the umount.8 man page to clarify the behaviour for forced dismount when used on an NFS mount point. Requested by Jeremy Chadwick. This is a content change. MFC after: 2 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-05-31T18:45:15.947502Z K 7 svn:log V 296 If driver is not running, disable interrupts and do not try to process received frames. Previously it was possible to handle RX interrupts even if controller is not fully initialized. This resulted in non-working driver after system is up and running. Reported by: hselasky Tested by: hselasky END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-05-31T19:08:25.833283Z K 7 svn:log V 439 Add module version to iwi/ipw/wpi and iwn. The version is used to check if a module is already preset, not setting it results in: can't re-use a leaf (ipw)! module_register: module pci/ipw already exists! Module pci/ipw failed to register: 17 while trying to load the module due to an entry in loader.conf. With this commit we get the expected: module ipw already present! Reported by: Dru Lavigne, bz Tested by: bz MFC after: 1 week END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-05-31T19:45:58.681845Z K 7 svn:log V 23 Merge ACPICA 20110527. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-05-31T20:23:33.185067Z K 7 svn:log V 42 Revert a change that crept in during MFC. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-05-31T20:48:58.697984Z K 7 svn:log V 520 Fix KTR_CPUMASK in order to accept a string representing a cpuset_t. This introduce all the underlying support for making this possible (via the function cpusetobj_strscan() and keeps ktr_cpumask exported. sparc64 implements its own assembly primitives for tracing events and needs to properly check it. Anyway the sparc64 logic is not implemented yet due to lack of knowledge (by me) and time (by marius), but it is just a matter of using ktr_cpumask when possible. Tested and fixed by: pluknet Reviewed by: marius END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-05-31T20:59:53.472712Z K 7 svn:log V 79 Revert r222363, as bde@ pointed out the initial solution was far more correct. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-05-31T21:22:44.684246Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-05-31T21:42:34.379480Z K 7 svn:log V 16 Revert mismerge END K 10 svn:author V 3 ken K 8 svn:date V 27 2011-05-31T22:39:32.127402Z K 7 svn:log V 526 Fix a bug introduced in revision 222537. In msgbuf_reinit() and msgbuf_init(), we weren't initializing the mutex. Depending on the contents of memory, the LO_INITIALIZED flag might be set on the mutex (either due to a warm reboot, and the message buffer remaining in place, or due to garbage in memory) and in that case, with INVARIANTS turned on, we would trigger an assertion that the mutex had already been initialized. Fix this by bzeroing the message buffer mutex for the _init() and _reinit() paths. Reported by: mdf END K 10 svn:author V 2 np K 8 svn:date V 27 2011-05-31T23:49:13.061251Z K 7 svn:log V 98 Firmware device log. # sysctl dev.t4nex.0.devlog MFC after: mdf's sysctl+sbuf changes are MFC'd END K 10 svn:author V 2 np K 8 svn:date V 27 2011-06-01T01:32:58.036927Z K 7 svn:log V 82 Provide hit-count with rest of the information about a filter. MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-06-01T01:35:09.761408Z K 7 svn:log V 187 The mere presence of IS_INTERACTIVE in the Makefile is not enough, the condition needs to be verified in case it is conditional PR: ports/157481 Submitted by: Carl END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-01T05:03:17.638004Z K 7 svn:log V 120 MFC r222283: Prevent non-aligned reading from provider while tasting. Reject providers with unsupported sectorsize. END K 10 svn:author V 3 art K 8 svn:date V 27 2011-06-01T05:50:24.609029Z K 7 svn:log V 261 MFC r219559: add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls This commits makes necessary changes in syscall/sysent generation infrastructure. PR: kern/152822 Reviewed by: jhb (ealier version) Approved by: avg (mentor) END K 10 svn:author V 3 art K 8 svn:date V 27 2011-06-01T06:01:17.648595Z K 7 svn:log V 220 Added DTrace systrace support for linux32 and freebsd32 on amd64 syscalls Regenerates system call and systrace support files. PR: kern/152822 Reviewed by: jhb (earlier version) Approved by: avg (mentor) END K 10 svn:author V 3 art K 8 svn:date V 27 2011-06-01T06:07:57.632254Z K 7 svn:log V 744 MFC r219561, r220437: add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls Add systrace_linux32 and systrace_freebsd32 modules which provide support for tracing compat system calls in addition to native system call tracing provided by systrace module. Provided that all the systrace modules are loaded now you can select what syscalls to trace in the following manner: syscall::xxx:yyy - work on all system calls that match the specification syscall:freebsd:xxx:yyy - only native system calls syscall:linux:xxx:yyy - linux compat system calls (linux32 on amd64) syscall:freebsd32:xxx:yyy - freebsd32 compat system calls on amd64 PR: kern/152822 Reviewed by: jhb (earlier version) Approved by: avg (mentor) END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-06-01T10:23:03.433671Z K 7 svn:log V 579 Add .interp back into INITIAL_READONLY_SECTIONS in MIPS n64 ABI. The binutils update in r218822 caused the MIPS n64 dynamic binaries to fail because the ".interp" section is not in the initial sections. This happens because elf64bmip-defs.sh overrides INITIAL_READONLY_SECTIONS to add ".MIPS.options" sections instead of the ".reginfo" section used by n32. This used to work fine, but after r218822, INITIAL_READONLY_SECTIONS also contains the .interp section, so the override has to be done differently. Reported by : aduane at juniper Obtained from: gonzo (Initial version) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-01T12:05:35.174878Z K 7 svn:log V 75 Hide useless warning under debug macro. PR: kern/69963 MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-01T12:33:05.267204Z K 7 svn:log V 63 Hide some debug messages under debug macro. MFC after: 1 week END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-01T13:15:24.518764Z K 7 svn:log V 55 Fix missing changes in the previous "merge from HEAD". END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-01T14:02:25.282621Z K 7 svn:log V 237 Fix a bug in determining the page table size under the power hypervisor, add a mostly redundant check for the CPU SLB size from the device tree, and hook up a hypercall to H_CEDE as the idle loop when running under the power hypervisor. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-01T14:12:35.256685Z K 7 svn:log V 1121 - Make the code more proactively clear an ND6_IFF_IFDISABLED flag when an explicit action for INET6 configuration happens. The changes are: 1. When an ND6 flag is changed via SIOCSIFINFO_FLAGS ioctl, setting ND6_IFF_ACCEPT_RTADV and/or ND6_IFF_AUTO_LINKLOCAL now triggers an attempt to clear the ND6_IFF_IFDISABLED flag. 2. When an AF_INET6 address is added successfully to an interface and it is marked as ND6_IFF_IFDISABLED, an attempt to clear the ND6_IFF_IFDISABLED happens. This simplifies ND6_IFF_IFDISABLED flag manipulation by users via ifconfig(8); in most cases the manual configuration is no longer needed. - When ND6_IFF_AUTO_LINKLOCAL is set and no link-local address is assigned to an interface, SIOCSIFINFO_FLAGS ioctl now calls in6_ifattach() to configure a link-local address. This change ensures link-local address configuration when "ifconfig IF inet6" command is invoked. For example, "ifconfig IF inet6 auto_linklocal" now always try to configure an LL addr even if ND6_IFF_AUTO_LINKLOCAL is already set to 1 (i.e. down/up cycle is no longer needed). END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-01T14:17:16.619933Z K 7 svn:log V 199 Regularize MSR setting by removing spurious isync()s (mtmsr() does an isync already) and by explicitly setting the first thread's MSR to PSL_KERNSET instead of a modification of Open Firmware's MSR. END K 10 svn:author V 3 art K 8 svn:date V 27 2011-06-01T14:41:08.766002Z K 7 svn:log V 80 Fixed lost svn:mergeinfo on some directories in sys/ Approved by: avg (mentor) END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T15:46:12.422169Z K 7 svn:log V 56 MFC r212364: Fix small errors in the sbuf(9) man page. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T15:46:26.296249Z K 7 svn:log V 56 MFC r212364: Fix small errors in the sbuf(9) man page. END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-06-01T15:48:43.898153Z K 7 svn:log V 95 Don't try to close the stream if fopen(3) fails. PR: bin/155349 Submitted by: Urankar Mikael END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T16:07:14.432691Z K 7 svn:log V 108 MFC r181462: Switch to simplified BSD license (with phk's approval), plus whitespace and style(9) cleanup. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T16:34:18.165199Z K 7 svn:log V 328 MFC r212180-r212184: Use math rather than iteration when the desired sbuf size is larger than SBUF_MAXEXTENDSIZE. Fix brain fart when converting an if statement into a KASSERT. Fix user-space libsbuf build. Why isn't CTASSERT available to user-space? Style(9) fixes and eliminate the use of min(). Use a better #if guard. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T16:34:26.152247Z K 7 svn:log V 328 MFC r212180-r212184: Use math rather than iteration when the desired sbuf size is larger than SBUF_MAXEXTENDSIZE. Fix brain fart when converting an if statement into a KASSERT. Fix user-space libsbuf build. Why isn't CTASSERT available to user-space? Style(9) fixes and eliminate the use of min(). Use a better #if guard. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-06-01T16:54:33.694319Z K 7 svn:log V 4 MFC END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-06-01T17:17:02.809092Z K 7 svn:log V 75 - Add support for BSD-specific REG_PEND Obtained from: The NetBSD Project END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T17:36:52.193759Z K 7 svn:log V 990 MFC r212365, r212367: r212365: Refactor sbuf code so that most uses of sbuf_extend() are in a new sbuf_put_byte(). This makes it easier to add drain functionality when a buffer would overflow as there are fewer code points. r212367: Add drain functionality to sbufs. The drain is a function that is called when the sbuf internal buffer is filled. For kernel sbufs with a drain, the internal buffer will never be expanded. For userland sbufs with a drain, the internal buffer may still be expanded by sbuf_[v]printf(3). Sbufs now have three basic uses: 1) static string manipulation. Overflow is marked. 2) dynamic string manipulation. Overflow triggers string growth. 3) drained string manipulation. Overflow triggers draining. In all cases the manipulation is 'safe' in that overflow is detected and managed. Note that r212367 had to be minorly re-implemented to dynamically allocate space for a function pointer, a void * argument, and an int error, to not break the ABI/KBI. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T17:40:59.366252Z K 7 svn:log V 990 MFC r212365, r212367: r212365: Refactor sbuf code so that most uses of sbuf_extend() are in a new sbuf_put_byte(). This makes it easier to add drain functionality when a buffer would overflow as there are fewer code points. r212367: Add drain functionality to sbufs. The drain is a function that is called when the sbuf internal buffer is filled. For kernel sbufs with a drain, the internal buffer will never be expanded. For userland sbufs with a drain, the internal buffer may still be expanded by sbuf_[v]printf(3). Sbufs now have three basic uses: 1) static string manipulation. Overflow is marked. 2) dynamic string manipulation. Overflow triggers string growth. 3) drained string manipulation. Overflow triggers draining. In all cases the manipulation is 'safe' in that overflow is detected and managed. Note that r212367 had to be minorly re-implemented to dynamically allocate space for a function pointer, a void * argument, and an int error, to not break the ABI/KBI. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T17:51:18.264845Z K 7 svn:log V 78 MFC r212478: (originally by kan@) Add missing pointer increment to sbuf_cat. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T17:51:27.752423Z K 7 svn:log V 78 MFC r212478: (originally by kan@) Add missing pointer increment to sbuf_cat. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-06-01T17:58:27.215182Z K 7 svn:log V 96 Add support for new USB serial driver. Submitted by: Lev Serebryakov, lev @ MFC after: 14 days END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T18:26:59.232220Z K 7 svn:log V 526 Partial MFC of r212370. np@ requested this functionality so I kept in the cxgb change, but otherwise MFC'd only the new function sbuf_new_for_sysctl(9) and none of the changed code. MFC r217830: Document sbuf_new_for_sysctl(9). Partial MFC of r217916: Explicitly wire the user buffer rather than doing it implicitly in sbuf_new_for_sysctl(9). This allows using an sbuf with a SYSCTL_OUT drain for extremely large amounts of data where the caller knows that appropriate references are held, and sleeping is not an issue. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-06-01T18:27:13.096644Z K 7 svn:log V 526 Partial MFC of r212370. np@ requested this functionality so I kept in the cxgb change, but otherwise MFC'd only the new function sbuf_new_for_sysctl(9) and none of the changed code. MFC r217830: Document sbuf_new_for_sysctl(9). Partial MFC of r217916: Explicitly wire the user buffer rather than doing it implicitly in sbuf_new_for_sysctl(9). This allows using an sbuf with a SYSCTL_OUT drain for extremely large amounts of data where the caller knows that appropriate references are held, and sleeping is not an issue. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-06-01T18:42:44.060848Z K 7 svn:log V 178 Poke correct GPIO pins for newer axe(4) controllers with Marvell PHY. Newer models seem to use different LED mode that requires enabling both GPIO1 and GPIO2. Tested by: marcel END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-01T19:44:52.364383Z K 7 svn:log V 684 O_FORWARD_IP is only action which depends from the result of lookup of dynamic rules. We are doing forwarding in the following cases: o For the simple ipfw fwd rule, e.g. fwd 10.0.0.1 ip from any to any out xmit em0 fwd 127.0.0.1,3128 tcp from any to any 80 in recv em1 o For the dynamic fwd rule, e.g. fwd 192.168.0.1 tcp from any to 10.0.0.3 3333 setup keep-state When this rule triggers it creates a dynamic rule, but this dynamic rule should forward packets only in forward direction. o And the last case that does not work before - simple fwd rule which triggers when some dynamic rule is already executed. PR: kern/147720, kern/150798 MFC after: 1 month END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2011-06-01T20:00:25.473014Z K 7 svn:log V 1377 Add an optional netisr dispatch point at ether_input(), but set the default dispatch method to NETISR_DISPATCH_DIRECT in order to force direct dispatch. This adds a fairly negligble overhead without changing default behavior, but in the future will allow deferred or hybrid dispatch to other worker threads before link layer processing has taken place. For example, this could allow redistribution using RSS hashes without ethernet header cache line hits, if the NIC was unable to adequately implement load balancing to too small a number of input queues -- perhaps due to hard queueset counts of 1, 3, or 8, but in a modern system with 16-128 threads. This can happen on highly threaded systems, where you want want an ithread per core, redistributing work to other queues, but also on virtualised systems where hardware hashing is (or is not) available, but only a single queue has been directed to one VCPU on a VM. Note: this adds a previously non-present assertion about the equivalence of the ifnet from which the packet is received, and the ifnet stamped in the mbuf header. I believe this assertion to generally be true, but we'll find out soon -- if it's not, we might have to add additional overhead in some cases to add an m_tag with the originating ifnet pointer stored in it. Reviewed by: bz MFC after: 3 weeks Sponsored by: Juniper Networks, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-06-01T20:01:02.792617Z K 7 svn:log V 829 Add some missing DFS chipset functionality to the FreeBSD HAL. Please note - this doesn't in any way constitute a full DFS implementation, it merely adds the relevant capability bits and radar detection threshold register access. The particulars: * Add new capability bits outlining what the DFS capabilities are of the various chipsets. * Add HAL methods to set and get the radar related register values. * Add AR5212 and AR5416+ DFS radar related register value routines. * Add a missing HAL phy error code that's related to radar event processing. * Add HAL_PHYERR_PARAM, a data type that encapsulates the radar register values. The AR5212 routines are just for completeness. The AR5416 routines are a super-set of those; I may later on do a drive-by pass to tidy up duplicate code. Obtained from: Linux, Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-06-01T20:09:49.345898Z K 7 svn:log V 927 Flesh out the radar detection related operations for the ath driver. This is in no way a complete DFS/radar detection implementation! It merely creates an abstracted interface which allows for future development of the DFS radar detection code. Note: Net80211 already handles the bulk of the DFS machinery, all we need to do here is figure out that a radar event has occured and inform it as such. It then drives the DFS state engine for us. The "null" DFS radar detection module is included by default; it doesn't require a device line. This commit: * Adds a simple abstracted layer for radar detection state - sys/dev/ath/ath_dfs/; * Implements a null DFS module which doesn't do anything; (ie, implements the exact behaviour at the moment); * Adds hooks to the ath driver to process received radar events and gives the DFS module a chance to determine whether a radar has been detected. Obtained from: Atheros END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-06-01T21:00:28.573682Z K 7 svn:log V 568 In the VOP_PUTPAGES() implementations, change the default error from VM_PAGER_AGAIN to VM_PAGER_ERROR for the uwritten pages. Return VM_PAGER_AGAIN for the partially written page. Always forward at least one page in the loop of vm_object_page_clean(). VM_PAGER_ERROR causes the page reactivation and does not clear the page dirty state, so the write is not lost. The change fixes an infinite loop in vm_object_page_clean() when the filesystem returns permanent errors for some page writes. Reported and tested by: gavin Reviewed by: alc, rmacklem MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2011-06-01T22:56:02.491338Z K 7 svn:log V 60 Remove some of my XXX's. More general whitespace cleanups. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2011-06-02T00:34:57.922824Z K 7 svn:log V 666 First off: update the driver README, the old one was horribly crusty, and this still isn't perfect, but its at least a bit more recent. Secondly, a few improvements to the driver from Andrew Boyer, support hint to allow devices to not attach, add VLAN_HWTSO capability so vlans can use TSO, fix in the interrupt handler to make sure the stack TX queue is processed. Oh, and also make sure IPv6 does not cause a re-init in the ioctl routine. Thanks for your efforts Andrew! Thanks to Claudio Jeker for noticing the ixgbe_xmit() routine was not correctly swapping the dma map from the first to the last descriptor in a multi-descriptor transmission, corrected this. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-06-02T00:43:16.699476Z K 7 svn:log V 313 There are a couple of structs in mfireg.h with members named 'class'. These cause problems when trying to include the header in a C++ project. Rename them to 'evt_class', and track the change in mfi and mfiutil. Submitted by: Mark Johnston Sponsored by: Sandvine Incorporated Reviewed by: jhb@ MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-06-02T00:58:20.991947Z K 7 svn:log V 276 We want to make sure that $TMPDIR exists before trying to use it. The cheapest way to do this is to just call mkdir -p. Move the umask call before this to be safe. Split the test for the existence of /usr/X11R6 and whether or not it's a link for one more micro-optimization. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-02T01:44:24.172138Z K 7 svn:log V 91 Move a handler of "nd6 options" line to af_other_status() of AF_INET6. Discussed with: bz END K 10 svn:author V 3 jfv K 8 svn:date V 27 2011-06-02T05:31:54.852265Z K 7 svn:log V 33 Cut and paste mistake corrected. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-02T07:19:19.970557Z K 7 svn:log V 289 MFC r209339: Core i5, same as previously Core2Duo, found to not set P-state for single core lower then set on other cores. Do not try to test P-states on attach on SMP systems. It is hopeless now and will just pollute verbose logs. If needed, check still can be forced via loader tunable. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-02T07:21:27.523816Z K 7 svn:log V 59 MRC r212721: Few whitespace cleanups and comments tunings. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-02T07:39:05.610571Z K 7 svn:log V 134 MFC r221789, r221794 (by jfv): Chipset support for the new Intel Panther Point PCH, thanks to Seth Heasley for preparing the changes. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-02T07:45:45.527181Z K 7 svn:log V 64 MFC r208934: Add set of codec IDs. PR: kern/147466 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-02T07:51:33.838745Z K 7 svn:log V 72 MFC r211910 (by jfv): Add Intel Cougar Point PCH HD Audio Controller ID END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-02T08:39:10.985275Z K 7 svn:log V 63 MFC r222298: Add better names for the Intel HDMI audio codecs. END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-06-02T09:56:42.429680Z K 7 svn:log V 17 mdoc: fix markup END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-06-02T09:56:53.320913Z K 7 svn:log V 36 mdoc: reorder sections consistently END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-06-02T10:18:49.656639Z K 7 svn:log V 147 Fix man -t by not passing grotty flags to groff when grotty is not involved. This fixes a regression introduced with r221303. Noticed by: jilles END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2011-06-02T10:21:05.646967Z K 7 svn:log V 179 Do not leak the pcbinfohash lock in the case where in6_pcbladdr() returns an error during TCP connect(2) on an IPv6 socket. Submitted by: bz Sponsored by: Juniper Networks, Inc. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-02T12:49:45.956570Z K 7 svn:log V 108 Do not hide stripeoffset from libgeom(3), it may be useful even when stripesize is zero. MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T13:38:03.297482Z K 7 svn:log V 4 IFC END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-06-02T13:49:19.827579Z K 7 svn:log V 82 Add a 'show vmcs' DDB command to dump state about the current CPU's current VMCS. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-06-02T13:57:10.751711Z K 7 svn:log V 87 Missed this in the previous commit to add 'show vmcs': add opt_ddb.h as a source file. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T13:57:49.965704Z K 7 svn:log V 102 Fix opening a shell on the new system (prevent the shell's stderr from ending up in the install log). END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-06-02T14:00:31.965913Z K 7 svn:log V 54 - Fix REG_STARTEND and avoid copying the input string END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-06-02T14:03:12.164433Z K 7 svn:log V 122 - Add missing regex_t member for REG_PEND - REG_PEND is not applicable to regwexec - Fix macro definition of REG_STARTEND END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-06-02T14:04:07.947710Z K 7 svn:log V 500 Some tweaks to the CPUID support: - Don't always pass the cpuid request to the current CPU as some nodes we will emulate purely in software. - Pass in the APIC ID of the virtual CPU so we can return the proper APIC ID. - Always report a completely flat topology with no SMT or multicore. - Report the CPUID2_HV feature and implement support for the 0x40000000 CPUID level. - Use existing constants from when possible and use cpu_feature2 when checking for VMX support. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-06-02T14:08:50.959068Z K 7 svn:log V 327 Empty the network configuration only after the user decided to pick an interface. Otherwise an accidental start of the netowrk configuration and immediate cancel after the install has finished removes the previously configured settings. Discussed with: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-06-02T14:09:30.702788Z K 7 svn:log V 4 MFC END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:12:37.659651Z K 7 svn:log V 373 MFpseries: Renovate and improve the AIM Open Firmware support: - Add RTAS (Run-Time Abstraction Services) support, found on all IBM systems and some Apple ones - Improve support for 32-bit real mode Open Firmware systems - Pull some more OF bits over from the AIM directory - Fix memory detection on IBM LPARs and systems with more than one /memory node (by andreast@) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:15:44.371319Z K 7 svn:log V 124 Remove some dead code: unnecessary isyncs and memory sorting, which are handled in mtmsr() and mem_regions(), respectively. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:19:18.963727Z K 7 svn:log V 169 Include the modules area in the mapped kernel code. This fixes the kernel's access to modules and loader metadata when started from real mode, but without a direct map. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:21:20.988927Z K 7 svn:log V 61 Explicitly initialize the first thread's MSR to PSL_KERNSET. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:22:00.562851Z K 7 svn:log V 24 Missed file in r222613. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:23:36.188789Z K 7 svn:log V 165 If running under a hypervisor, don't yell at the user about starting unknown CPU types, instead relying on the hypervisor to have given us a reasonable environment. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-06-02T14:25:27.781375Z K 7 svn:log V 295 Write the multi step netconfig to a temporary file and only move that to the final name if netconfig was completely finished. This fixes reentrance problems even better than r222611. Suggested by: nwhitehorn Reviewed by: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:25:52.259587Z K 7 svn:log V 219 The POWER7 has only 32 SLB slots instead of 64, like other supported 64-bit PowerPC CPUs. Add infrastructure to support variable numbers of SLB slots and move the user slot from 63 to 0, so that it is always available. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T14:32:15.053415Z K 7 svn:log V 67 Loop back infrastructural changes merged from this branch to HEAD. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-02T17:43:17.182368Z K 7 svn:log V 193 Temporarily back out those parts of r222613 related to parsing the memory map. They cause non-understood boot failures on some Apple machines with more than 2 GB of RAM (like my work desktop). END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-06-02T19:33:33.410169Z K 7 svn:log V 1290 Fix the nfs related daemons so that they don't intermittently fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-06-02T19:49:47.310752Z K 7 svn:log V 1290 Fix the nfs related daemons so that they don't intermittently fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-06-02T20:02:42.570254Z K 7 svn:log V 28 Import compiler-rt r132478. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-06-02T20:03:27.171982Z K 7 svn:log V 24 Tag compiler-rt 132478. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-06-02T20:15:32.179436Z K 7 svn:log V 1290 Fix the nfs related daemons so that they don't intermittently fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-02T20:56:42.341003Z K 7 svn:log V 448 When possible, join ranges of subsequest BIO_DELETE requests to handle more (up to 2048 instead of 256 or even 64) of them with single TRIM request. OCZ Vertex2/Vertex3 SSDs can handle no more then 64 ranges per TRIM request. Due to lack of BIO_DELETE clustering now, it means that we could delete no more then 2MB per request (on FS with 32K block) with limited request rate. This change increases delete rate on Vertex2 from 250MB/s to 950MB/s. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-06-02T20:57:36.639334Z K 7 svn:log V 292 MFC: r222075 Add a sanity check for the existence of an "addr" option to both NFS clients. This avoids the crash reported by Sergey Kandaurov (pluknet@gmail.com) to the freebsd-fs@ list with subject "[old nfsclient] different nmount() args passed from mount vs mount_nfs" dated May 17, 2011. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-02T21:59:21.214649Z K 7 svn:log V 481 Use stripesize and stripeoffset in the automatic calculation of partition offsets. If user requests specific alignment and provider's stripesize is not zero, then use a least common multiple from the stripesize and user specified value. Also fix "gpart resize" implementation: do not try to align the partition size, because the start offset may be not aligned. Instead align the end offset and then calculate size. Also use stripesize and stripeoffset for "gpart resize" command. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-02T22:15:19.661220Z K 7 svn:log V 36 Always use LCM when stripesize > 0. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-03T00:11:13.286051Z K 7 svn:log V 133 Quantities stored on the stack on ppc64 tend to be twice as large as on ppc32, so make the early stack correspondingly twice as big. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-03T01:49:04.990371Z K 7 svn:log V 163 - style(9) fixes. - Add length check for RDNSS and DNSSL option strings. - Add check for resolv.conf(5) restriction (maximum number of entries). Submitted by: bz END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-06-03T03:39:33.205815Z K 7 svn:log V 63 Create a project branch for re-engineering the if_ath TX path. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T05:16:33.330097Z K 7 svn:log V 268 Added support for the MANWIDTH environment variable: If set to a numeric value, used as the width manpages should be displayed. Otherwise, if set to a special value ``tty'', and output is to a terminal, the pages may be displayed over the whole width of the screen. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T05:16:54.616141Z K 7 svn:log V 6 Typo. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-03T05:33:38.851474Z K 7 svn:log V 173 Fix label encoding/decoding function for RFC 1035 Section 3.1 encoding. Each label can have 63 octets at most, and the length of whole domain name is limited to NI_MAXHOST. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T05:56:52.715951Z K 7 svn:log V 44 Trim more when parsing MANCONFIG directive. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-03T05:57:52.922656Z K 7 svn:log V 93 - style(9) fixes. - Do break immediately as a link-local address is found. Submitted by: bz END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-03T05:58:49.961571Z K 7 svn:log V 57 - style(9) fixes. - Comment rewording. Submitted by: bz END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-06-03T06:34:29.427033Z K 7 svn:log V 33 Use strchr() instead of index(). END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-06-03T06:58:24.036255Z K 7 svn:log V 72 Add diagnostic message about not aligned partitions. Idea from: ivoras END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-03T07:25:36.873121Z K 7 svn:log V 224 Increase maximum supported number of ranges per TRIM command from 256 to 512 to use full potential of Intel X25-M SSDs. On synthetic test with 32K ranges it gives about 20% speedup, which probably costs more then 2K of RAM. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-06-03T07:27:53.811722Z K 7 svn:log V 198 Bring over the relevant registers to use when implementing the quiet time portion of 802.11h. The AR5212 code has been brought over as a reference, it's currently untested. Obtained from: Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-06-03T09:32:49.269125Z K 7 svn:log V 683 Begin fleshing out some software TX queue handling structs along with some placeholders for software retransmit and aggregation code. Create a per-tid structure to store queued frames in (and include a placeholder to store frames currently in the AMPDU-TX block-ack window.) Introduce a per ath_txq (hardware TXQ) list which contains the ath_node entries which currently have packets ready to TX. This way the software TX scheduler can just walk the list of nodes which have indicated they have packets ready to schedule. (Something similar should be done per-TID so the per-node code won't have to iterate each TID to see if the queue is empty; but that can be done much later.) END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T10:39:36.339821Z K 7 svn:log V 27 Generally clean up markup. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T11:58:17.124037Z K 7 svn:log V 448 Don't pass -o1- to groff(1) by default. If ms(7) formatted document uses the .RP macro, a separate cover page is created as page 0 which is not otherwise output. The bug was hiding by a hack in troffrc that disables SGR support in grotty(1), which I'm going to remove now. For POLA reasons, still disable SGR support in grotty(1), by passing -P-c to groff(1). If we want SGR sequences in these documents, this can be removed. MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T12:02:53.613084Z K 7 svn:log V 176 Re-enable SGR support (ANSI color escapes) in grotty(1) by default. Our man(1) and bsd.doc.mk still disable it for POLA reasons via the -c option to grotty(1). PR: gnu/82353 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-06-03T13:12:26.345363Z K 7 svn:log V 64 We don't need quite so many memory regions for apple_hack_mode. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T13:45:11.403833Z K 7 svn:log V 214 Don't use col(1) since grotty(1) never outputs reverse line feeds, and because col(1) mangles ANSI color escapes if enabled. Spaces to tabs compression is now done by passing -h to grotty(1). Discussed with: uqs END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-06-03T13:47:05.024747Z K 7 svn:log V 275 Properly return an ENOBUFS error if a write to a tun(4) device fails due to m_uiotombuf() failing. While here, trim unneeded error handling related to tuninit() since it can never fail. Submitted by: Martin Birgmeier la5lbtyi aon at Reviewed by: glebius MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-06-03T13:49:18.133376Z K 7 svn:log V 372 Update disk's stripesize and stripeoffset parameters on provider open. They are media-dependent and may change in run-time, same as sectorsize and/or mediasize. SCSI devices return physical sector size and offset via READ CAPACITY(16) command and so can not report it until media inserted or at least until probe sequence completed. UNMAP support is also reported there. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-06-03T14:34:38.921917Z K 7 svn:log V 1279 When MANCOLOR environment variable is set, enable ANSI color escapes in grotty(1). This makes it possible to view colorized manpages in color. When MANPAGER environment variable is set, use it instead of PAGER. Why another environment variable, one might ask? With color output enabled, both a terminal and a pager should support the ANSI color escapes. On a supporting terminal, less(1) with option -R would be such a pager, while "more -s" (the current default pager for man(1)) will show garbage. It means a different default pager is needed when color output is enabled, but many people have PAGER set customary, and it's unlikely to support ANSI color escapes, so introducing yet another variable (MANPAGER) seemed like a good option to me: - if MANPAGER is set, use that unconditionally; - if you disable color support (it is by default), and don't set MANPAGER, you get an old behavior: -P pager, $PAGER, "more -s", in that order; - if you enable color support (by setting MANCOLOR), and don't set MANPAGER, we ignore PAGER which is unlikely to support ANSI color escapes, and you get: -P pager, "less -Rs", in that order; - you might have good reasons for different man(1) and general purpose pagers; - later versions of GNU man(1) support MANPAGER. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2011-06-03T14:57:38.518836Z K 7 svn:log V 504 Explicitly initialize the packet buffer to NULL after we unmap the zero copy buffers. This fixes a segfault on exit due to calling free on a bogus pointer. This should be considered a temporary stop gap fix to avoid the crash. The complete fix re-shuffles the initializations of some of the clean-up pointers. The details of the fix can be found in the libpcap git repository: commit bc8209b71e928870b0f172d43b174ab27ba24394 Proded by: kevlo, rpaulo MFC after: 2 weeks Submitted by: Anton Yuzhaninov END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-06-03T17:09:15.427445Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-06-03T17:49:16.932950Z K 7 svn:log V 787 Upgrade libcompiler_rt from revision 117047 to 132478. It seems there have only been a small amount to the compiler-rt source code in the mean time. I'd rather have the code in sync as much as possible by the time we release 9.0. Changes: - The libcompiler_rt library is now dual licensed under both the University of Illinois "BSD-Like" license and the MIT license. - Our local modifications for using .hidden instead of .private_extern have been upstreamed, meaning our changes to lib/assembly.h can now be reverted. - A possible endless recursion in __modsi3() has been fixed. - Support for ARM EABI has been added, but it has no effect on FreeBSD (yet). - The functions __udivmodsi4 and __divmodsi4 have been added. Requested by: many, including bf@ and Pedro Giffuni END