]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years ago* Fixed PREQ flag field Adressing mode subfiled according to amendment specs;
Monthadar Al Jaberi [Tue, 1 May 2012 16:06:20 +0000 (16:06 +0000)]
* Fixed PREQ flag field Adressing mode subfiled according to amendment specs;

Approved by: adria

12 years ago* Added a mesh max PREQ retires sysctl that governous how many times
Monthadar Al Jaberi [Tue, 1 May 2012 16:05:09 +0000 (16:05 +0000)]
* Added a mesh max PREQ retires sysctl that governous how many times
we try to discover an address;
* Added a mesh net travelse time across an MBSS, which is used to enforce
discovery rate check;

Approved by: adrian

12 years agoChange how we enforce PREQ minimum interval.
Monthadar Al Jaberi [Tue, 1 May 2012 16:03:27 +0000 (16:03 +0000)]
Change how we enforce PREQ minimum interval.

* Moved hs_lastpreq to be hr_lastpreq cause this rate check should be per
target mesh STA according to amendment (NB: not applicable for PERR);
* Modified hwmp_send_preq to use two extra arguments for last sent PREQ and
minimum PREQ interval;
* hwmp_send_preq is called with last two arguments equal to NULL when sending
Proactive PREQs cause the call back task enforces the rate check;

Approved by: adrian

12 years agoPREP update
Monthadar Al Jaberi [Tue, 1 May 2012 16:02:31 +0000 (16:02 +0000)]
PREP update

* Added assertion in mesh_rt_update;
* Fixed some prep propagation that where multicast, ALL PREPS ARE UNICAST;
* Fixed PREP acceptance criteria;
* Fixed some PREP debug messages;
* HWMP intermediate reply (PREP) should only be sent if we have newer
forwarding infomration (FI) about target;
* Fixed PREP propagation condition and PREP w/ AE handling;
* Ignore PREPs that have unknown originator.
* Removed old code inside PREP that was for proactive path building
to root mesh;

Other errors include:
* use seq number of target and not orig mesh STA;
* Metric is what we have stored in our FI;
* Error in amendment, Hop count is not 0 but equals FI hopcount for target;

Approved by: adrian

12 years ago* MeshForwarding update mesh_recv_indiv_data_to_fwrd to silently discard
Monthadar Al Jaberi [Tue, 1 May 2012 16:00:31 +0000 (16:00 +0000)]
* MeshForwarding update mesh_recv_indiv_data_to_fwrd to silently discard
unknown meshDA instead of panic, which is allowed per amendment spec;

Approved by: adrian

12 years agoAdded route lifetime update for destination and source mesh along a mesh path;
Monthadar Al Jaberi [Tue, 1 May 2012 15:58:10 +0000 (15:58 +0000)]
Added route lifetime update for destination and source mesh along a mesh path;

 * In mesh_recv_indiv_data_to_fwd update route entry for both meshDA and meshSA;
 * In mesh_recv_indiv_data_to_me update route entry for meshSA;
 * in ieee80211_mesh_rt_update put code so that a proxy entry that is gated
 by us (number of hops == 0) is never invalidated;
 * Fixed so that we always call ieee80211_mesh_rt_update with lifetime in ms;

Approved by: adrian

12 years agoMesh forwarding with proxy support.
Monthadar Al Jaberi [Tue, 1 May 2012 15:56:26 +0000 (15:56 +0000)]
Mesh forwarding with proxy support.

* Modified HWMP PREP/PREQ to contain a proxy entry and also changed PREP
frame processing according to amendment as following:
        o Fixed PREP to always update/create if acceptance criteria is meet;
        o PREQ processing to reply if request is for a proxy entry that is
          proxied by us;
        o Removed hwmp_discover call from PREQ, because sending a PREP will
          build the forward path, and by receving and accepting a PREQ we
          have already built the reverse path (non-proactive code);
* Disabled code for pro-active in PREP for now (will make a separate patch for
pro-active HWMP routing later)
* Added proxy information for a Mesh route, mesh gate to use and proxy seqno;
* Modified ieee80211_encap according to amendment;
* Introduced Mesh control address extension enum and removed unused struct,
also rename some structure element names.
* Modified mesh_input and added mesh_recv_* that should verify and process mesh
data frames according to 9.32 Mesh forwarding framework in amendment;
* Modified mesh_decap accordingly to changes done in mesh control AE struct;

Approved by: adrian

12 years agoImplemented so that Mesh forwarding information lifetime is dynamic.
Monthadar Al Jaberi [Tue, 1 May 2012 15:47:30 +0000 (15:47 +0000)]
Implemented so that Mesh forwarding information lifetime is dynamic.

 * Introduced ieee80211_mesh_rt_update that updates a route with the
 maximum(lifetime left, new lifetime);
 * Modified ieee80211_mesh_route struct by adding a lock that will be used
 by both ieee80211_mesh_rt_update and precursor code (added in future commit);
 * Modified in ieee80211_hwmp.c HWMP code to use new ieee80211_mesh_rt_update;
 * Modified mesh_rt_flush_invalid to use new ieee80211_mesh_rt_update;
 * mesh_rt_flush also checks that lifetime == 0, this gives route discovery
 a change to complete;
 * Modified mesh_recv_mgmt case IEEE80211_FC0_SUBTYPE_BEACON:
 when ever we received a beacon from a neighbor we update route lifetime;

Approved by: adrian

