ƒ³3169202 174 169 209 139 154 229 128 621 1198 136 131 1471 119 112 433 128 253 206 181 555 3263 411 150 257 133 543 220 119 283 141 458 250 177 136 213 1098 227 232 133 639 185 159 174 210 281 179 225 330 228 511 114 114 117 328 189 190 268 180 304 155 165 142 195 230 188 132 170 235 680 146 924 402 281 195 150 151 982 787 136 112 289 254 178 1524 252 292 209 249 153 1028 1016 321 228 601 320 137 111 852 207 159 139 164 421 341 158 206 155 181 112 111 404 112 219 361 233 303 244 145 365 756 465 206 197 190 275 143 243 166 271 178 105 147 151 147 245 133 454 282 149 273 146 247 225 154 244 226 284 116 348 243 169 1304 204 141 213 197 206 241 578 284 245 223 696 533 346 175 305 119 161 226 549 459 174 421 184 K 10 svn:author V 3 njl K 8 svn:date V 27 2007-05-02T06:15:13.000000Z K 7 svn:log V 77 MFC: rate-check the interrupt storm message and bump the counter 500 -> 1000 END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-02T07:52:55.000000Z K 7 svn:log V 112 Test for IFM_FDX rather than IFM_HDX as the half-duplex bit may not be set even if the link is not full-duplex. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-02T08:58:28.000000Z K 7 svn:log V 43 Set the master flag on the right variable. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-02T10:26:32.000000Z K 7 svn:log V 62 MFC rev. 1.35-1.41: Clean up and update the HARDWARE section. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-02T10:51:48.000000Z K 7 svn:log V 136 Update info on VLAN support in hardware: - bce(4) and cxgb(4) can do hardware acceleration; - fwe(4) and nfe(4) can handle long frames. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-02T11:13:48.000000Z K 7 svn:log V 36 Fix a couple of typos in a comment. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-05-02T12:50:13.000000Z K 7 svn:log V 528 - Somehow the disable fragment option got lost. We could set/clear it but would not do it. Now we will. - Moved to latest socket api for extended sndrcv info struct. - Moved to support all new levels of fragment interleave (0-2). - Codenomicon security test updates - length checks and such. - Bug in stream reset (2 actually). - setpeerprimary could unlock a null pointer, fixed. - Added a flag in the pcb so netstat can see if we are listening easier. Obtained from: (some of the Listen changes from Weongyo Jeong) END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-05-02T13:49:28.000000Z K 7 svn:log V 1104 Document (in a comment) the current (slightly broken) handling of special values in more detail, and change the style of this comment to be closer to fdlibm and C99: - tgamma(-Inf) was undocumented and is wrong (+Inf, should be NaN) - tgamma(negative integer) is as intended (+Inf) but not best for IEEE-754 (NaN) - tgamma(-0) was documented as being wrong (+Inf) but was correct (-Inf) - documentation of setting of exceptions (overflow, etc.) was more complete here than in most of libm, but was further from matching the actual setting than in most of libm, due to various bugs here (primarily, always evaluating +Inf one/zero and getting unwanted divide-by-zero exceptions from this). Now the actual behaviour with gcc -O0 is documented. Optimization still breaks setting of exceptions all over libm, so nothing can depend on this working. - tgamma(NaN)'s exception was documented as being wrong (invalid) but was correct (no exception with IEEEish NaNs). Finish (?) rev.1.5. gamma was not renamed to tgamma in one place. Finish (?) rev.1.6. errno.h was not completely removed. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T15:15:51.000000Z K 7 svn:log V 44 MFC: Various fixes to NFS DirectIO support. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T15:22:20.000000Z K 7 svn:log V 39 MFC: Comment fixes in 1.106 and 1.107. END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-05-02T15:24:49.000000Z K 7 svn:log V 1377 Fix tgamma() on some special args: (1) tgamma(-Inf) returned +Inf and failed to raise any exception, but should always have raised an exception, and should behave like tgamma(negative integer). (2) tgamma(negative integer) returned +Inf and raised divide-by-zero, but should return NaN and raise "invalid" on any IEEEish system. (3) About half of the 2**52 negative intgers between -2**53 and -2**52 were misclassified as non-integers by using floor(x + 0.5) to round to nearest, so tgamma(x) was wrong (+-0 instead of +Inf and now NaN) on these args. The floor() expression is hard to use since rounding of (x + 0.5) may give x or x + 1, depending on |x| and the current rounding mode. The fixed version uses ceil(x) to classify x before operating on x and ends up being more efficient since ceil(x) is needed anyway. (4) On at least the problematic args in (3), tgamma() raised a spurious inexact. (5) tgamma(large positive) raised divide-by-zero but should raise overflow. (6) tgamma(+Inf) raised divide-by-zero but should not raise any exception. (7) Raise inexact for tiny |x| in a way that has some chance of not being optimized away. The fix for (5) and (6), and probably for (2), also prevents -O optimizing away the exception. PR: 112180 (2) Standards: Annex F in C99 (IEC 60559 binding) requires (1), (2) and (6). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T15:27:24.000000Z K 7 svn:log V 27 MFC: Comment fix in 1.110. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2007-05-02T15:30:24.000000Z K 7 svn:log V 17 MPSAFE atapi-cam END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-05-02T15:32:05.000000Z K 7 svn:log V 340 When rc.d/NETWORKING included this script in its REQUIRE line, a circular dependency was introduced because this script had rc.d/localpkg (which is *after* rc.d/NETWORKING) in its REQUIRE line. From an examination of its contents it seems that only the availability of a local filesystem is necessary for this script to function properly. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T15:40:15.000000Z K 7 svn:log V 36 MFC: Add 'pmap_invalidate_cache()'. END K 10 svn:author V 3 mtm K 8 svn:date V 27 2007-05-02T15:49:30.000000Z K 7 svn:log V 160 Move options that do not have anything to do with routing out of rc.d/routing and in to rc.d/netoptions. Also instead of saying "TCP options" say "IP options". END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T16:16:57.000000Z K 7 svn:log V 113 MFC: Add various constants for the PAT MSR and the PAT PTE and PDE flags and initialize the PAT MSR during boot. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T16:21:18.000000Z K 7 svn:log V 89 Use more specific local variable pointers to narrow some expressions. MFC after: 1 week END K 10 svn:author V 3 bde K 8 svn:date V 27 2007-05-02T16:54:22.000000Z K 7 svn:log V 462 Don't assume that int is signed 32-bits in one place. Keep assuming that ints have >= 31 value bits elsewhere. s/int/int32_t/ seems to have been done too globally for all other files in msun/src before msun/ was imported into FreeBSD. Minor fixes in comments. e_lgamma_r.c: Describe special cases in more detail: - exception for lgamma(0) and lgamma(neg.integer) - lgamma(-Inf) = Inf. This is wrong but is required by C99 Annex F. I hope to change this. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T17:50:36.000000Z K 7 svn:log V 3169 Revamp the MSI/MSI-X code a bit to achieve two main goals: - Simplify the amount of work that has be done for each architecture by pushing more of the truly MI code down into the PCI bus driver. - Don't bind MSI-X indicies to IRQs so that we can allow a driver to map multiple MSI-X messages into a single IRQ when handling a message shortage. The changes include: - Add a new pcib_if method: PCIB_MAP_MSI() which is called by the PCI bus to calculate the address and data values for a given MSI/MSI-X IRQ. The x86 nexus drivers map this into a call to a new 'msi_map()' function in msi.c that does the mapping. - Retire the pcib_if method PCIB_REMAP_MSIX() and remove the 'index' parameter from PCIB_ALLOC_MSIX(). MD code no longer has any knowledge of the MSI-X index for a given MSI-X IRQ. - The PCI bus driver now stores more MSI-X state in a child's ivars. Specifically, it now stores an array of IRQs (called "message vectors" in the code) that have associated address and data values, and a small virtual version of the MSI-X table that specifies the message vector that a given MSI-X table entry uses. Sparse mappings are permitted in the virtual table. - The PCI bus driver now configures the MSI and MSI-X address/data registers directly via custom bus_setup_intr() and bus_teardown_intr() methods. pci_setup_intr() invokes PCIB_MAP_MSI() to determine the address and data values for a given message as needed. The MD code no longer has to call back down into the PCI bus code to set these values from the nexus' bus_setup_intr() handler. - The PCI bus code provides a callout (pci_remap_msi_irq()) that the MD code can call to force the PCI bus to re-invoke PCIB_MAP_MSI() to get new values of the address and data fields for a given IRQ. The x86 MSI code uses this when an MSI IRQ is moved to a different CPU, requiring a new value of the 'address' field. - The x86 MSI psuedo-driver loses a lot of code, and in fact the separate MSI/MSI-X pseudo-PICs are collapsed down into a single MSI PIC driver since the only remaining diff between the two is a substring in a bootverbose printf. - The PCI bus driver will now restore MSI-X state (including programming entries in the MSI-X table) on device resume. - The interface for pci_remap_msix() has changed. Instead of accepting indices for the allocated vectors, it accepts a mini-virtual table (with a new length parameter). This table is an array of u_ints, where each value specifies which allocated message vector to use for the corresponding MSI-X message. A vector of 0 forces a message to not have an associated IRQ. The device may choose to only use some of the IRQs assigned, in which case the unused IRQs must be at the "end" and will be released back to the system. This allows a driver to use the same remap table for different shortage values. For example, if a driver wants 4 messages, it can use the same remap table (which only uses the first two messages) for the cases when it only gets 2 or 3 messages and in the latter case the PCI bus will release the 3rd IRQ back to the system. MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T18:42:47.000000Z K 7 svn:log V 318 MFC: Initial PAT support including the following: - New pmap_mapdev_attr() function for amd64 and i386. - pmap_mapdev() on i386 and amd64 uses UC now rather than WB. - New pmap_mapbios()/pmap_unmapbios() functions to map firmware tables. - New pmap_change_attr() function for amd64 and i386. - Bump __FreeBSD_version. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T18:43:51.000000Z K 7 svn:log V 58 Update __FreeBSD_version check for MFC of pmap_mapbios(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T18:48:18.000000Z K 7 svn:log V 164 MFC: Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and i386 by mapping the pages as UC (uncacheable) using pmap_change_attr(). Requested by: ariff END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-02T20:16:29.000000Z K 7 svn:log V 41 Argh, fix a mis-merge. Reported by: kib END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2007-05-03T04:33:11.000000Z K 7 svn:log V 445 If lstat(2) fails, have bsdtar return a non-zero exit code if the failed path is one which was specified on the command line. This is a compromise between the situation prior to revision 1.57 (where a race between tar(1) and rm(1) could cause tar(1) to spuriously report an error) and the situation after revision 1.57 (where "tar -c /no/such/path" prints a warning but returns with an exit code of zero). Inspired by: rafan MFC after: 1 week END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-03T08:56:20.000000Z K 7 svn:log V 123 - Add a disabled state for ports that can not be aggregated - Refine check for lacp links, set to disabled if not suitable END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-03T09:07:36.000000Z K 7 svn:log V 23 Fix flag descriptions. END K 10 svn:author V 6 thomas K 8 svn:date V 27 2007-05-03T09:38:54.000000Z K 7 svn:log V 187 MFC rev. 1.52: (atapi_cb): Fix test for the presence of sense data. An incorrect condition was being tested, which would result in a system hang in some configurations. PR: kern/112119 END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2007-05-03T09:51:12.000000Z K 7 svn:log V 47 Remove sa1_cache_clean_addr. It isn't needed. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-03T09:56:51.000000Z K 7 svn:log V 365 MFC rev. 1.32: Fix a typo: argv -> argvp. Rationale: We are interested in the current (last) element of the argv array there, not in its first element. [...] Also add a comment that the argv array ends up null-terminated in any case (it's due to the design of the for loop) as an answer to a possible question why the whole argv isn't zero-filled. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2007-05-03T11:13:58.000000Z K 7 svn:log V 153 MFC: Implement 32 bit getcontext/setcontext/swapcontext on amd64. Still stubs for ia64 to keep it compiling. These are used by 32 bit apps such as gdb. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2007-05-03T11:18:44.000000Z K 7 svn:log V 81 Regen after addition of 32bit versons of getcontext, setcontext and swapcontext. END K 10 svn:author V 6 benjsc K 8 svn:date V 27 2007-05-03T11:34:36.000000Z K 7 svn:log V 41 Add myself Approved by: mlaier (mentor) END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2007-05-03T13:57:19.000000Z K 7 svn:log V 115 Initialise variable size so that reading stdin works deterministically. Add missing include. Default to WARNS=6. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-03T14:42:42.000000Z K 7 svn:log V 1000 sblock() implements a sleep lock by interlocking SB_WANT and SB_LOCK flags on each socket buffer with the socket buffer's mutex. This sleep lock is used to serialize I/O on sockets in order to prevent I/O interlacing. This change replaces the custom sleep lock with an sx(9) lock, which results in marginally better performance, better handling of contention during simultaneous socket I/O across multiple threads, and a cleaner separation between the different layers of locking in socket buffers. Specifically, the socket buffer mutex is now solely responsible for serializing simultaneous operation on the socket buffer data structure, and not for I/O serialization. While here, fix two historic bugs: (1) a bug allowing I/O to be occasionally interlaced during long I/O operations (discovere by Isilon). (2) a bug in which failed non-blocking acquisition of the socket buffer I/O serialization lock might be ignored (discovered by sam). SCTP portion of this patch submitted by rrs. END K 10 svn:author V 4 stas K 8 svn:date V 27 2007-05-03T22:17:35.000000Z K 7 svn:log V 133 - Add documentation notes for the 'a' option, forgotten in the previous commit. commands.c [1] top.X Suggested by: rafan [1] END K 10 svn:author V 4 stas K 8 svn:date V 27 2007-05-03T22:39:24.000000Z K 7 svn:log V 138 - MFC up to 1.106: * add hpiod and hpssd (1.106) * add amanda control tcp port (1.105) * sync xmmp service names with IANA (1.104). END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-03T22:39:52.000000Z K 7 svn:log V 37 Add a newline to the printf message. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-05-04T00:00:12.000000Z K 7 svn:log V 546 Merge in the new driver (6.5.0) of Intel. This has a new shared code infrastructure that is family specific and modular. There is also support for our latest gigabit nic, the 82575 that is MSI/X and multiqueue capable. The new shared code changes some interfaces to the core code but testing at Intel has been going on for months, it is fairly stable. I have attempted to be careful in retaining any fixes that CURRENT had and we did not, I apologize in advance if any thing gets clobbered, I'm sure I'll hear about it :) Approved by pdeuskar END K 10 svn:author V 3 suz K 8 svn:date V 27 2007-05-04T02:34:17.000000Z K 7 svn:log V 93 fixed a memory leak in unresolved ND queue processing Obtained from: KAME MFC after: 1 week END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-05-04T05:58:46.000000Z K 7 svn:log V 67 Last minute mistake crept in, old file name. Approved by:pdeuskar END K 10 svn:author V 3 jfv K 8 svn:date V 27 2007-05-04T07:21:01.000000Z K 7 svn:log V 82 Absolute pathname in the Makefile was broken, this version should work correctly. END K 10 svn:author V 4 roam K 8 svn:date V 27 2007-05-04T09:06:59.000000Z K 7 svn:log V 116 MFC rev. 1.35 - remove MSG_PEEK from the description of the send(2) syscall; it is only relevant for incoming data. END K 10 svn:author V 2 bz K 8 svn:date V 27 2007-05-04T11:15:41.000000Z K 7 svn:log V 189 Add support for filtering on Routing Header Type 0 and Mobile IPv6 Routing Header Type 2 in addition to filter on the non-differentiated presence of any Routing Header. MFC after: 3 weeks END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-05-04T12:38:46.000000Z K 7 svn:log V 85 Fix use-after-free for DMA tag. Destroy DMA tag later. Submitted by: Yuriy Tsibizov END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-04T13:29:45.000000Z K 7 svn:log V 128 Add missing e1000_82575.c entry to build in order to improve chances of kernel compilation due to missing symbols in em driver. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-04T13:30:44.000000Z K 7 svn:log V 233 $FreeBSD$ tags are not compilable C code; wrap in either __FBSDID() or in comments for .c and .h files respectively. Jack may want to clean up style or other aspects once he's up and about again, but this gets the kernel compiling. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-04T13:34:33.000000Z K 7 svn:log V 131 Place a '#' at the front of the line holding a $FreeBSD$ ID tag. While it actually compiles without this, it's still a good idea. END K 10 svn:author V 3 kib K 8 svn:date V 27 2007-05-04T14:23:29.000000Z K 7 svn:log V 418 Mark the filedescriptor table entries with VOP_OPEN being performed for them as UF_OPENING. Disable closing of that entries. This should fix the crashes caused by devfs_open() (and fifo_open()) dereferencing struct file * by index, while the filedescriptor is closed by parallel thread. Idea by: tegge Reviewed by: tegge (previous version of patch) Tested by: Peter Holm Approved by: re (kensmith) MFC after: 3 weeks END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2007-05-04T14:43:51.000000Z K 7 svn:log V 21 Add osa@FreeBSD.org. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2007-05-04T14:51:39.000000Z K 7 svn:log V 21 Add jdp@ and myself. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2007-05-04T14:51:56.000000Z K 7 svn:log V 24 Correct osa@ full name. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-05-04T15:19:10.000000Z K 7 svn:log V 235 Fixes a missing unlock in the one-2-one hash table, if it was full and a collision occured, then we would leave a inp locked. Also fixes a missing inp unlock if IPSEC was on and it failed during the attach. Bug found by Weongyo Jeong. END K 10 svn:author V 5 rafan K 8 svn:date V 27 2007-05-04T15:25:05.000000Z K 7 svn:log V 95 - Add top '-j' switch Reviewed by: brueffer Approved by: delphij (mentor, implicit), brueffer END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-05-04T15:41:49.000000Z K 7 svn:log V 98 Remove unneded bzero(). SHA1Final() does not require clean buffer. Approved by: glebius (mentor) END K 10 svn:author V 5 rafan K 8 svn:date V 27 2007-05-04T15:42:58.000000Z K 7 svn:log V 173 - s/jail id/jail ID/, acronyms should be in uppercase in general. Also, it is written this way in jail(8). Suggested by: brueffer Approved by: delphij (mentor, implicit) END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-05-04T15:44:22.000000Z K 7 svn:log V 88 Fix small mistake (sizeof(pad2) instead of sizeof(pad1)) Approved by: glebius (mentor) END K 10 svn:author V 5 rafan K 8 svn:date V 27 2007-05-04T15:45:13.000000Z K 7 svn:log V 209 MFC: s/jail id/jail ID/ in top - s/jail id/jail ID/, acronyms should be in uppercase in general. Also, it is written this way in jail(8). Suggested by: brueffer Approved by: delphij (mentor, implicit) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2007-05-04T16:01:07.000000Z K 7 svn:log V 61 - Fix typo Approved by: keramida (mentor) MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-05-04T16:05:58.000000Z K 7 svn:log V 73 Make coherency counter 12bit as it should Approved by: glebius (mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-05-04T16:12:54.000000Z K 7 svn:log V 50 Compact code a bit Approved by: glebius (mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2007-05-04T16:20:47.000000Z K 7 svn:log V 102 Avoid extra rc4_init() when ng_mppc_updatekey() going to do it anyway. Approved by: glebius (mentor) END K 10 svn:author V 2 le K 8 svn:date V 27 2007-05-04T17:17:24.000000Z K 7 svn:log V 138 MFC 1.28: Check if the new user already exists right after entering the username instead of watching the final call to pw(8) fail. END K 10 svn:author V 2 le K 8 svn:date V 27 2007-05-04T17:22:26.000000Z K 7 svn:log V 97 MFC 1.8: Do the right thing with symlinks in the skeleton directory. PR: bin/63659 END K 10 svn:author V 2 le K 8 svn:date V 27 2007-05-04T17:33:04.000000Z K 7 svn:log V 41 MFC all changes regarding new option -M. END K 10 svn:author V 2 le K 8 svn:date V 27 2007-05-04T17:36:37.000000Z K 7 svn:log V 79 MFC 1.61: Accept passwords which contain whitespace. PR: bin/53434 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-04T17:45:52.000000Z K 7 svn:log V 138 Tweak comment at end of tcp_input() when calling into tcp_do_segment(): the pcbinfo lock will be released as well, not just the pcb lock. END K 10 svn:author V 3 phk K 8 svn:date V 27 2007-05-04T19:15:28.000000Z K 7 svn:log V 587 Since if_gem is being touted as one of our more architecturally correct network drivers with respect to busmaster DMA, go over it with at duster to make other aspects of it a role model: Eliminate the pci specific softc, it serves no rational purpose. Use convenience resource allocation/deallocation functions to save code and errorhandling. Switch from bus_space_{read|write}_%u() to bus_{read|write}_%u() functions and forget about tags and handles, the resource will know about those, should they be needed. This also eliminates a number of inconsistently named local variables. END K 10 svn:author V 3 njl K 8 svn:date V 27 2007-05-04T22:04:41.000000Z K 7 svn:log V 54 MFC: enable i810 (including i915, i945, etc) on amd64 END K 10 svn:author V 7 davidch K 8 svn:date V 27 2007-05-04T23:14:19.000000Z K 7 svn:log V 827 MFC after: 2 weeks Updated copyright date to 2007. Tested with BCM5706 A3. Added ID for BCM5708 B2. Removed unused driver version string. Modified BCE_PRINTF macro to automatically fill-in the sc pointer. Fixed a kernel panic when the driver was loaded as a module from the command-line because the MII bus pointer was null (i.e. the MII bus hadn't been enumerated yet). Added fix proposed by Vladimir Ivanov to prevent driver state corruption when releasing the lock during the ISR in bce_rx_intr() to send packets up the stack. Added new TX chain and register read sysctl interfaces for debugging. Cleaned up formatting for various other debug routines. Added a new statistic maintained by firmware which tracks the number of received packets dropped because no receive buffers are available. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-04T23:43:18.000000Z K 7 svn:log V 305 Add global mutex tcp_debug_mtx, which will protect global TCP debugging state tcp_debug, tcp_debx. Acquire and drop as required in tcp_trace(). Move to ANSI C function header, correct prototype types so that short TCP state is no longer promoted to int unnecessarily. Add comments. MFC after: 3 weeks END K 10 svn:author V 3 suz K 8 svn:date V 27 2007-05-05T04:24:01.000000Z K 7 svn:log V 188 some minor modification to the previous commit to sys/netinet6/nd6.c and nd6_nbr.c. - added some clarification comments - removed an unnecesary code Obtained from: KAME MFC after: 1 week END K 10 svn:author V 8 takawata K 8 svn:date V 27 2007-05-05T08:10:37.000000Z K 7 svn:log V 98 Document devices that can drivea . Obtained from: [FreeBSD-users-jp 90628](uftdi.c rev 1.25 also) END K 10 svn:author V 3 phk K 8 svn:date V 27 2007-05-05T08:23:05.000000Z K 7 svn:log V 58 Add Prologix GPIB-USB Controller (Highly recommended btw) END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2007-05-05T08:44:59.000000Z K 7 svn:log V 55 Fix a TLS memory leak. PR: threads/112297 MFC: 1 week END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-05-05T09:17:36.000000Z K 7 svn:log V 887 Miscellaneous changes and fix: - Remove explicit call to pmap_change_attr(), since we now have proper and functional definition of BUS_DMA_NOCACHE. - Enable PCI(e) bus snooping for non i386/amd64 as an alternative for uncacheable DMA. - Codecs changes: * Analag Device -> Analog Devices, AD1988. * New codec: VIA VT1708 and VT1709, Realtek ALC262, ALC861-VD and ALC885. * Various fixups for Conexant Waikiki, fix recording (read: microphone) on various Analog Devices codecs due to vendor BIOS mess, various quirks for several ASUS laptops/boards. - Fix connection list handling, closely following the specification to handle range of nids. - Basic Jack sense polling infrastructure for possible hardwares with broken unsolicited response interrupt. Ideas/Submitted/Tested by: Andriy Gapon , #freebsd-azalia, many. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-05-05T09:18:05.000000Z K 7 svn:log V 692 Fix (or rather workaround) Intel 440MX Errata #36 - http://www.intel.com/design/chipsets/specupdt/245051.htm AC97 Soft Audio and Soft Modem Master Abort Errata Issue: Use of either soft audio or soft modem on an IntelĀ® 82443MX PCISet based platform running a 100 MHz Processor System Bus and an AC97 codec may result in failures. The system continues to function normally while the AC97 hardware may not resume and may require a cold-boot to recover. As a result of the failure, the Master Abort Status bit will be set in the audio or modem function PCI header space. Workaround: Force uncacheable DMA on both BDL and pcm buffers. Tested by: Emil Holmstr|m END K 10 svn:author V 4 joel K 8 svn:date V 27 2007-05-05T10:33:28.000000Z K 7 svn:log V 43 Document more quirks and supported codecs. END K 10 svn:author V 4 joel K 8 svn:date V 27 2007-05-05T10:36:57.000000Z K 7 svn:log V 19 Forgot to bump .Dd END K 10 svn:author V 5 sephe K 8 svn:date V 27 2007-05-05T11:07:52.000000Z K 7 svn:log V 194 - Nuke unnecessary header. - Make wlan_amrr depend on wlan, so that it can find various symbols in wlan module if wlan is not compiled into kernel. Approved by: sam (mentor) Tested by: kevlo END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-05T16:33:44.000000Z K 7 svn:log V 161 - Implement helper g_handleattr_str() function for string attributes handling. - Extend g_handleattr() to treat attribute as string when len=0. OK'ed by: phk END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-05T16:35:22.000000Z K 7 svn:log V 86 Implement g_delete_data() similar to g_read_data() and g_write_data(). OK'ed by: phk END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-05T17:02:19.000000Z K 7 svn:log V 1430 Implement three new ioctls that can be used with GEOM provider: DIOCGFLUSH - Flush write cache (sends BIO_FLUSH). DIOCGDELETE - Delete data (mark as unused) (sends BIO_DELETE). DIOCGIDENT - Get provider's uniqe and fixed identifier (asks for GEOM::ident attribute). First two are self-explanatory, but the last one might not be. Here are properties of provider's ident: - ident value is preserved between reboots, - provider can be detached/attached and ident is preserved, - provider's name can change - ident can't, - ident value should not be based on on-disk metadata; in other words copying whole data from one disk to another should not yield the same ident for the other disk, - there could be more than one provider with the same ident, but only if they point at exactly the same physical storage, this is the case for multipathing for example, - GEOM classes that consumes single providers and provide single providers, like geli, gbde, should just attach class name to the ident of the underlying provider, - ident is an ASCII string (is printable), - ident is optional and applications can't relay on its presence. The main purpose for this is that application and remember provider's ident and once it tries to open provider by its name again, it may compare idents to be sure this is the right provider. If it is not (idents don't match), then it can open provider by its ident. OK'ed by: phk END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-05T17:12:15.000000Z K 7 svn:log V 159 - Extend disk structure to allow to store disk's serial number, which can be retrieved via GEOM::ident attribute. - Bump disk(9) ABI version. OK'ed by: phk END K 10 svn:author V 3 jmg K 8 svn:date V 27 2007-05-05T17:36:42.000000Z K 7 svn:log V 199 fixup talk of kern.maxswzone... It's been 32MB for almost 5 years now... and only supports just over 7GB of swap... Sound a bit more professional.. Inspired by: Marc G. Fournier MFC After: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-05T17:47:20.000000Z K 7 svn:log V 116 Because there are many strange hardware out there, allow to use only [a-zA-Z0-9-_@#%.] characters in d_ident field. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-05T17:52:22.000000Z K 7 svn:log V 156 Handle GEOM::ident attribute by attaching 'sX' string at the end of ident received from the underlying provider, where X is pp->index value. OK'ed by: phk END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-05T18:09:17.000000Z K 7 svn:log V 61 Allow to use ':' in d_ident, which is quite handy character. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-05-05T18:58:22.000000Z K 7 svn:log V 935 MFC Revision 1.530 Replace diagnostic printf()s by assertions. Use consistent style for similar assertions. MFC Revision 1.540 Introduce pmap_try_insert_pv_entry(). Use pmap_try_insert_pv_entry() in pmap_copy() instead of pmap_insert_entry(). Eliminate the explicit low-memory checks in pmap_copy(). MFC Revision 1.544 Retire pmap_track_modified(). MFC Revision 1.555 Introduce the function pmap_enter_object(). MFC Revision 1.558 (in part) Change pmap_enter_quick_locked() to fail rather than wait if it is unable to allocate a page table page. Similarly, change pmap_enter_quick_locked() to call pmap_try_insert_pv_entry() rather than pmap_insert_entry(). Add an assertion that the object containing m_start is locked in pmap_enter_object(). Remove a similar assertion from pmap_enter_quick_locked() because that function no longer accesses the containing object. Remove a stale comment. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-05-05T19:50:28.000000Z K 7 svn:log V 923 Define every architecture as either VM_PHYSSEG_DENSE or VM_PHYSSEG_SPARSE depending on whether the physical address space is densely or sparsely populated with memory. The effect of this definition is to determine which of two implementations of vm_page_array and PHYS_TO_VM_PAGE() is used. The legacy implementation is obtained by defining VM_PHYSSEG_DENSE, and a new implementation that trades off time for space is obtained by defining VM_PHYSSEG_SPARSE. For now, all architectures except for ia64 and sparc64 define VM_PHYSSEG_DENSE. Defining VM_PHYSSEG_SPARSE on ia64 allows the entirety of my Itanium 2's memory to be used. Previously, only the first 1 GB could be used. Defining VM_PHYSSEG_SPARSE on sparc64 allows USIIIi-based systems to boot without crashing. This change is a combination of Nathan Whitehorn's patch and my own work in perforce. Discussed with: kmacy, marius, Nathan Whitehorn PR: 112194 END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-05-05T20:17:23.000000Z K 7 svn:log V 225 Make this an MP safe driver but also still be multi-release. Seems to work on RELENG_4 through -current and also on sparc64 now. There may still be some issues with the auto attach/detach code to sort out. MFC after: 3 days END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2007-05-05T20:18:24.000000Z K 7 svn:log V 132 Make this driver MP safe and still be a multi-release driver. Obtained from: 99% of the work done by Scott Long. MFC after: 3 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-05-05T21:13:16.000000Z K 7 svn:log V 508 MFC Acquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful. For example, during a buildworld more than half of the calls do not generate an IPI because the only TLB entry invalidated is on the calling processor. This revision pushes down the acquisition and release of smp_ipi_mtx into smp_tlb_shootdown() and smp_targeted_tlb_shootdown() and instead uses sched_pin() and sched_unpin() in pmap_invalidate_*() so that thread migration doesn't lead to a missed TLB invalidation. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-05-06T00:01:17.000000Z K 7 svn:log V 227 Two bugs: - Locks were not being unlocked when an invalid size chunk is sent in. - When a notification comes in, we cannot use it to look up the fragment interleave stream information since its not on a stream. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T00:25:21.000000Z K 7 svn:log V 45 Print provider's ident when in verbose mode. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T00:31:38.000000Z K 7 svn:log V 19 Fix mdoc warnings. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-05-06T00:34:43.000000Z K 7 svn:log V 759 MFC Revision 1.538: Remove stale KSE code. MFC Revision 1.551: In general, bits in the page directory entry (PDE) and the page table entry (PTE) have the same meaning. The exception to this rule is the eighth bit (0x080). It is the PS bit in a PDE and the PAT bit in a PTE. This change avoids the possibility that pmap_enter() confuses a PAT bit with a PS bit, avoiding a panic(). Eliminate a diagnostic printf() from the i386 pmap_enter() that serves no current purpose. MFC Revision 1.559: Eliminate a comment that became stale after revision 1.540. MFC Revision 1.575: Finish the PG_NX support at the pmap level. MFC Revision 1.582: Eliminate the misuse of PG_FRAME to truncate a virtual address to a virtual page boundary. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T01:17:46.000000Z K 7 svn:log V 114 Implement and document some utility functions that can be used to communicate with GEOM providers. OK'ed by: phk END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T01:20:06.000000Z K 7 svn:log V 67 File d_ident field with disk's serial number. No answer from: sos END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T01:23:03.000000Z K 7 svn:log V 47 Clean up a little. Obtained from: OpenSolaris END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T01:27:54.000000Z K 7 svn:log V 72 MFp4: We don't need to cover vnode_pager_setsize() with the z_map_lock. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T01:39:39.000000Z K 7 svn:log V 328 Use provider's ident to handle situations when disks are moved around and show up with different names: first try to open provider using remembered name and compare its ident, if equal, this is our provider, if not equal or there is no provider with such name, find provider with remembered ident and don't care about the name. END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-05-06T05:23:19.000000Z K 7 svn:log V 248 MFC Revision 1.531 of pmap.c: Avoid unnecessary differences between the amd64 and i386 format strings. MFC Revision 1.577 of pmap.c: Use a different bitmask for superpages' base address so that it doesn't conflict with the PG_PDE_PAT bit. END K 10 svn:author V 3 des K 8 svn:date V 27 2007-05-06T10:00:27.000000Z K 7 svn:log V 66 Remove parameter names from prototypes to avoid namespace issues. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2007-05-06T10:07:21.000000Z K 7 svn:log V 111 Add support for Ralink Technology RT2501USB/RT2601USB devices. Reviewed by: sam, sephe Obtained from: OpenBSD END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2007-05-06T12:00:38.000000Z K 7 svn:log V 59 Don't acquire Giant unconditionally. Reviewed by: rwatson END K 10 svn:author V 7 wkoszek K 8 svn:date V 27 2007-05-06T12:48:39.000000Z K 7 svn:log V 85 Add missing 'bp', since it should be passed as g_print_bio() argument. Oked by: pjd END K 10 svn:author V 5 andre K 8 svn:date V 27 2007-05-06T13:38:25.000000Z K 7 svn:log V 18 Fix two comments. END K 10 svn:author V 3 des K 8 svn:date V 27 2007-05-06T14:25:52.000000Z K 7 svn:log V 19 Unbreak the build. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-06T14:28:49.000000Z K 7 svn:log V 307 Add a regression test to detect if waiting on the I/O serialization lock on socket buffers is interruptible or not, which detacts the regression I introduced recently in 7-CURRENT (spotted by alfred). This test passes in older -CURRENT, and with the as-yet uncommitted sx_xlock_sig and sblock fix patches. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T14:54:41.000000Z K 7 svn:log V 20 Correct some typos. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T14:56:03.000000Z K 7 svn:log V 126 When deleting key, flush write cache after each overwrite, so we don't overwrite data N times in cache and only once on disk. END K 10 svn:author V 5 andre K 8 svn:date V 27 2007-05-06T15:16:05.000000Z K 7 svn:log V 266 Remove the defunct remains of the TCPS_TIME_WAIT cases from tcp_do_segment and change it to a void function. We use a compressed structure for TCPS_TIME_WAIT to save memory. Any late late segments arriving for such a connection is handled directly in the TW code. END K 10 svn:author V 5 andre K 8 svn:date V 27 2007-05-06T15:23:51.000000Z K 7 svn:log V 138 Reorder the TCP header prediction test to check for the most volatile values first to spend less time on a fallback to normal processing. END K 10 svn:author V 5 andre K 8 svn:date V 27 2007-05-06T15:41:06.000000Z K 7 svn:log V 208 o Remove redundant tcp reassembly check in header prediction code o Rearrange code to make intent in TCPS_SYN_SENT case more clear o Assorted style cleanup o Comment clarification for tcp_dropwithreset() END K 10 svn:author V 5 andre K 8 svn:date V 27 2007-05-06T15:56:31.000000Z K 7 svn:log V 149 Use existing TF_SACK_PERMIT flag in struct tcpcb t_flags field instead of a decdicated sack_enable int for this bool. Change all users accordingly. END K 10 svn:author V 5 andre K 8 svn:date V 27 2007-05-06T16:04:36.000000Z K 7 svn:log V 51 Remove unused requested_s_scale from struct tcpcb. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-05-06T16:46:23.000000Z K 7 svn:log V 270 PCMMKMINOR() bit twiddling, so we can have: - 2048 unique sound cards (dsp0 -> dsp2047) (used to be 15) - 32 unique device types (dspW, audio, mixer, sndstat, .. 32th) (used to be 15) - 256 unique cloneable devices (dsp%d.0 -> dsp%d.255) (unchanged) END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-05-06T17:02:50.000000Z K 7 svn:log V 662 Bring in the reminaing bits to make interrupt filtering work: o push much of the i386 and amd64 MD interrupt handling code (intr_machdep.c::intr_execute_handlers()) into MI code (kern_intr.c::ithread_loop()) o move filter handling to kern_intr.c::intr_filter_loop() o factor out the code necessary to mask and ack an interrupt event (intr_machdep.c::intr_eoi_src() and intr_machdep.c::intr_disab_eoi_src()), and make them part of 'struct intr_event', passing them as arguments to kern_intr.c::intr_event_create(). o spawn a private ithread per handler (struct intr_handler::ih_thread) with filter and ithread functions. Approved by: re (implicit?) END K 10 svn:author V 4 piso K 8 svn:date V 27 2007-05-06T17:04:34.000000Z K 7 svn:log V 371 Make interrupt filtering support compilable. The entire code is wrapperd in #ifdef ... #endif so it won't harm the actual implementation, but developers are encouraged to test it. For arm, ia64, ppc, sparc64 and sun4v some work is still needed, thus arch maintainers are encouraged to bring their arch on par with respect to i386 and amd64. Approved by: re (implicit?) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2007-05-06T18:20:16.000000Z K 7 svn:log V 113 Document the additional fields, si_drv1 and si_drv2 that are available for the user to use... MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2007-05-06T18:36:57.000000Z K 7 svn:log V 104 MFC a change to pmap_copy() that was overlooked because revision 1.583 was MFCed before revision 1.540. END K 10 svn:author V 5 andre K 8 svn:date V 27 2007-05-06T18:48:30.000000Z K 7 svn:log V 96 Add Apple HFS+ (0xAF) MBR partition type identificator. Submitted by: rpaulo (SoC2007 student) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2007-05-06T19:05:37.000000Z K 7 svn:log V 182 - Add missing lock destruction and remove duplicate initializations. With this change it is possible to unload zfs.ko module from WITNESS-enabled kernel. - Remove bogus comment. END K 10 svn:author V 3 des K 8 svn:date V 27 2007-05-06T21:06:08.000000Z K 7 svn:log V 51 Unbreak the build on 64-bit architectures as well. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-07T00:18:56.000000Z K 7 svn:log V 146 Change from using if_delmulti() to if_delmulti_ifma() as it simplifies the code and is safe to use if the ifp has disappeared. Suggested by: bms END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-07T00:28:55.000000Z K 7 svn:log V 70 Avoid touching various unsafe parts if the interface is disappearing. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-07T00:35:15.000000Z K 7 svn:log V 174 Call if_setlladdr() on the aggregation port from a taskqueue so the softc lock is not held. The short delay between aggregating the port and setting the MAC address is fine. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-07T00:52:26.000000Z K 7 svn:log V 82 The purgemulti call is not needed since all the ports have already been detached. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2007-05-07T02:06:03.000000Z K 7 svn:log V 11 Add rum(4) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2007-05-07T02:46:48.000000Z K 7 svn:log V 53 buf_addr should be bus_addr_t rather than u_int32_t. END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-05-07T05:42:45.000000Z K 7 svn:log V 54 MFC: Initialize configuration ROM before a bus reset. END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-05-07T06:01:25.000000Z K 7 svn:log V 50 MFC: Configuration ROM length should be unsigned. END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-05-07T06:20:49.000000Z K 7 svn:log V 147 MFC: - Detect cycle lost. - Less verbose debug messages. - Remove xfer->retry_req. - Remove retry_count. - Replace xfer->act.hand with xfer->hand. END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-05-07T06:35:23.000000Z K 7 svn:log V 36 MFC: Free tlabel in fw_xfer_done(). END K 10 svn:author V 8 simokawa K 8 svn:date V 27 2007-05-07T08:00:21.000000Z K 7 svn:log V 356 MFC: - Simplify tlabel handling. - Remove unused fw_asybusy(). - Add a sysctl knob to disable cycle master mode and add some comments. - Fix broken userland API for async packets. - Fix typo in recv spd. - Update state in fw_xferq_dorain() after removed from the send queue. - Remove unnecessary 'goto err;". - Improve asynchronous packet receive process. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-07T09:45:31.000000Z K 7 svn:log V 189 Finish VLAN_MTU support in nve(4). The interface appears to be able to handle long frames in its default mode, so setting the respective bit in if_capenable is enough. Tested by: yongari END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-07T09:52:39.000000Z K 7 svn:log V 57 Tell that nve(4) has got support for VLAN_MTU. Touch Dd. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2007-05-07T09:53:02.000000Z K 7 svn:log V 176 - Correctly check if lp_ioctl is null - Remove lagg_ether_purgemulti as its no longer needed - Mark the interface as up if any ports are active rather than just the primary END K 10 svn:author V 2 le K 8 svn:date V 27 2007-05-07T09:55:25.000000Z K 7 svn:log V 55 Fix kldloading if_em by compiling missing source file. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2007-05-07T11:01:36.000000Z K 7 svn:log V 149 Fix some warnings by making things const, adding missing headers, removing some unused variables and making a variable unsigned. MFC after: 3 weeks END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2007-05-07T11:18:30.000000Z K 7 svn:log V 127 ANSIfy function definitions. Move some extern declarations to a header file. Remove an unneeded extern declaration for optarg. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2007-05-07T11:28:01.000000Z K 7 svn:log V 57 Make logmsg take const char * arguments. Set WARNS to 6. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2007-05-07T12:10:06.000000Z K 7 svn:log V 146 Use [u]intmax_t to printf unknown integer types. Make timeprt always allocate memory, to make things a little simpler. Remove an unused variable. END K 10 svn:author V 8 dwmalone K 8 svn:date V 27 2007-05-07T12:23:23.000000Z K 7 svn:log V 128 Cast to intmax_t to print tv_sec in struct timeval. Avoid shadowing a global variable with a function argument. Set WARNS to 6. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-07T13:04:25.000000Z K 7 svn:log V 187 When setting up timewait state for a TCP connection, don't hold the socket lock over a crhold() of so_cred: so_cred is constant after socket creation, so doesn't require locking to read. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-07T13:47:39.000000Z K 7 svn:log V 20 Minor style tweaks. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-07T13:51:24.000000Z K 7 svn:log V 251 Since udp_peeraddr() and udp_sockaddr() directly wrap in_setpeeraddr() and in_setsockaddr(), containing only stale comments on why they exist, remove them and initialize the protosw for UDP to directly reference in_setpeeraddr() and in_setsockaddr(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-07T14:05:23.000000Z K 7 svn:log V 146 Rather than selectively zeroing fields in the tcp_debug structure throughout tcp_trace(), zero the entire structure up front. Minor style fixes. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2007-05-07T18:29:37.000000Z K 7 svn:log V 77 Fix a typo in a bootverbose printf. MFC after: 3 days Submitted by: yongari END K 10 svn:author V 3 rrs K 8 svn:date V 27 2007-05-08T00:21:05.000000Z K 7 svn:log V 1210 - More macros for OS compatabilty - PR-SCTP would ignore FWD-TSN's above a rwnd's worth of TSN's (1 byte msgs).. this left the peer hopelessly out of sync.. or an attacker. So now we abort the assoc. - New IFN hash, also rename hashes to match addr/ifn now that the vrf has multiple. - Do not enable SCTP_PCB_FLAGS_RECVDATAIOEVNT per default as defined in the Socket API ID. - Export MTU information via sysctl. - Vrf's need table id's. This is default for BSD, but may be other things later when BSD fully supports VRFs. - Additional stream reset bug (caught by cisco dev-test). - Additional validations for the address in sending a message (socket api). -------- and ----- - Fix association notifications not to give the active open side false notifications. - Fix so sendfile and SENDALL will work properly (missing flag to say socket sender is done). - Fix Bug that prevented COOKIES from being retransmitted. - Break out connectx into helper sub-models so that iox routines can reuse the helpers. - When an address is added during system init (non-dynamic mode) make sure that the "defer use" flag is not set. ** its compiling on XR now :-D ** Reviewed by: gnn END K 10 svn:author V 4 grog K 8 svn:date V 27 2007-05-08T02:31:56.000000Z K 7 svn:log V 110 RFC: Add -A flag to adjust existing time stamps. Print name by which program was started in usage() message. END K 10 svn:author V 3 das K 8 svn:date V 27 2007-05-08T02:59:37.000000Z K 7 svn:log V 49 Fix a rounding error. Reported by: Bruno Haible END K 10 svn:author V 3 das K 8 svn:date V 27 2007-05-08T03:08:28.000000Z K 7 svn:log V 120 We should never zero-pad INF or NaN (yielding silly strings like "00inf") even if the programmer asks for zero padding. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2007-05-08T03:25:05.000000Z K 7 svn:log V 102 Do not set address early. It fix problems when SET_ADDR_FAILED happens on the hubs. Reviewed by: imp END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T08:10:37.000000Z K 7 svn:log V 109 Merge uipc_usrreq.c:1.169 from HEAD to RELENG_6: Remove unused (and ifdef'd) unp_abort() and unp_drain(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T08:18:55.000000Z K 7 svn:log V 144 Merge uipc_usrreq.c:1.173 from HEAD to RELENG_6: Re-wrap and other minor formatting and punctuation fixes for UNIX domain socket comments. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T08:32:29.000000Z K 7 svn:log V 481 Merge uipc_usrreq.c:1.171 from HEAD to RELENG_6: Reduce periods of simultaneous acquisition of various socket buffer locks and the unplock during uipc_rcvd() and uipc_send() by caching certain values from one structure while its locks are held, and applying them to a second structure while its locks are held. If done carefully, this should be correct, and will reduce the amount of work done with the global unp lock held. Tested by: kris (earlier version) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T08:37:27.000000Z K 7 svn:log V 187 Merge uipc_usrreq.c:1.174 from HEAD to RELENG_6: In uipc_send() and uipc_rcvd(), store unp->unp_conn pointer in unp2 while working with the second unpcb to make the code more clear. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T08:41:13.000000Z K 7 svn:log V 148 Merge uipc_usrreq.c:1.175 from HEAD to RELENG_6: Move various UNIX socket global variables and sysctls from the middle of the file to the top. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T10:01:51.000000Z K 7 svn:log V 126 Merge uipc_usrreq.c:1.177 from HEAD to RELENG_6: Merge unp_bind() into uipc_bind(), as it is called only from uipc_bind(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T10:16:23.000000Z K 7 svn:log V 599 Merge uipc_usrreq.c:1.178,1.192 from HEAD to RELENG_6: Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be used to mark UNIX domain sockets as being in the process of binding or connecting. Use these to prevent simultaneous bind or connect operations by multiple threads or processes on the same socket at the same time, which closes race conditions present in the UNIX domain socket implementation since inception. Set UNP_CONNECTING when committing to moving ahead in unp_connect(). This logic was lost when merging the remainder of these changes in 1.178. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T10:16:57.000000Z K 7 svn:log V 436 Merge unpcb.h:1.20 from HEAD to RELENG_6: Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be used to mark UNIX domain sockets as being in the process of binding or connecting. Use these to prevent simultaneous bind or connect operations by multiple threads or processes on the same socket at the same time, which closes race conditions present in the UNIX domain socket implementation since inception. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T10:20:22.000000Z K 7 svn:log V 249 Merge uipc_usrreq.c:1.179,1.180 from HEAD to RELENG_6: Add additional comments to the top of the UNIX domain socket implementation providing some high level pointers regarding the implementation. Remove duplicate 'or'. Submitted by: ru END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-08T10:22:45.000000Z K 7 svn:log V 83 Document the current practice of locking and disabling accounts through passwd(5). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T10:22:46.000000Z K 7 svn:log V 208 Merge uipc_usrreq.c:1.184 from HEAD to RELENG_6: Remove now unneeded ENOTCONN clause from SOCK_DGRAM side of uipc_send(): we have to check it regardless of the target address, so don't check it twice. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-08T10:45:28.000000Z K 7 svn:log V 27 Mark up text consistently. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-08T10:48:01.000000Z K 7 svn:log V 69 Add nsswitch.conf(5) xref to SEE ALSO as it's mentioned in the text. END K 10 svn:author V 3 yar K 8 svn:date V 27 2007-05-08T11:00:07.000000Z K 7 svn:log V 133 Add .Li mark-up to Hesiod, NIS, and nsswitch keywords so that they stand out when the manpage is read via an advanced output device. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T11:07:24.000000Z K 7 svn:log V 452 Merge uipc_proto.c:1.26 from HEAD to RELENG_6: Remove UNIX domain socket raw socket support. This feature is documented as being undocumented in Stevens, and was broken in 1997 during network stack infrastructure work. It is the one remaining (and incorrect) direct protocol reference to raw_usrreq.pru_attach; this is incorrect because the raw socket code assumes that raw_uattach is called only after the protocol has allocated a PCB. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T11:45:12.000000Z K 7 svn:log V 362 Merge uipc_usrreq.c:1.186, uipc_proto.c:1.27, domain.h:1.22, files:1.1137 from HEAD to RELENG_6: Move definition of UNIX domain socket protosw and domain entries from uipc_proto.c to uipc_usrreq.c, making localdomain static. Remove uipc_proto.c as it's no longer used. With this change, UNIX domain sockets are entirely encapsulated in uipc_usrreq.c. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T11:47:19.000000Z K 7 svn:log V 78 Merge uipc_usrreq.c:1.187 from HEAD to RELENG_6: Minor white space tweaks. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2007-05-08T11:50:57.000000Z K 7 svn:log V 324 Merge uipc_usrreq.c:1.196 from HEAD to RELENG_6: Add an additional MAC check to the UNIX domain socket connect path: check that the subject has read/write access to the vnode using the vnode MAC check. Submitted by: Spencer Minear Obtained from: TrustedBSD Project END K 10 svn:author V 7 yongari K 8 svn:date V 27 2007-05-08T12:34:14.000000Z K 7 svn:log V 88 Add missing socket buffer unlock before returning to userland. Reviewed by: rwatson END