aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* remove unused sgsmsg utility (originally imported from opensolaris)Andriy Gapon2015-09-2816-3837/+3
| | | | | | | MFC after: 25 days Notes: svn path=/head/; revision=288339
* remove an extra copy of avl.c from illumos contrib codeAndriy Gapon2015-09-281-1059/+0
| | | | | | | MFC after: 20 days Notes: svn path=/head/; revision=288337
* save some bytes by using more concise SDT_PROBE<n> instead of SDT_PROBEAndriy Gapon2015-09-2812-88/+79
| | | | | | | | | | | | SDT_PROBE requires 5 parameters whereas SDT_PROBE<n> requires n parameters where n is typically smaller than 5. Perhaps SDT_PROBE should be made a private implementation detail. MFC after: 20 days Notes: svn path=/head/; revision=288336
* Store PID after becoming a daemon() and not before to ensure theHans Petter Selasky2015-09-281-8/+6
| | | | | | | | | | | correct PID gets written to the PID file. Submitted by: Maxime Soule <btik-fbsd@scoubidou.com> PR: 203252 MFC after: 2 weeks Notes: svn path=/head/; revision=288335
* Remove some debugging that wasn't supposed to be there.Adrian Chadd2015-09-281-2/+0
| | | | Notes: svn path=/head/; revision=288334
* Add initial testcases for bin/lsEnji Cooper2015-09-284-0/+375
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288330
* include opt_wlan.h . Tsk adrian.Adrian Chadd2015-09-281-0/+2
| | | | Notes: svn path=/head/; revision=288320
* if_otus fixes; add fast-frames support.Adrian Chadd2015-09-282-1/+42
| | | | | | | | | | | | | | | | | | | Fast-frames: * include opt_wlan.h ; tsk to not doing it earlier; * add a tx pending tracking counter for seeing how deep the hardware TX queue is; * add the frame aging code from if_ath; * add fast-frames capability to the driver setup. Bugs: * free the buffers (and node references) before detaching net80211 state. This prevents a use-after-free in the node free path where we've destroyed net80211 underneath it. Notes: svn path=/head/; revision=288319
* Migrate the fast-frames transmit support away from using the txa_privateAdrian Chadd2015-09-282-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | field and into a separate fast-frames staging pointer in ieee80211_node. The A-MPDU TX path allows txa_private to be used by drivers. So it will clash with any attempt to use fast-frames. Now, fast-frames is not really anything special - it's just a custom ethernet frame type that contains two MSDUs into one MPDU. So all the NIC has to support doing is transmitting up to a 4KiB frame with an arbitrary ethertype and bam! Fast-frames. However, using txa_private means we can /either/ do fast-frames or A-MPDU TX, so fast frames has been turned off in the Atheros HAL for 11n chipsets. This is a bit silly - it actually means that 802.11 performance to/from 11abg Atheros chips is actually better than between an 11abg atheros device and an 11n Atheros device. So: * create a new mbuf staging queue for fast frames. It only queues a single frame in the staging queue (and there's a top-level ic staging queue used for expiry/tracking) so it's just an mbuf pointer per TID. * Still use the ampdu TX packet counter to determine whether to do aggregation or not. It'll double count if we start doing both A-MPDU TX and fast frames, but that's not all that important right now. * Initialise the pps tracker so ticks isn't zero. This ensures that fast-frames actually gets used - without it, the ticks math overflows and the pps math always sets txa_pps=0. This is the same bug that plagued A-MPDU TX starting logic. This actually allows fast-frames transmit to occur between the AR9331 (in 11n HT/20 mode) and AR9170 (if_otus) in 11bg mode. Now, this is a great big no-op on atheros 11n hardware, so don't worry. It may mean you start seeing more reliable fast-frames transmission on 11abg hardware which may expose some more amusing bugs. TODO: * further testing and debugging of all of this before flipping on fast-frames in if_ath (for 11n) and if_otus. Notes: svn path=/head/; revision=288318
* Comments, mostly to remind myself of what's going on and why.Adrian Chadd2015-09-281-0/+21
| | | | Notes: svn path=/head/; revision=288317
* Abstract out the ampdu TX pps initialisation code so it can be reusedAdrian Chadd2015-09-282-4/+15
| | | | | | | | | | | | | | | | | | | | | in the superg fast-frames code. This harks back to an earlier commit (r280349) where I found that initialising the pps code with ticks=0 would cause hilariously bad hz ticks wraparound failures, leading to never actually aggregating traffic. This is still true for the superg path and so I have to do the same thing there. This is a big no-op; a subsequent commit will flip this on so it works with the fast-frames transmit path. Tested: * AR9170, otus(4) - STA mode, 11bg operation * AR9331, AP mode Notes: svn path=/head/; revision=288315
* Fix whitespace error in ls(1) detected by igorAllan Jude2015-09-271-3/+3
| | | | | | | | Approved by: bcr (mentor) Sponsored by: EuroBSDCon DevSummit Notes: svn path=/head/; revision=288313
* Use one fewer made up words in the ls(1) man pageAllan Jude2015-09-271-2/+2
| | | | | | | | | | PR: 203337 Submitted by: Mike Dame <damemi@gmail.com> Approved by: bcr (mentor) Sponsored by: EuroBSDCon DevSummit Notes: svn path=/head/; revision=288312
* Set the #address-cells and #size-cells for the I2C controllers in RPi2.Luiz Otavio O Souza2015-09-271-0/+4
| | | | | | | This allows the use of I2C addresses in 'reg' property. Notes: svn path=/head/; revision=288311
* Add to CTL initial support for CDROMs and removable devices.Alexander Motin2015-09-2715-140/+754
| | | | | | | Relnotes: yes Notes: svn path=/head/; revision=288310
* fnmatch(): Remove exponential behaviour as in sh r229201.Jilles Tjoelker2015-09-271-28/+49
| | | | | | | | | The old code was exponential in the number of asterisks in the pattern. However, once a match has been found upto the next asterisk, the previous asterisks are no longer relevant. Notes: svn path=/head/; revision=288309
* Fix what looks like a consistent copy&paste error.Bjoern A. Zeeb2015-09-272-2/+2
| | | | | | | | | | | Don't make an integer to a boolean and then compare to a value which needs an integer comparison. Spotted by: reading kernel compile time log MFC after: 2 weeks Notes: svn path=/head/; revision=288308
* Compare the correct variable to see if memory allocation succeeded.Bjoern A. Zeeb2015-09-271-1/+1
| | | | | | | | | | I don't even want to know where the symbol "version" comes from. Spotted by: reading kernel compile time log MFC after: 2 weeks Notes: svn path=/head/; revision=288307
* Add support to systat to display zfs arc cache status/infoMichael Reifenberger2015-09-277-3/+272
| | | | | | | | PR: 195460 Submitted by: ota Notes: svn path=/head/; revision=288306
* Replace N #defines with nitems to simplify ifconfig code slightlyEnji Cooper2015-09-2715-59/+23
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=288305
* Enable parallel subdirectory building with sys/modules/netgraphEnji Cooper2015-09-271-0/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=288304
* MFV r288243: nc from OpenBSD 5.8.Xin LI2015-09-273-12/+14
|\ | | | | | | Notes: svn path=/head/; revision=288303
| * Vendor import nc(1) from OPENBSD_5_8.vendor/netcat/5.8Xin LI2015-09-263-13/+15
| | | | | | | | | | Notes: svn path=/vendor/netcat/dist/; revision=288243 svn path=/vendor/netcat/5.8/; revision=288244; tag=vendor/netcat/5.8
* | Eliminate nd6_nud_hint() and its TCP bindings.Alexander V. Chernikov2015-09-278-78/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially function was introduced in r53541 (KAME initial commit) to "provide hints from upper layer protocols that indicate a connection is making "forward progress"" (quote from RFC 2461 7.3.1 Reachability Confirmation). However, it was converted to do nothing (e.g. just return) in r122922 (tcp_hostcache implementation) back in 2003. Some defines were moved to tcp_var.h in r169541. Then, it was broken (for non-corner cases) by r186119 (L2<>L3 split) in 2008 (NULL ifp in nd6_lookup). So, right now this code is broken and has no "real" base users. Differential Revision: https://reviews.freebsd.org/D3699 Notes: svn path=/head/; revision=288301
* | - Collapse vfs_vmio_truncate & vfs_vmio_release into a single function.Jeff Roberson2015-09-271-85/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Allow vfs_vmio_invalidate() to free the pages, leaving us with a single loop and bufobj lock when B_NOCACHE/B_INVAL is used. - Eliminate the special B_ASYNC handling on free that has not been relevant for some time. - Remove the extraneous page busy from vfs_vmio_truncate(). Reviewed by: kib Tested by: pho Sponsored by: EMC / Isilon storage division Notes: svn path=/head/; revision=288299
* | Remove MLINKS to more non-existent mbuf(9) macrosEnji Cooper2015-09-273-6/+5
| | | | | | | | | | | | | | | | | | X-MFC with: r288295 MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288298
* | rtsock requests for deleting interface address lles started to return EPERMAlexander V. Chernikov2015-09-274-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | instead of old "ignore-and-return 0" in r287789. This broke arp -da / ndp -cn behavior (they exit on rtsock command failure). Fix this by translating LLE_IFADDR to RTM_PINNED flag, passing it to userland and making arp/ndp ignore these entries in batched delete. MFC after: 2 weeks Notes: svn path=/head/; revision=288297
* | Posthumously remove all references to MFREE(9)Enji Cooper2015-09-273-2/+2
| | | | | | | | | | | | | | | | | | | | The macro was removed in r90227 MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288295
* | Enforce consistent limits of daemons run from rc.subr:Adrian Chadd2015-09-271-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow the user to configure the login class to use in rc.conf by using {daemon}_login_class, which; * Use the daemon class by default; * .. and then use 'limits' to set the login class so it works both via init at startup (which runs this in 'daemon' class) and via whichever root environment (eg command line, other daemons, etc.) Reviewed by: dteske Differential Revision: https://reviews.freebsd.org/D3630 Notes: svn path=/head/; revision=288291
* | Track the command response code buffer size and verify it in theAdrian Chadd2015-09-272-13/+26
| | | | | | | | | | | | | | receive path. Notes: svn path=/head/; revision=288290
* | The conversion of kmem_alloc_attr() from operating on a vm map to a vmemAlan Cox2015-09-261-28/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arena in r254025 introduced a bug in the case when an allocation is only partially successful. Specifically, the vm object lock was not being acquired before freeing the allocated pages. To address this bug, replace the existing code by a call to kmem_unback(). Change the type of a variable in kmem_alloc_attr() so that an allocation of two or more gigabytes won't fail. Replace the error handling code in kmem_back() by a call to kmem_unback(). Reviewed by: kib (an earlier version) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288281
* | Remove a check for a condition that is always false by a preceding KASSERTMark Johnston2015-09-261-5/+0
| | | | | | | | | | | | | | that was added in r144704. Notes: svn path=/head/; revision=288280
* | Free the TX/RX list buffers /before/ tearing down net80211 state.Adrian Chadd2015-09-261-4/+11
| | | | | | | | | | | | | | | | Otherwise buffers in the RX queue get freed with their parent vap being gone and you end up with a juicy kernel panic. Notes: svn path=/head/; revision=288279
* | Document the interface for applying advice up to the end of a file.Mark Johnston2015-09-261-1/+4
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=288278
* | Oops - commit the correct manpage content for otusfw.4.Adrian Chadd2015-09-261-142/+18
| | | | | | | | Notes: svn path=/head/; revision=288277
* | Fix argument ordering in vn_printf().Mark Johnston2015-09-261-2/+2
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=288276
* | Revert r288270 to fix the buildConrad Meyer2015-09-261-7/+0
| | | | | | | | | | | | | | | | Submitted by: bdrewery Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288275
* | Exploit r288122 to address a cosmetic issue. Since the pages allocatedAlan Cox2015-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | by noobj_alloc() don't belong to a vm object, they can't be paged out. Since they can't be paged out, they are never enqueued in a paging queue. Nonetheless, passing PQ_INACTIVE to vm_page_unwire() creates the appearance that these pages are being enqueued in the inactive queue. As of r288122, we can avoid giving this false impression by passing PQ_NONE. Submitted by: kmacy Differential Revision: https://reviews.freebsd.org/D1674 Notes: svn path=/head/; revision=288274
* | Fix spelling.Hans Petter Selasky2015-09-261-3/+4
| | | | | | | | | | | | | | | | | | Submitted by: Maxime Soule <btik-fbsd@scoubidou.com> PR: 203249 MFC after: 2 weeks Notes: svn path=/head/; revision=288273
* | Increase group limit for kerberized NFSv4Josh Paetzel2015-09-262-7/+4
| | | | | | | | | | | | | | | | | | | | | | PR: 202659 Submitted by: matthew.l.dailey@dartmouth.edu Reviewed by: rmacklem dfr MFC after: 1 week Sponsored by: iXsystems Notes: svn path=/head/; revision=288272
* | Document bus_get_resource(9).Conrad Meyer2015-09-262-0/+95
| | | | | | | | | | | | | | | | | | Suggested by: Francois Tigeot Obtained from: DragonFlyBSD 09301a2b29f3ae5edd39a858f909f8770372f71e Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288271
* | Hookup mkcsmapper_static and mkesdb_static for all but install.Bryan Drewery2015-09-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are only handled as 'build-tools' in Makefile.inc1. This causes 'make clean' from the top of the tree to not clean the directories. It also effectively has kept them disconnected and risks them bitrotting. The buildworld process never cleans them either. Connect them so they will always be built, cleaned, etc, but never installed. Discussed with: imp (briefly) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288270
* | Revert r288268. Wrong change committed.Bryan Drewery2015-09-261-1/+1
| | | | | | | | Notes: svn path=/head/; revision=288269
* | Hookup mkcsmapper_static and mkesdb_static for all but install.Bryan Drewery2015-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are only handled as 'build-tools' in Makefile.inc1. This causes 'make clean' from the top of the tree to not clean the directories. It also effectively has kept them disconnected and risks them bitrotting. The buildworld process never cleans them either. Connect them so they will always be built, cleaned, etc, but never installed. Discussed with: imp (briefly) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288268
* | Remove redundant .NOPATH.Bryan Drewery2015-09-263-6/+0
| | | | | | | | | | | | | | | | | | All of these are already in CLEANFILES which is added to .NOPATH in bsd.obj.mk. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288267
* | Add more SUBDIR_PARALLEL.Bryan Drewery2015-09-2614-5/+26
| | | | | | | | | | | | | | | | MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288266
* | Wait up to 10 seconds for late-initializing network interfaces to arrive.Ian Lepore2015-09-261-0/+9
| | | | | | | | | | | | | | Reviewed by: rmacklem Notes: svn path=/head/; revision=288265
* | Allow LOG SENSE command on non-disk devices.Alexander Motin2015-09-262-2/+5
| | | | | | | | Notes: svn path=/head/; revision=288264
* | Don't duplicate checks; net80211 now does this for us.Adrian Chadd2015-09-261-8/+0
| | | | | | | | | | | | | | Submitted by: s3erios@gmail.com Notes: svn path=/head/; revision=288263
* | Remove concept of control device.Alexander Motin2015-09-261-62/+24
| | | | | | | | Notes: svn path=/head/; revision=288262