12 years agoFixed some MPM reason codes and max number of neighbors check
Monthadar Al Jaberi [Tue, 1 May 2012 15:42:41 +0000 (15:42 +0000)]
Fixed some MPM reason codes and max number of neighbors check

 * Added IEEE80211_MESH_MAX_NEIGHBORS and it is set to 15, same as before;
 * Modified mesh_parse_meshpeering_action to verify MPM frame and send
 correct reason code for when a frame is rejected according to standard spec;
 * Modified mesh_recv_action_meshpeering_* according to the standard spec;
 * Modified mesh_peer_timeout_cb to always send CLOSE frame when in CONFIRMRCV
 state according to the standard spec;

Approved by: adrian

12 years agoModified structure and code that handles Mesh peering management.
Monthadar Al Jaberi [Tue, 1 May 2012 15:39:16 +0000 (15:39 +0000)]
Modified structure and code that handles Mesh peering management.

 * Old struct ieee80211_meshpeer_ie had wrong peer_proto field size;
 * Added IEEE80211_MPM_* size macros;
 * Created an enum for the Mesh Peering Protocol Identifier field according
 to the standard spec and removed old defines;
 * Abbreviated Handshake Protocol is not used by the standard anymore;
 * Modified mesh_verify_meshpeer to use IEEE80211_MPM_* macros for verification;
 * Modified mesh_parse_meshpeering_action to parse complete frame, also to parse
 it according to the standard spec;
 * Modified ieee80211_add_meshpeer to construct correct MPM frames according to
 the standard spec;

Approved by: adrian

12 years agoAdded Self-protected action category (including MPM).
Monthadar Al Jaberi [Tue, 1 May 2012 15:35:10 +0000 (15:35 +0000)]
Added Self-protected action category (including MPM).

* Added new action category IEEE80211_ACTION_CAT_SELF_PROT which is used by 11s
for Mesh Peering Management;
* Updated Self protected enum Action codes to start from 1 instead of 0
according to the standard spec;
* Removed old and wrong action categories IEEE80211_ACTION_CAT_MESHPEERING;
* Modified ieee80211_mesh.c and ieee80211_action.c to use the new action
category code;
* Added earlier verification code in ieee80211_input;

Approved by: adrian

12 years agoChange the MIB cycle count API to return HAL_BOOL, rather than uint32_t,
Adrian Chadd [Tue, 1 May 2012 14:48:51 +0000 (14:48 +0000)]
Change the MIB cycle count API to return HAL_BOOL, rather than uint32_t,
to return whether it was successful.

Add placeholder (blank) methods for previous chips, for both it and
the 11n extension channel busy call.

12 years ago- close the open file after fetching
Baptiste Daroussin [Tue, 1 May 2012 10:16:12 +0000 (10:16 +0000)]
- close the open file after fetching
- create a default /usr/local/etc/pkg.conf

Approved by: des (mentor)

12 years agoImplement volume deletion if disk has more then one partition.
Alexander Motin [Tue, 1 May 2012 09:21:21 +0000 (09:21 +0000)]
Implement volume deletion if disk has more then one partition.

12 years agoImprove DDF metadata writing.
Alexander Motin [Tue, 1 May 2012 08:19:29 +0000 (08:19 +0000)]
Improve DDF metadata writing.

12 years ago- fixed a vnode lock hang-up issue.
Daichi GOTO [Tue, 1 May 2012 07:46:30 +0000 (07:46 +0000)]
- fixed a vnode lock hang-up issue.
- fixed an incorrect lock status issue.
- fixed an incorrect lock issue of unionfs root vnode removed.
  (pointed out by keith)
- fixed an infinity loop issue.
  (pointed out by dumbbell)
- changed to do LK_RELEASE expressly when unlocked.

Submitted by: ozawa@ongs.co.jp

12 years agoFix make depend.
Ulrich Spörlein [Tue, 1 May 2012 07:38:40 +0000 (07:38 +0000)]
Fix make depend.

12 years agoConvert AP96 to use the mdioproxy and ARGE_MDIO option.
Adrian Chadd [Tue, 1 May 2012 06:21:02 +0000 (06:21 +0000)]
Convert AP96 to use the mdioproxy and ARGE_MDIO option.

