summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* make: report :M or :N pattern in debug modeavg2012-10-061-0/+1
| | | | MFC after: 12 days
* Add bmake to the build and allow it to be installed as make(1) insteadmarcel2012-10-067-0/+655
| | | | | | | | of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it easy for people to switch while working out the kinks -- think ports tree here. The option will be removed in due time. Submitted by: Simon Gerraty (sjg@juniper.net)
* Correct two pessimizations in pmap_extract_and_hold(). Test the PTE foralc2012-10-061-11/+12
| | | | | | | having PTE_RO set instead of PTE_D. This avoids some unnecessary failures by pmap_extract_and_hold() that will have to be handled by a call to vm_fault_hold(). Testing the PTE for both being non-zero and having PTE_V set is redundant. The latter suffices.
* Fix "make install"kientzle2012-10-061-1/+1
| | | | | Also make arm the same as other platforms: Install man pages for all CPUs in the family.
* A step in resolving mess with byte ordering for AF_INET. After this change:glebius2012-10-0611-144/+80
| | | | | | | | | | | | | | | | | | | - All packets in NETISR_IP queue are in net byte order. - ip_input() is entered in net byte order and converts packet to host byte order right _after_ processing pfil(9) hooks. - ip_output() is entered in host byte order and converts packet to net byte order right _before_ processing pfil(9) hooks. - ip_fragment() accepts and emits packet in net byte order. - ip_forward(), ip_mloopback() use host byte order (untouched actually). - ip_fastforward() no longer modifies packet at all (except ip_ttl). - Swapping of byte order there and back removed from the following modules: pf(4), ipfw(4), enc(4), if_bridge(4). - Swapping of byte order added to ipfilter(4), based on __FreeBSD_version - __FreeBSD_version bumped. - pfil(9) manual page updated. Reviewed by: ray, luigi, eri, melifaro Tested by: glebius (LE), ray (BE)
* The pfil(9) layer guarantees us presence of the protocol header,glebius2012-10-061-14/+0
| | | | | | so remove extra check, that is always false. P.S. Also, goto there lead to unlocking a not locked rwlock.
* mdoc: begin sentences on a new line.joel2012-10-061-10/+20
|
* Minor mdoc fix.joel2012-10-061-1/+1
|
* Remove trailing whitespace.joel2012-10-061-1/+1
|
* MFV: tcpdump 4.3.0.delphij2012-10-0530-372/+1142
|\ | | | | | | MFC after: 4 weeks
| * Vendor import of tcpdump 4.3.0.delphij2012-10-0441-3698/+1424
| |
* | MFV: libpcap 1.3.0.delphij2012-10-0527-6917/+3951
|\ \ | | | | | | | | | MFC after: 4 weeks
| * | Vendor import of libpcap 1.3.0.delphij2012-10-0426-6916/+3908
| | |
* | | Allow time offsets to be negative, e.g. `at 1530 - 15 minutes`.cracauer2012-10-051-13/+49
| | | | | | | | | | | | | | | | | | | | | | | | This is useful if you have been given some time for some event in some format and you want your computer to do something to prepare for it. Without having to do time arithmetic in a shellscript. The syntax matches what the at(1) usually used on Linux supports.
* | | Initialise an uninitialised variable.adrian2012-10-051-1/+2
| | |
* | | Further adjust the workaround in r234501. Rounding all small requests upjhb2012-10-051-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to 32k swamped the controller causing firmware hangs. Instead, round requests smaller than 64k up to the next power of 2 as a general rule. To handle the one known special case of a command that accepts a 12k buffer returning a 24k-ish reply, round requests between 8k and 16k up to 32k rather than 16k. The result is that commands less than 8k should now be rounded up to a smaller size (either 4k or 8k) rather than 32k. PR: kern/155658 Tested by: Andreas Longwitz MFC after: 1 week
* | | mount.h: MNTK_VGONE_UPPER and MNTK_VGONE_WAITER were supposed to be differentavg2012-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | ... otherwise a waiter is never woken up. Reported by: swills Discussed with: jhb Approved by: kib MFC after: 3 days
* | | Provide ability for printing and decoding pfsync(4) traffic. Thisglebius2012-10-055-0/+458
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | doesn't mean supporting IFT_PFSYNC (which I hope will eventually die). This means decoding packets with IP protocol of 240 caught on any normal interface like Ethernet. The code is based on couple of files from OpenBSD, significantly modified by myself. Parser differentiates for four levels of verbosity: no -v, -v, -vv and -vvv. We don't yet forward this code upstream, because currently it strongly relies on if_pfsync.h and even on pfvar.h. I hope that this can be fixed in future. Reviewed by: gnn, delphij
* | | Follow Broadcom datasheet:yongari2012-10-051-0/+2
| | | | | | | | | | | | | | | Delay 100 microseconds after enabling transmit MAC. Delay 10 microseconds after enabling receive MAC.
* | | Add 40 microseconds delay after updating EMAC Mode register asyongari2012-10-051-1/+8
| | | | | | | | | | | | recommended by Broadcom data sheet.
* | | Remove references to CVS so that people will stop bringing it updougb2012-10-051-31/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For -p: The localtime update should have been excluded in the first place The make.conf comparison has been OBE for some time now, and there is no src.conf equivalent to share/examples/make.conf, so remove the whole thing. Update copyright
* | | Eliminate a stale and a duplicated comment.alc2012-10-051-14/+0
| | |
* | | APE firmware touches EMAC Mode and TX/RX MAC Mode registers to keepyongari2012-10-051-19/+29
| | | | | | | | | | | | | | | the MAC connected to the outside world. So keep the accesses atomic.
* | | Don't touch EMAC Mode and TX/RX MAC Mode register when driver isyongari2012-10-051-2/+5
| | | | | | | | | | | | not running.
* | | Do not install incomplete unwind.h from clang. This header file was meantjkim2012-10-052-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to be a wrapper for the canonical system header file. Unfortunately, we do not have one (yet) and some times it is causing weird failures when clang is used for building ports. More complete and correct file will come from libcxxrt in the future. Discussed with: dim, kib, theraven MFC after: 1 week
* | | Display the matrix of inter-domain distances in the SLIT table. This isjhb2012-10-041-0/+30
| | | | | | | | | | | | | | | | | | used to complement the SRAT table on NUMA machines. MFC after: 1 week
* | | Fix some memory allocation errors:jamie2012-10-041-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | * jail_setv will leak a parameter name if jailparam_import fails. * jailparam_all loses the jailparam pointer on realloc error (a clear freshman mistake). * If jailparam_init fails, the caller doesn't need to jailparam_free the buffer. That's not really clear, so set things to NULL allowing jailparam_free to work without error (though it's still not required).
* | | Move properly to the next parameter when jailparam_init failsjamie2012-10-041-0/+1
| | | | | | | | | | | | (i.e. on an unknown parameter), to avoid freeing bogus pointers.
* | | Implement the quarter rate fractional channel programming for theadrian2012-10-042-4/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AR5416 and AR9280, but leave it disabled by default. TL;DR: don't enable this code at all unless you go through the process of getting the NIC re-certified. This is purely to be used as a reference and NOT a certified solution by any stretch of the imagination. The background: The AR5112 RF synth right up to the AR5133 RF synth (used on the AR5416, derivative is used for the AR9130/AR9160) only implement down to 2.5MHz channel spacing in 5GHz. Ie, the RF synth is programmed in steps of 2.5MHz (or 5, 10, 20MHz.) So they can't represent the quarter rate channels in the 4.9GHz PSB (which end in xxx2MHz and xxx7MHz). They support fractional spacing in 2GHz (1MHz spacing) (or things wouldn't work, right?) So instead of doing this, the RF synth programming for the AR5112 and later code will round to the nearest available frequency. If all NICs were RF5112 or later, they'll inter-operate fine - they all program the same. (And for reference, only the latest revision of the RF5111 NICs do it, but the driver doesn't yet implement the programming.) However: * The AR5416 programming didn't at all implement the fractional synth work around as above; * The AR9280 programming actually programmed the accurate centre frequency and thus wouldn't inter-operate with the legacy NICs. So this patch: * Implements the 4.9GHz PSB fractional synth workaround, exactly as the RF5112 and later code does; * Adds a very dirty workaround from me to calculate the same channel centre "fudge" to the AR9280 code when operating on fractional frequencies in 5GHz. HOWEVER however: It is disabled by default. Since the HAL didn't implement this feature, it's highly unlikely that the AR5416 and AR928x has been tested in these centre frequencies. There's a lot of regulatory compliance testing required before a NIC can have this enabled - checking for centre frequency, for drift, for synth spurs, for distortion and spectral mask compliance. There's likely a lot of other things that need testing so please don't treat this as an exhaustive, authoritative list. There's a perfectly good process out there to get a NIC certified by your regulatory domain, please go and engage someone to do that for you and pay the relevant fees. If a company wishes to grab this work and certify existing 802.11n NICs for work in these bands then please be my guest. The AR9280 works fine on the correct fractional synth channels (49x2 and 49x7Mhz) so you don't need to get certification for that. But the 500KHz offset hack may have the above issues (spur, distortion, accuracy, etc) so you will need to get the NIC recertified. Please note that it's also CARD dependent. Just because the RF synth will behave correctly doesn't at all mean that the card design will also behave correctly. So no, I won't enable this by default if someone verifies a specific AR5416/AR9280 NIC works. Please don't ask. Tested: I used the following NICs to do basic interoperability testing at half and quarter rates. However, I only did very minimal spectrum analyser testing (mostly "am I about to blow things up" testing; not "certification ready" testing): * AR5212 + AR5112 synth * AR5413 + AR5413 synth * AR5416 + AR5113 synth * AR9280
* | | Define clang feature test macro __has_extension. It's used in stdatomic.h.tijl2012-10-041-0/+3
| | |
* | | Remove the M_NOWAIT from bridge_rtable_init as it isn't needed. The functionthompsa2012-10-041-8/+3
| | | | | | | | | | | | | | | | | | return value is not even checked and could lead to a panic on a null sc_rthash. MFC after: 2 weeks
* | | Fix HISTORY.joel2012-10-041-1/+1
| | |
* | | rpc: convert all uid and gid variables to u_int.pfg2012-10-047-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After further discussion, instead of pretending to use uid_t and gid_t as upstream Solaris and linux try to, we are better using u_int, which is in fact what the code can handle and best approaches the range of values used by uid and gid. Discussed with: bde Reviewed by: bde
* | | Pause and unpause the software queues for a given node based on theadrian2012-10-035-8/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net80211 node power save state. * Add an ATH_NODE_UNLOCK_ASSERT() check * Add a new node field - an_is_powersave * Pause/unpause the queue based on the node state * Attempt to handle net80211 concurrency issues so the queue doesn't get paused/unpaused more than once at a time from the net80211 power save code. Whilst here (and breaking my usual rule), set CLRDMASK when a queue is unpaused, regardless of whether the queue has some pending traffic. This means the first frame from that TID (now or later) will hvae CLRDMASK set. Also whilst here, bump the swretrymax counters whenever the filtered frames code expires a frame. Again, breaking my rule, but this is just a statistics thing rather than a functional change. This doesn't fix ps-poll (but it doesn't break it too much worse than it is at the present) or correcting the TID updates. That's next on the list. Tested: * AR9220 AP (Atheros AP96 reference design) * Macbook Pro and LG Optimus 1 Android phone, both setting and clearing power save state (but not using PS-POLL.)
* | | Clean up compiler warnings.emaste2012-10-031-4/+22
| | | | | | | | | | | | | | | | | | | | | More work is needed here but this now builds with WARNS=6. Sponsored by: ADARA Networks MFC after: 2 weeks
* | | Sort manual page cross references.zeising2012-10-031-5/+6
| | | | | | | | | | | | Approved by: joel (mentor)
* | | Remove whitespace at EOLzeising2012-10-031-16/+16
| | | | | | | | | | | | Approved by: joel (mentor)
* | | Cast through void * to silence compiler warningemaste2012-10-031-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | The base netmap pointer and offsets involved are provided by the kernel side of the netmap interface and will have appropriate alignment. Sponsored by: ADARA Networks MFC After: 2 weeks
* | | rpc: convert all uid and gid variables of the type uid_t and gid_t.pfg2012-10-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous change (based on Solaris) doesn't work properly either as the casting only has the effect of quieting the compiler. Move back to the previous solution but adjust the sizeof() type in xdr_array(). This should mostly work (by accident). Reported by: bde
* | | Replace all references to loader_callbacks_v1 with loader_callbacks.ae2012-10-034-6/+6
| | | | | | | | | | | | Suggested by: grehan@
* | | Pull in r164717 from upstream clang trunk:dim2012-10-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Allow -MF to be used in combination with -E -M or -E -MM. This should help with building the lang/ghc port. MFC after: 1 week
* | | Fix faulty error code handling in read(2) on TTYs.ed2012-10-031-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | When performing a non-blocking read(2), on a TTY while no data is available, we should return EAGAIN. But if there's a modem disconnect, we should return 0. Right now we only return 0 when doing a blocking read, which is wrong. MFC after: 1 month
* | | Fix build without `options ATA_CAM`, broken by r241144.mav2012-10-031-0/+4
| | |
* | | Correct detection of a superblock.gber2012-10-031-8/+7
| | | | | | | | | | | | Obtained from: Smartcom Bulgaria AD
* | | Reimplement pmap_qremove() using the new TLB invalidation function foralc2012-10-031-7/+11
| | | | | | | | | | | | efficiently invalidating address ranges.
* | | Tidy up a bit:alc2012-10-031-37/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update some of the comments. In particular, use "sleep" in preference to "block" where appropriate. Eliminate some unnecessary casts. Make a few whitespace changes for consistency. Reviewed by: kib MFC after: 3 days
* | | Optimize prev. commit for speed.ache2012-10-031-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Don't iterate the loop from the environment array beginning each time, iterate it under the last place we deactivate instead. 2) Call __rebuild_environ() not on each iteration but once, only at the end of whole loop (of course, only in case if something is changed). MFC after: 1 week
* | | rpc: convert all uid and gid variables of the type uid_t and gid_t.pfg2012-10-031-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of the previous commit, uses of xdr_int() were replaced with xdr_u_int(). This has undesired effects as the second argument doesn't match exactly uid_t or gid_t. It also breaks assumptions in the size of the provided types. To work around those issues we revert back to the use of xdr_int() but provide proper casting so the behaviour doesn't change. While here fix a style issue in the affected lines. Reported by: bde
* | | Import sysutils/sysrc from the ports tree (current version 5.1). Importingdteske2012-10-035-2/+924
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disconnected under the WITH_BSDCONFIG flag (a good idea since this version of sysrc(8) indeed requires the `sysrc.subr' module installed by bsdconfig(8)). Multiple reasons sysrc should not simply continue to live in ports. The most important being that it is tightly coupled with the base. Approved by: adrian (co-mentor)
* | | Merge bmake-20120831 from vendor/NetBSD/bmake/dist.marcel2012-10-03120-0/+55801
|\ \ \ | | | | | | | | | | | | Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg
OpenPOWER on IntegriCloud