aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221291-74/+42661
| | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Add proper mid-level Makefile.David E. O'Brien2012-07-061-0/+5
| | | | | | | Submitted by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=238176
* I accidently svn added these in the wrong place.David E. O'Brien2012-07-063-2/+2
| | | | Notes: svn path=/projects/bmake/; revision=238174
* Merge in the Bmake 20120705 release.David E. O'Brien2012-07-065-18/+43
|\ | | | | | | Notes: svn path=/projects/bmake/; revision=238156
| * Import the 20120704 release of the "Portable" BSD make tool (from NetBSD).vendor/NetBSD/bmake/20120704David E. O'Brien2012-07-065-18/+43
| | | | | | | | | | | | | | | | Submitted by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=238152 svn path=/vendor/NetBSD/bmake/20120704/; revision=238153; tag=vendor/NetBSD/bmake/20120704
* | MFC: r238143: move "funny targets" from pre-build "make check" to theDavid E. O'Brien2012-07-059-18/+42
|\ \ | | | | | | | | | | | | | | | | | | regular regression tests. Notes: svn path=/projects/bmake/; revision=238144
| * | Remove the "funny targets" make check. We no longer need embedded :: targetsDavid E. O'Brien2012-07-059-18/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to build FreeBSD (they are used in Perl man pages). We never needed embedded "!" in targets that I can find. We got this from OpenBSD and I cannot find any other make that supports such things -- contrary to their commit message claim: "This behaviour is also consistent with other versions of make.". Notes: svn path=/head/; revision=238143
| * | Now that our assembler supports the xsave family of instructions, use themJohn Baldwin2012-07-052-19/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | natively rather than hand-assembled versions. For xgetbv/xsetbv, add a wrapper API to deal with xcr* registers: rxcr() and load_xcr(). Reviewed by: kib MFC after: 1 month Notes: svn path=/head/; revision=238142
| * | Document the behavior (from 4.4-lite) that tokens returned by telldir() areBrooks Davis2012-07-051-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | single use. Sponsored by: DARPA, AFRL MFC after: 3 days Notes: svn path=/head/; revision=238141
| * | Fix LINT.Marcel Moolenaar2012-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=238130
| * | Calculate the new PTE value in pmap_enter() before acquiring any locks.Alan Cox2012-07-051-32/+27
| | | | | | | | | | | | | | | | | | | | | Move an assertion to the beginning of pmap_enter(). Notes: svn path=/head/; revision=238126
| * | Restore r211786 by rpaulo:Ed Maste2012-07-051-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port dtruss to FreeBSD. Sponsored by: The FreeBSD Foundation It appears the change was reverted by r235380. Notes: svn path=/head/; revision=238125
| * | Correct an error in r237513. The call to reserve_pv_entries() must comeAlan Cox2012-07-051-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before pmap_demote_pde() updates the PDE. Otherwise, pmap_pv_demote_pde() can crash. Crash reported by: kib Patch tested by: kib Notes: svn path=/head/; revision=238124
| * | Add support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv'John Baldwin2012-07-045-11/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instructions. I reimplemented this from scratch based on the Intel manuals and the existing support for handling the fxsave and fxrstor instructions. This will let us use these instructions natively with GCC rather than hardcoding the opcodes in hex. Reviewed by: kib MFC after: 1 month Notes: svn path=/head/; revision=238123
| * | Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT.Michael Tuexen2012-07-041-4/+12
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238122
| * | Use CSUM_SCTP_IPV6 for IPv6.Michael Tuexen2012-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238121
| * | Make use of GEOM Gate direct reads feature. This allows HAST to servePawel Jakub Dawidek2012-07-041-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reads with native speed of the underlying provider. There are three situations when direct reads are not used: 1. Data is being synchronized and synchronization source is the secondary node, which means secondary node has more recent data and we should read from it. 2. Local read failed and we have to try to read from the secondary node. 3. Local component is unavailable and all I/O requests are served from the secondary node. Sponsored by: Panzura, http://www.panzura.com MFC after: 1 month Notes: svn path=/head/; revision=238120
| * | Extend GEOM Gate class to handle read I/O requests directly within the kernel.Pawel Jakub Dawidek2012-07-042-35/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow HAST to read directly from the local component without even communicating userland daemon. Sponsored by: Panzura, http://www.panzura.com MFC after: 1 month Notes: svn path=/head/; revision=238119
| * | Prefer sysctl to open/read/close for obtaining random data.Pawel Jakub Dawidek2012-07-041-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method is more sandbox-friendly and also should be faster as only one syscall is needed instead of three. In case of an error fall back to the old method. Reviewed by: simon, gleb MFC after: 2 weeks Notes: svn path=/head/; revision=238118
| * | Improve description of various key used by GELI.Pawel Jakub Dawidek2012-07-041-74/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: docs/169089 Submitted by: John W. O'Brien <john@saltant.com> MFC after: 3 days Notes: svn path=/head/; revision=238117
| * | Use correct part of the Master-Key for generating encryption keys.Pawel Jakub Dawidek2012-07-044-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change the IV-Key was used to generate encryption keys, which was incorrect, but safe - for the XTS mode this key was unused anyway and for CBC mode it was used differently to generate IV vectors, so there is no risk that IV vector collides with encryption key somehow. Bump version number and keep compatibility for older versions. MFC after: 2 weeks Notes: svn path=/head/; revision=238116
| * | Correct comment.Pawel Jakub Dawidek2012-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238115
| * | Correct a comment and correct style of a flag check.Pawel Jakub Dawidek2012-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238114
| * | vdev_io_done stage is not used for ioctls.Pawel Jakub Dawidek2012-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=238113
| * | Fix an obvious typo.Pawel Jakub Dawidek2012-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238112
| * | The register_printf_render_std() function expects regular string.Pawel Jakub Dawidek2012-07-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change argument type from 'const unsigned char *' to 'const char *'. MFC after: 2 weeks Notes: svn path=/head/; revision=238111
| * | Recognize 'none' or '0' as no flags.Pawel Jakub Dawidek2012-07-041-4/+4
| | | | | | | | | | | | Notes: svn path=/head/; revision=238110
| * | Decode the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', 'xsetbv', andJohn Baldwin2012-07-041-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | 'rdtscp' instructions. MFC after: 1 month Notes: svn path=/head/; revision=238109
| * | - Change --nthreads parameter to --parallel for GNU compatibilityGabor Kovesdan2012-07-045-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change default sort method to mergesort, which has a better worst case performance than qsort Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com> Notes: svn path=/head/; revision=238108
| * | Name jails automatically.Dag-Erling Smørgrav2012-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=238102
| * | Remove end of line whitespace.Joel Dahl2012-07-041-5/+5
| | | | | | | | | | | | Notes: svn path=/head/; revision=238095
| * | Add the possibility to specify a threshold for the number of negative cacheStefan Eßer2012-07-046-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | results required to have the cache return lookup failure. A new configuration parameter is introduced, which must be set to a value greater than 1 to activate this feature. The default behavior is unchanged. The purpose of this change is to allow probes for the existence of an entry (which are expected to fail), before that entry is added to one of the queried databases, without the cache returning the stale information from the probe query until that cache entry expires. If, for example, a new user account is created after checking that the new account name is available, the negative cache entry would prevent immediate access to the account. For that example, the new configuration option negative-confidence-threshold passwd 2 will require a second negative query result to consider the negative cache entry for a passwd entry valid, but if the user account has been created between the queries, then the positive query result from the second query will be cached and returned. Notes: svn path=/head/; revision=238094
| * | Document RO_RTFREE() macro.Gleb Smirnoff2012-07-041-1/+10
| | | | | | | | | | | | Notes: svn path=/head/; revision=238093
| * | When ip_output()/ip6_output() is supplied a struct route *ro argument,Gleb Smirnoff2012-07-047-53/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it skips FLOWTABLE lookup. However, the non-NULL ro has dual meaning here: it may be supplied to provide route, and it may be supplied to store and return to caller the route that ip_output()/ip6_output() finds. In the latter case skipping FLOWTABLE lookup is pessimisation. The difference between struct route filled by FLOWTABLE and filled by rtalloc() family is that the former doesn't hold a reference on its rtentry. Reference is hold by flow entry, and it is about to be released in future. Thus, route filled by FLOWTABLE shouldn't be passed to RTFREE() macro. - Introduce new flag for struct route/route_in6, that marks route not holding a reference on rtentry. - Introduce new macro RO_RTFREE() that cleans up a struct route depending on its kind. - All callers to ip_output()/ip6_output() that do supply non-NULL but empty route should use RO_RTFREE() to free results of lookup. - ip_output()/ip6_output() now do FLOWTABLE lookup always when ro->ro_rt == NULL. Tested by: tuexen (SCTP part) Notes: svn path=/head/; revision=238092
| * | Iniitialize a variable.Michael Tuexen2012-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238087
| * | Fix style.Mikolaj Golub2012-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238086
| * | Fix KASSERT message.Mikolaj Golub2012-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238085
| * | Don't check for ifp != NULL before KASSERT, as ifp may not be NULL hereMikolaj Golub2012-07-031-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (it is dereferenced below). Discussed with: jhb MFC after: 1 week Notes: svn path=/head/; revision=238084
| * | Fix RTTVAR scale in net.inet.tcp.hostcache.list sysctl.Mikolaj Golub2012-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: andre MFC after: 3 days Notes: svn path=/head/; revision=238083
| * | Update comment to reflect function's actual operationEd Maste2012-07-031-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=238081
| * | Add new USB device ID.Hans Petter Selasky2012-07-032-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Erich Dollansky MFC after: 1 week Notes: svn path=/head/; revision=238079
| * | Add more quirks for USB mass storage adapters.Hans Petter Selasky2012-07-032-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Erich Dollansky MFC after: 1 week Notes: svn path=/head/; revision=238078
| * | Fix panics triggered by older mfiutil binaries run on the new mfi(4) driver.John Baldwin2012-07-031-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new driver changed the size of the mfi_dcmd_frame structure in such a way that a MFI_IOC_PASSTHRU ioctl from an old amd64 binary is treated as an MFI_IOC_PASSTHRU32 ioctl in the new driver. As a result, the user pointer is treated as the buffer length. mfi_user_command() doesn't have a bounds check on the buffer length, so it passes a really big value to malloc() which panics when it tries to exhaust the kmem_map. Fix this two ways: - Only honor MFI_IOC_PASSTHRU32 if the binary has the SV_ILP32 flag set, otherwise treat it as an unknown ioctl. - Add a bounds check on the buffer length passed by the user. For now it fails any user attempts to use a buffer larger than 1MB. While here, fix a few other nits: - Remove an unnecessary check for a NULL return from malloc(M_WAITOK). - Use the ENOTTY errno for invalid ioctl commands instead of ENOENT. MFC after: 3 days Notes: svn path=/head/; revision=238077
| * | Do not include <sys/types.h> in the local headers. The .c files includingDavid E. O'Brien2012-07-036-12/+0
| | | | | | | | | | | | | | | | | | | | | them have already included <sys/param.h> before these headers are included. Notes: svn path=/head/; revision=238072
| * | Fix clang warning, introduced in the recent dtrace import.Dimitry Andric2012-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=238071
| * | - Make ipfw's sched rules case insensitive, for user-friendliness.Isabell Long2012-07-032-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a note to the ipfw(8) man page about the rules no longer being case sensitive. - Fix some typos in the man page. PR: docs/164772 Reviewed by: bz Approved by: gabor (doc mentor, src committer) MFC after: 2 weeks Notes: svn path=/head/; revision=238063
| * | Fix a typoKevin Lo2012-07-031-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=238059
| * | Add myself to commiters-[doc,ports].dot and calendar.freebsdNiclas Zeising2012-07-033-0/+7
| | | | | | | | | | | | | | | | | | | | | Approved by: joel (doc/www mentor) kwm (ports mentor) Notes: svn path=/head/; revision=238058
| * | Link in the new RX EDMA routines.Adrian Chadd2012-07-032-1/+3
| | | | | | | | | | | | Notes: svn path=/head/; revision=238056
| * | Begin abstracting out the RX path in preparation for RX EDMA support.Adrian Chadd2012-07-036-34/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RX EDMA support requires a modified approach to the RX descriptor handling. Specifically: * There's now two RX queues - high and low priority; * The RX queues are implemented as FIFOs; they're now an array of pointers to buffers; * .. and the RX buffer and descriptor are in the same "buffer", rather than being separate. So to that end, this commit abstracts out most of the RX related functions from the bulk of the driver. Notably, the RX DMA/buffer allocation isn't updated, primarily because I haven't yet fleshed out what it should look like. Whilst I'm here, create a set of matching but mostly unimplemented EDMA stubs. Tested: * AR9280, station mode TODO: * Thorough AP and other mode testing for non-EDMA chips; * Figure out how to allocate RX buffers suitable for RX EDMA, including correctly setting the mbuf length to compensate for the RX descriptor and completion status area. Notes: svn path=/head/; revision=238055