arge1 still works (it's the standalone PHY) but arge0 and the other switch
ports don't work.  They're enumerated though, demonstrating that the
mdiobus abstraction is correctly working.

12 years agoBreak out the arge MDIO bus code into an optional argemdio device.
Adrian Chadd [Tue, 1 May 2012 06:18:30 +0000 (06:18 +0000)]
Break out the arge MDIO bus code into an optional argemdio device.

This is only done if the ARGE_MDIO option is included.

* Shuffle the arge MDIO bus into a separate device, that needs to be
  probed early (use hint.argemdio.X.order=0)
* hint.arge.X.mdio now specifies which miiproxy to rendezvous with.
* Call MAC/MDIO bus init during MDIO attach, not arge attach.

This is done regardless:

* Shift the arge MAC and MDIO bus reset code into separate functions
  and call it early during MDIO bus attach.  It's required for
  correct MDIO bus IO to occur on AR71xx/AR91xx devices.

* Remove the AR71xx/AR91xx centric assumption that there's only one
  MDIO bus.  The initial code mapped miibus0(arge0) and miibus1(arge1)
  MII register operations to the MII0 (arge0) register space.  The
  AR724x (and later, upcoming chipsets) have two MDIO busses and
  the second is very much in use.

TODO:

* since the multiphy behaviour has changed (where now a phymask of >1
  PHY will still be enumerated), multiphy setups may be quite wrong.
  I'll go and fix these so they still have a chance of working, at least.
  until the switch PHY support appears in -HEAD.

Submitted by: Stefan Bethke <stb@lassitu.de>

12 years agoBring over the first part of the etherswitch framework - an MDIO bus and
Adrian Chadd [Tue, 1 May 2012 06:11:38 +0000 (06:11 +0000)]
Bring over the first part of the etherswitch framework - an MDIO bus and
MDIO/MII rendezvous proxy.

* Add an 'mdio' bus, which is the "IO" side of an MII bus (but by design
  can be anything which implements the underlying register access API.)
* Add 'miiproxy' and 'mdioproxy', which provides a rendezvous mechanism
  for MII busses to appear hanging off arbitrary busses (ie, that aren't
  necessarily a traditional looking MII bus.)

MII busses can now hang off anything that implements an mdiobus.

For the AR71xx SoC, there's one MDIO bus but two MII busses.  So to
properly support two or more real PHYs, this can be done:

  # arge0 MDIO bus - there's no arge1 MDIO bus for AR71xx
  hint.argemdio.0.at="nexus0"
  hint.argemdio.0.maddr=0x19000000
  hint.argemdio.0.msize=0x1000
  hint.argemdio.0.order=0

  # Create two mdioproxy instances
  hint.mdioproxy.0.at="mdio0"
  hint.mdioproxy.1.at="mdio0"

  # .. and with a follow-up patch
  hint.arge.0.mdio=mdioproxy0
  hint.arge.1.mdio=mdioproxy0

TODO:

* Do a sweep or two and add appropriate locking in mdio/mdioproxy/miiproxy.

Submitted by: Stefan Bethke <stb@lassitu.de>
Reviewed by: ray

12 years agoTeach ubldr(8) about simple MBR partitioning.
Tim Kientzle [Tue, 1 May 2012 05:04:49 +0000 (05:04 +0000)]
Teach ubldr(8) about simple MBR partitioning.

12 years agoMigrate ARGE_DEBUG to opt_arge.h.
Adrian Chadd [Tue, 1 May 2012 04:35:53 +0000 (04:35 +0000)]
Migrate ARGE_DEBUG to opt_arge.h.

Submitted by: Stefan Bethke <stb@lassitu.de>

12 years agoAdd myself to this file - it didn't exist last time.
John W. De Boskey [Tue, 1 May 2012 01:19:56 +0000 (01:19 +0000)]
Add myself to this file - it didn't exist last time.

Approved by: rmacklem (mentor)

12 years agoGNU/kFreeBSD portability fix. This glue <stdlib.h> overrides header protection
Robert Millan [Mon, 30 Apr 2012 23:12:16 +0000 (23:12 +0000)]
GNU/kFreeBSD portability fix. This glue <stdlib.h> overrides header protection
in the system-wide version of <stdlib.h> by wrapping the #include_next
<stdlib.h> within the scope of its own header protection. On FreeBSD this has
no effect, since both header protections are equivalent. However the GNU version
of <stdlib.h> implements a special header protection mechanism which allows it
to be included multiple times (in different modes).

Simply by moving the #include_next off the header protection, we allow
system-wide <stdlib.h> to implement its own protection policy, whichever that
may be.

12 years agoUnbreak jemalloc build with MALLOC_PRODUCTION set. New jemalloc version
Oleksandr Tymoshenko [Mon, 30 Apr 2012 22:46:09 +0000 (22:46 +0000)]
Unbreak jemalloc build with MALLOC_PRODUCTION set. New jemalloc version
uncovered MIPS-related gcc bug described in
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33256

The patch was obtained from r128198 in gcc-4_1-branch, which is GPLv2,
so it's OK to merge it.

12 years agoImport m4 regression tests from OpenBSD
Baptiste Daroussin [Mon, 30 Apr 2012 22:00:34 +0000 (22:00 +0000)]
Import m4 regression tests from OpenBSD

Obtained from: OpenBSD
Approved by: des (mentor)

12 years agoAdd two special directives to libmap.conf:
Baptiste Daroussin [Mon, 30 Apr 2012 21:26:35 +0000 (21:26 +0000)]
Add two special directives to libmap.conf:
include <file>:
  Parse the contents of file before continuing with the current file.
includedir <dir>:
  Parse the contents of every file in dir that ends in .conf before continuing
  with the current file.
Any file or directory encountered while processing include or includedir
directives will be parsed exactly once, even if it is encountered multiple
times.

Reviewed by: kib, des
Approved by: des (mentor)
MFC after: 1 month

12 years agoRespect mathematical operation order piority with the exponent gnu extension
Baptiste Daroussin [Mon, 30 Apr 2012 21:02:57 +0000 (21:02 +0000)]
Respect mathematical operation order piority with the exponent gnu extension

Obtained from: OpenBSD
Approved by: des (mentor)

12 years agoAdd to GEOM RAID class module, supporting the DDF metadata format, as
Alexander Motin [Mon, 30 Apr 2012 17:53:02 +0000 (17:53 +0000)]
Add to GEOM RAID class module, supporting the DDF metadata format, as
defined by the SNIA Common RAID Disk Data Format Specification v2.0.

Supports multiple volumes per array and multiple partitions per disk.
Supports standard big-endian and Adaptec's little-endian byte ordering.
Supports all single-layer RAID levels. Dual-layer RAID levels except
RAID10 are not supported now because of GEOM RAID design limitations.

Some work is still to be done, but the present code already manages basic
interoperation with RAID BIOS of the Adaptec 1430SA SATA RAID controller.

MFC after: 1 month
Sponsored by: iXsystems, Inc.

12 years agoAdd myself.
Jean-Sébastien Pédron [Mon, 30 Apr 2012 16:16:37 +0000 (16:16 +0000)]
Add myself.

12 years agoImprove growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle
Edward Tomasz Napierala [Mon, 30 Apr 2012 16:08:02 +0000 (16:08 +0000)]
Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle
them and commit separately.

1. Rewrite the way growfs(8) finds the device and mount point.  This makes
   it possible to use e.g. "growfs /mnt"; it's also used to display more
   helpful messages.

2. Be more user-friendly, using descriptive messages, like this:

   OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]"

3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with
   postfixes ("mdconfig -s 10g").

4. Reload read-only filesystem after growing.

Reviewed by: kib, mckusick (earlier version)
Sponsored by: The FreeBSD Foundation

12 years agoAdd GNU hash support for rtld.
Konstantin Belousov [Mon, 30 Apr 2012 13:31:10 +0000 (13:31 +0000)]
Add GNU hash support for rtld.

Based on dragonflybsd support for GNU hash by John Marino <draco marino st>
Reviewed by: kan
Tested by: bapt
MFC after: 2 weeks

12 years agoSplit the symlook_obj1 into a loop iterating over the ELF object symbol
Konstantin Belousov [Mon, 30 Apr 2012 13:29:21 +0000 (13:29 +0000)]
Split the symlook_obj1 into a loop iterating over the ELF object symbol
hash elements, and a helper matched_symbol() which match the given hash
entry and request, performing needed type and version checks.

Based on dragonflybsd support for GNU hash by John Marino <draco marino st>
Reviewed by: kan
Tested by: bapt
MFC after: 2 weeks

12 years agoDon't reuse credentials if redirected to a different host.
Dag-Erling Smørgrav [Mon, 30 Apr 2012 12:12:48 +0000 (12:12 +0000)]
Don't reuse credentials if redirected to a different host.

Submitted by: Niels Heinen <heinenn@google.com>
MFC after: 3 weeks

12 years agoSince the socket is non-blocking, it is necessary to use select(2) even
Dag-Erling Smørgrav [Mon, 30 Apr 2012 12:11:45 +0000 (12:11 +0000)]
Since the socket is non-blocking, it is necessary to use select(2) even
when there is no timeout, because read(2) will return immediately if there
is no data waiting in the TCP buffer, causing fetch_read() to busy-loop on
slow connections.

MFC after: 3 weeks
Noticed by: Yanhui Shen <shen.elf@gmail.com>

12 years agoRemove incorrect __restrict qualifier on several pointers
Jean-Sébastien Pédron [Mon, 30 Apr 2012 11:28:17 +0000 (11:28 +0000)]
Remove incorrect __restrict qualifier on several pointers

The typical case was:
static __inline int
convert_ccl(FILE *fp, char * __restrict p, [...])
{
        [...]

        if (p == SUPPRESS_PTR) {
[...]
} else {
[...]
}

[...]
}

This qualifier says that the pointer is the only one at that time
pointing to the resource.

Here, clang considers that "p" will never match "SUPPRESS_PTR" and
optimize the if{} block out. This leads to segfaults in programs calling
vfscanf(3) and vfwscanf(3) with just the format string (no arguments
following it).

The following softwares were reported to abort with segmentation fault
and this patch fixes it:
    o  cmake
    o  smartd
    o  devel/ORBit2

dim@ opened an LLVM PR to discuss this clang optimization:
    http://llvm.org/bugs/show_bug.cgi?id=12656

Tested by: bsam@

12 years agoMove several enums and structures required for L2 filtering from ip_fw_private.h...
Alexander V. Chernikov [Mon, 30 Apr 2012 10:22:23 +0000 (10:22 +0000)]
Move several enums and structures required for L2 filtering from ip_fw_private.h to ip_fw.h.
Remove ipfw/ip_fw_private.h header from non-ipfw code.

Approved by:        ae(mentor)
MFC after:          2 weeks

12 years agoChange the default to not use packet counters to generate rx interrupts.
Navdeep Parhar [Mon, 30 Apr 2012 09:46:05 +0000 (09:46 +0000)]
Change the default to not use packet counters to generate rx interrupts.
Rely solely on the timer based mechanism.

Update man page to reflect this change.

MFC after: 1 week

12 years agoAdd support for missing gauth_number_of_chunks field. This Bug was
Michael Tuexen [Mon, 30 Apr 2012 08:44:21 +0000 (08:44 +0000)]
Add support for missing gauth_number_of_chunks field. This Bug was
found by Irene Ruengeler.

MFC after: 1 week

12 years agoMake sure that the firmware version is available in
Navdeep Parhar [Mon, 30 Apr 2012 08:44:10 +0000 (08:44 +0000)]
Make sure that the firmware version is available in
dev.t4nex.X.firmware_version even if the driver fails to attach
properly.  At least it'll be easy to tell what we're dealing with.

MFC after: 1 week

12 years agofix a further typo in the pdfork(2) man page.
Robert Watson [Mon, 30 Apr 2012 08:00:52 +0000 (08:00 +0000)]
fix a further typo in the pdfork(2) man page.

Submitted by: Norman Hardy
MFC after: 3 days

12 years agoThe returned file descriptor from pdfork(2) is via fdp, not pidp.
Robert Watson [Mon, 30 Apr 2012 07:32:39 +0000 (07:32 +0000)]
The returned file descriptor from pdfork(2) is via fdp, not pidp.

Submitted by: Norman Hardy
MFC after: 3 days

12 years agoPrint out a warning message if a `lpc setstatus' is done when
Garance A Drosehn [Mon, 30 Apr 2012 01:10:13 +0000 (01:10 +0000)]
Print out a warning message if a `lpc setstatus' is done when
the queue is not 'lpc stop'-ed.  In that situation `lpq' will
not display the status message to the user, and the operator
may think the queue is already stopped when it is not.

MFC after: 3 weeks

12 years agoFix a bug in *wscanf's handling of non-wide %s, %c, and %[
David Schultz [Mon, 30 Apr 2012 01:08:18 +0000 (01:08 +0000)]
Fix a bug in *wscanf's handling of non-wide %s, %c, and %[
conversions.  Both the specification and the documentation say the
width is interpreted as the max number of wide characters to read, but
the implementation was interpreting it as the number of bytes to convert.
(See also r105317.)

This change has security implications for any applications that depend
on the buggy behavior, but the impact in practice is probably nil.
Any such application would already be buggy on other platforms that
get the semantics right.  Also, these conversions are rarely used;
%ls, %lc, and %l[ are more appropriate.

12 years agoCatch the user-error when no queue name was specified on an
Garance A Drosehn [Mon, 30 Apr 2012 00:54:10 +0000 (00:54 +0000)]
Catch the user-error when no queue name was specified on an
lpc-command which supports '-msg' (e.g.: setstatus).  Print
out a helpful error message instead hitting a seg-fault.

MFC after: 3 weeks

12 years agoCopy recent changes from etc/root/dot.cshrc that make the defaults more
Eitan Adler [Sun, 29 Apr 2012 22:29:48 +0000 (22:29 +0000)]
Copy recent changes from etc/root/dot.cshrc that make the defaults more
user friendly

Approved by: cperciva
MFC after: 3 days

12 years agoAdd support for:
Eitan Adler [Sun, 29 Apr 2012 22:28:15 +0000 (22:28 +0000)]
Add support for:
Olympus FE-210 camera
LG UP3S MP3 player
Laser MP3-2GA13 MP3

PR: usb/119201
Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
Approved by: cperciva
MFC after: 1 week

12 years agopread(2) might fail with EBUSY, so document it
Eitan Adler [Sun, 29 Apr 2012 22:23:00 +0000 (22:23 +0000)]
pread(2) might fail with EBUSY, so document it

PR: docs/167201
Submitted by: Kurt Jaeger <fbsd-ports@opsec.eu>
Approved by: cperciva
MFC after: 3 days

12 years agoAllow users of gprof to get per run output files (using the pid)
Eitan Adler [Sun, 29 Apr 2012 22:19:58 +0000 (22:19 +0000)]
Allow users of gprof to get per run output files (using the pid)

PR: bin/99800
Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
Reviewed by: jilles (code)
Reviewed by: dwhite (doc)
Approved by: cperciva
MFC after: 1 week

12 years agos/gmirror/graid/
Alexander Motin [Sun, 29 Apr 2012 19:40:50 +0000 (19:40 +0000)]
s/gmirror/graid/

12 years agoAdd support for Multi-TT mode of modern USB HUBs.
Hans Petter Selasky [Sun, 29 Apr 2012 17:12:33 +0000 (17:12 +0000)]
Add support for Multi-TT mode of modern USB HUBs.
This will give you more bandwidth for isochronous
FULL speed applications connected through a
High Speed HUB.

This patch has been tested with XHCI and EHCI.

MFC after: 1 week

12 years agoPreviously, vfscanf()'s wide character processing functions were
David Schultz [Sun, 29 Apr 2012 16:28:39 +0000 (16:28 +0000)]
Previously, vfscanf()'s wide character processing functions were
reading wide characters manually.  With this change, they now use
fgetwc().  To make this work, we use an internal version of fgetwc()
with a few extensions: it takes an mbstate * because non-wide streams
don't have a built-in mbstate, and it indicates the number of bytes
read.

vfscanf() now resembles vfwscanf() more closely.  Minor functional
improvements include working xlocale support in vfscanf(), setting the
stream error indicator on encoding errors, and proper handling of
shift-based encodings.  (Actually, making shift-based encodings work
with non-wide streams is hopeless, but the implementation now matches
the broken specification.)

12 years agoPartially revert r232938; ZFS only requires nfs4 but not posix1e.
Marius Strobl [Sun, 29 Apr 2012 16:21:47 +0000 (16:21 +0000)]
Partially revert r232938; ZFS only requires nfs4 but not posix1e.

Submitted by: jhb

12 years agoDrag in subr_acl_nfs4.c for ZFS automatically, otherwise it's
Marius Strobl [Sun, 29 Apr 2012 16:14:09 +0000 (16:14 +0000)]
Drag in subr_acl_nfs4.c for ZFS automatically, otherwise it's
unintuitive that "options zfs" requires "options ufs_acl".

12 years agoAdd multiple inclusion protection.
Marius Strobl [Sun, 29 Apr 2012 15:54:40 +0000 (15:54 +0000)]
Add multiple inclusion protection.

PR: 165025
Submitted by: Gavin Mu
MFC after: 1 week

12 years agoFix WITHOUT_EXAMPLES build:
Bernhard Schmidt [Sun, 29 Apr 2012 12:48:52 +0000 (12:48 +0000)]
Fix WITHOUT_EXAMPLES build:
While removing unnecessary entries from .PATH.c I missed that for the
examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to
.PATH.

Tested by: lev
MFC after: 2 weeks

12 years agoAdd a convenience macro for the returns_twice attribute, and apply it to
Dimitry Andric [Sun, 29 Apr 2012 11:04:31 +0000 (11:04 +0000)]
Add a convenience macro for the returns_twice attribute, and apply it to
the prototypes of the appropriate functions (getcontext, savectx,
setjmp, sigsetjmp and vfork).

MFC after: 2 weeks

12 years agoRegenerate src.conf(5)
Konstantin Belousov [Sun, 29 Apr 2012 09:37:02 +0000 (09:37 +0000)]
Regenerate src.conf(5)

12 years agoAdd src.conf option WITH_SHARED_TOOLCHAIN to enable building the
Konstantin Belousov [Sun, 29 Apr 2012 09:32:44 +0000 (09:32 +0000)]
Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked.  Option is disabled by
default.

Reviewed by: ru (previous version)
MFC after: 2 weeks

12 years agoUse standard getopt(3) error message.
Jeremie Le Hen [Sun, 29 Apr 2012 08:17:44 +0000 (08:17 +0000)]
Use standard getopt(3) error message.

Submitted by: jilles
Approved by: kib (mentor)

12 years agoChange cc -> bc : "bc" is "busy count", which is the % of time the channel
Adrian Chadd [Sat, 28 Apr 2012 23:13:09 +0000 (23:13 +0000)]
Change cc -> bc : "bc" is "busy count", which is the % of time the channel
is considered "busy but not doing any active TX or frame RX."

Just keep in mind that "frame RX" is "decoding what looks like a wifi
signal", not necessarily "frame successfully decoded for this particular
device."

12 years agoAs cron(8) is started with '-s' by default, timezones that observe
Glen Barber [Sat, 28 Apr 2012 22:48:00 +0000 (22:48 +0000)]
As cron(8) is started with '-s' by default, timezones that observe
DST should not need to worry about scheduling jobs when the DST time
changes.

Rather than removing the BUGS section in crontab(5) regarding this,
note that disabling '-s' may still cause jobs to be executed twice or
not at all.

PR: 166318
Submitted by: Florian k Unglaub (f.unglaub%googlemail!com)
MFC After: 1 week

12 years agoAfter thinking about this a bit more, let's not keep statistics per-channel
Adrian Chadd [Sat, 28 Apr 2012 22:03:19 +0000 (22:03 +0000)]
After thinking about this a bit more, let's not keep statistics per-channel
in the HAL.  That's very memory hungry (32k just for channel statistics)
which would be better served by keeping a summary in the ANI state.

Or, later, keep a survey history in net80211.

So:

* Migrate the ah_chansurvey array to be a single entry, for the current
  channel.
* Change the ioctl interface and ANI code to just reference that.
* Clear the ah_chansurvey array during channel reset, both in the AR5212
  and AR5416 reset path.

12 years agoFix small documentation mistakes.
Jeremie Le Hen [Sat, 28 Apr 2012 21:50:30 +0000 (21:50 +0000)]
Fix small documentation mistakes.

Submitted by: brueffer
Approved by: kib (mentor)

12 years agoImport stdbuf(1) and the shared library it relies on.
Jeremie Le Hen [Sat, 28 Apr 2012 20:52:20 +0000 (20:52 +0000)]
Import stdbuf(1) and the shared library it relies on.
This tool changes the default buffering behaviour of standard
stdio streams.

It only works on dynamic binaries.  To make it work for static
ones it would require cluttering stdio because there no single
entry point.

PR: 166660
Reviewed by: current@, jhb
Approved by: kib (mentor)
MFC after: 1 week

12 years agoAs of r226840, GELI starts one thread per CPU.
Glen Barber [Sat, 28 Apr 2012 20:23:13 +0000 (20:23 +0000)]
As of r226840, GELI starts one thread per CPU.

PR: 167382
Submitted by: John W. O'Brien (john%saltant.com)
X-Needs-MFC: r226840

12 years agoFix several memory and lock leaks on the out of memory condition.
Konstantin Belousov [Sat, 28 Apr 2012 18:57:27 +0000 (18:57 +0000)]
Fix several memory and lock leaks on the out of memory condition.

Reported by: Matt Miller <matt matthewjmiller net>
MFC after: 1 week

12 years agoAlthough not strictly needed, quieten a compiler warning by a user.
Adrian Chadd [Sat, 28 Apr 2012 18:56:17 +0000 (18:56 +0000)]
Although not strictly needed, quieten a compiler warning by a user.

12 years agoWhitespace changes.
Michael Tuexen [Sat, 28 Apr 2012 16:32:49 +0000 (16:32 +0000)]
Whitespace changes.

MFC after: 3 days

12 years agoFix build on 32-bit systems.
Nathan Whitehorn [Sat, 28 Apr 2012 14:42:49 +0000 (14:42 +0000)]
Fix build on 32-bit systems.

12 years agoMove crypto stuff into a common Makefile. While here fix the
Bernhard Schmidt [Sat, 28 Apr 2012 11:11:53 +0000 (11:11 +0000)]
Move crypto stuff into a common Makefile.  While here fix the
WITHOUT_OPENSSL build by using the wpa's internal crypto support if
openssl is not available, this allows us to unconditionally enable
EAP support.

MFC after: 2 weeks

12 years agonot only the file names have changed from eap_xxx.c to eap_server_xxx.c,
Bernhard Schmidt [Sat, 28 Apr 2012 11:02:32 +0000 (11:02 +0000)]
not only the file names have changed from eap_xxx.c to eap_server_xxx.c,
the defines too

MFC after: 2 weeks

12 years agoenable EAP_GTC and EAP_OTP to match upstream's default configuration
Bernhard Schmidt [Sat, 28 Apr 2012 11:01:12 +0000 (11:01 +0000)]
enable EAP_GTC and EAP_OTP to match upstream's default configuration

MFC after: 2 weeks

12 years agoFollow up r234711 and do same for the supplicant, one file/option per
Bernhard Schmidt [Sat, 28 Apr 2012 10:59:29 +0000 (10:59 +0000)]
Follow up r234711 and do same for the supplicant, one file/option per
line. While here merge the options which are always enabled.

MFC after: 2 weeks

12 years agoExtend the ANI code to implement basic channel survey support.
Adrian Chadd [Sat, 28 Apr 2012 08:29:46 +0000 (08:29 +0000)]
Extend the ANI code to implement basic channel survey support.

* Always call ar5416GetListenTime()
* Modify ar5416GetListenTime() to:
  + don't update the ANI state if there isn't any ANI state;
  + don't update the channel survey state if there's no active
    channel - just to be paranoid
  + copy the channel survey results into the current sample slot
    based on the current channel; then increment the sample counter
    and sample history counter.
* Modify ar5416GetMIBCyclesPct() to simply return a HAL_SURVEY_SAMPLE,
  rather than a set of percentages.  The ANI code wasn't using the
  percentages anyway.

TODO:

* Create a new function which fetches the survey results periodically
* .. then modify the ANI code to use the pre-fetched values rather than
  fetching them again
* Roll the 11n ext busy function from ar5416_misc.c to update all the
  counters, then do the result calculation
* .. then, modify the MIB counter routine to correctly fetch a snapshot -
  freeze the counters, fetch the values, then reset the counters.

12 years agoAdd a tool to print out min, average and max channel survey information
Adrian Chadd [Sat, 28 Apr 2012 08:17:19 +0000 (08:17 +0000)]
Add a tool to print out min, average and max channel survey information
from the current channel.

There seem to be some occasional issues with the extension channel
counters reporting more than 100% of use.  I'll investigate that
soon.

12 years agoFetch the channel survey code from the HAL.
Adrian Chadd [Sat, 28 Apr 2012 08:15:40 +0000 (08:15 +0000)]
Fetch the channel survey code from the HAL.

This information is currently not being populated by any of the HAL
modules.

12 years agoExtend the HAL channel survey statistics:
Adrian Chadd [Sat, 28 Apr 2012 08:12:51 +0000 (08:12 +0000)]
Extend the HAL channel survey statistics:

* include ext_chan_busy;
* include ofdm/cck phy error counts, which aren't yet implemented.

12 years agoAdd a comment about this DELAY(), I'm not sure whether it's supposed
Adrian Chadd [Sat, 28 Apr 2012 05:00:47 +0000 (05:00 +0000)]
Add a comment about this DELAY(), I'm not sure whether it's supposed
to be for a DDR/FIFO flush or something else.

12 years agoAdd an AR5416 PCU DMA stop method, as a check for the AR9130 is needed.
Adrian Chadd [Sat, 28 Apr 2012 03:07:36 +0000 (03:07 +0000)]
Add an AR5416 PCU DMA stop method, as a check for the AR9130 is needed.

The reference driver has a 3ms delay for the AR9130 but I'm not as yet
sure why.  From what I can gather, it's likely waiting for some FIFO
flush to occur.

At some point in the future it may be worthwhile adding a WMAC
FIFO flush here, but that'd require some side-call through to the SoC
DDR flush routines.

Obtained from: Atheros

12 years agoRemove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd.
David E. O'Brien [Sat, 28 Apr 2012 02:48:51 +0000 (02:48 +0000)]
Remove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd.

1. The licensing terms for the MD2 routines from RFC is not under a BSD-like
   license.  Instead it is only granted for non-commercial Internet
   Privacy-Enhanced Mail.
2. MD2 is quite deprecated as it is no longer considered a cryptographically
   strong algorithm.

Discussed with: so (cperciva), core

12 years agoAfter switching mutexes to use lwsync, they no longer provide sufficient
Nathan Whitehorn [Sat, 28 Apr 2012 00:12:23 +0000 (00:12 +0000)]
After switching mutexes to use lwsync, they no longer provide sufficient
guarantees on acquire for the tlbie mutex. Conversely, the TLB invalidation
sequence provides guarantees that do not need to be redundantly applied on
release. Roll a small custom lock that is just right. Simultaneously,
convert the SLB tree changes back to lwsync, as changing them to sync
was a misdiagnosis of the tlbie barrier problem this commit actually fixes.

12 years agoFix the dates and history as of the move to HEAD.
Jamie Gritton [Fri, 27 Apr 2012 23:39:21 +0000 (23:39 +0000)]
Fix the dates and history as of the move to HEAD.

12 years agoIncrease DFLDSIZ from 128 MiB to 32 GiB. On amd64 there's plenty of virtual
Robert Millan [Fri, 27 Apr 2012 22:27:21 +0000 (22:27 +0000)]
Increase DFLDSIZ from 128 MiB to 32 GiB.  On amd64 there's plenty of virtual
memory available, so there is no need to be so conservative about it.

Reviewed by: arch

12 years agoIt was reported via email that some non-FreeBSD NFS servers
Rick Macklem [Fri, 27 Apr 2012 22:23:06 +0000 (22:23 +0000)]
It was reported via email that some non-FreeBSD NFS servers
do not include file attributes in the reply to an NFS create RPC
under certain circumstances.
This resulted in a vnode of type VNON that was not usable.
This patch adds an NFS getattr RPC to nfs_create() for this case,
to fix the problem. It was tested by the person that reported
the problem and confirmed to fix this case for their server.

Tested by: Steven Haber (steven.haber at isilon.com)
MFC after: 2 weeks

12 years agoFix a leak of namei lookup path buffers that occurs when a
Rick Macklem [Fri, 27 Apr 2012 20:23:24 +0000 (20:23 +0000)]
Fix a leak of namei lookup path buffers that occurs when a
ZFS volume is exported via the new NFS server. The leak occurred
because the new NFS server code didn't handle the case where
a file system sets the SAVENAME flag in its VOP_LOOKUP() and
ZFS does this for the DELETE case.

Tested by: Oliver Brandmueller (ob at gruft.de), hrs
PR: kern/167266
MFC after: 1 month

12 years agoAllow building a powerpc cross-kgdb.
Marcel Moolenaar [Fri, 27 Apr 2012 20:16:20 +0000 (20:16 +0000)]
Allow building a powerpc cross-kgdb.

12 years agoAdd a note to hostapd.conf about an unhelpful error message in the hope that
David Chisnall [Fri, 27 Apr 2012 15:35:09 +0000 (15:35 +0000)]
Add a note to hostapd.conf about an unhelpful error message in the hope that
it won't confuse anyone else in the future.

MFC after: 1 week

12 years agoRemove unused structure.
Michael Tuexen [Fri, 27 Apr 2012 13:58:09 +0000 (13:58 +0000)]
Remove unused structure.
Reported by Irene Ruengeler.

MFC after: 3 days

12 years agor234173 missed one instance of FREE(line).
Dag-Erling Smørgrav [Fri, 27 Apr 2012 11:29:09 +0000 (11:29 +0000)]
r234173 missed one instance of FREE(line).

Noticed by: glebius@

12 years agoStyle.
Hans Petter Selasky [Fri, 27 Apr 2012 09:22:46 +0000 (09:22 +0000)]
Style.

Suggested by: dumbbell @

12 years agoFix RAID5 level names changed at r234603.
Alexander Motin [Fri, 27 Apr 2012 08:49:15 +0000 (08:49 +0000)]
Fix RAID5 level names changed at r234603.

12 years agoRemove some of the redundant locking done in the TX completion path,
Adrian Chadd [Thu, 26 Apr 2012 23:57:24 +0000 (23:57 +0000)]
Remove some of the redundant locking done in the TX completion path,
when checking whether BAR frames need to be checked.

12 years agoFix ordering issue. 'make xdev' can fail with -jN because it tries to run the
Warner Losh [Thu, 26 Apr 2012 23:12:52 +0000 (23:12 +0000)]
Fix ordering issue.  'make xdev' can fail with -jN because it tries to run the
xdev-install step while xdev-build is still running.

Submitted by: Ian Lepore

12 years agoClean up the intr* MD KPI from the SMP dependency, removing a cause of
Attilio Rao [Thu, 26 Apr 2012 20:24:25 +0000 (20:24 +0000)]
Clean up the intr* MD KPI from the SMP dependency, removing a cause of
discrepancy between modules and kernel, but deal with SMP differences
within the functions themselves.

As an added bonus this also helps in terms of code readability.

Requested by: gibbs
Reviewed by: jhb, marius
MFC after: 1 week

12 years agoMove sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by
Michael Tuexen [Thu, 26 Apr 2012 19:56:06 +0000 (19:56 +0000)]
Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested by
Konstantin Belousov.

MFC after: 1 week.
X-MFC with: r234715

12 years agoExport symbols for sctp_sendv() and sctp_recvv().
Michael Tuexen [Thu, 26 Apr 2012 19:31:16 +0000 (19:31 +0000)]
Export symbols for sctp_sendv() and sctp_recvv().

MFC after: 1 week

12 years agoUse the .Bx macro instead of BSD
Eitan Adler [Thu, 26 Apr 2012 19:21:58 +0000 (19:21 +0000)]
Use the .Bx macro instead of BSD

Submitted by: ru
Approved by: ru
MFC after: 3 days
X-MFC-With: r234700

12 years agoA new jail(8) with a configuration file, ultimately to replace the work
Jamie Gritton [Thu, 26 Apr 2012 17:36:05 +0000 (17:36 +0000)]
A new jail(8) with a configuration file, ultimately to replace the work
currently done by /etc/rc.d/jail.

MFC after: 3 months

12 years agofix EAP server support after the 0.7.3 import:
Bernhard Schmidt [Thu, 26 Apr 2012 17:35:11 +0000 (17:35 +0000)]
fix EAP server support after the 0.7.3 import:
- eap_xxx.c files have been renamed to eap_server_xxx.c
- additional crypto files are required for some options
- EAP_MD5 and EAP_GTC is now enabled by default to match vendor config
- move each file on its own line to hopefully make further diffs easier
  to read

EAP_SERVER is now enabled by default. Fiddling with HOSTAPD_CFLAGS in
src.conf is no longer required to get a basic WPA-EAP/radius setup
running.

Tested by: Johann Hugo <jhugo at meraka.csir.co.za>
MFC after: 2 weeks