]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r221390: Don't pass empty mount options to nmount(2).
jh [Tue, 17 May 2011 14:50:23 +0000 (14:50 +0000)]
MFC r221390: Don't pass empty mount options to nmount(2).

git-svn-id: svn://svn.freebsd.org/base/stable/8@222026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221585: scsi_cd: silence READ_TOC errors in CDIOREADTOCHEADER ioctl
avg [Tue, 17 May 2011 07:08:53 +0000 (07:08 +0000)]
MFC r221585: scsi_cd: silence READ_TOC errors in CDIOREADTOCHEADER ioctl

git-svn-id: svn://svn.freebsd.org/base/stable/8@222005 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217588+218386 (trasz):
delphij [Mon, 16 May 2011 18:12:32 +0000 (18:12 +0000)]
MFC r217588+218386 (trasz):

Add MNT_NFS4ACLS to ZFS mount flags and make it impossible to clear
the flag by using 'mount -uw'.  It's not conditional, since there
is no way to disable NFSv4 ACLs in ZFS.  This should make it easier
for the NFS server to figure out whether the exported filesystem supports
ACLs or not.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221999 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220416:
zec [Mon, 16 May 2011 12:11:29 +0000 (12:11 +0000)]
MFC r220416:

  Properly unref ng_hub nodes on shutdown, so that we don't leak them.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220630:
dim [Mon, 16 May 2011 07:02:41 +0000 (07:02 +0000)]
MFC r220630:

In r219639, SSSE3 instruction set support was backported to our gcc.

Therefore, we also need to install the new tmmintrin.h header containing
the related intrinsic functions, similar to xmmintrin.h, emmintrin.h,
etc.

Reported by: George Liaskos <geo.liaskos@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@221982 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221644,221645,221652,221656,221658:
ae [Sun, 15 May 2011 16:40:42 +0000 (16:40 +0000)]
MFC r221644,221645,221652,221656,221658:
  Limit number of sectors that can be addressed.

MFC r221647:
  Replace UINT_MAX to UINT32_MAX.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221741: bitcount32: replace lengthy comment with a reference to SWAR
avg [Sun, 15 May 2011 08:17:09 +0000 (08:17 +0000)]
MFC r221741: bitcount32: replace lengthy comment with a reference to SWAR

git-svn-id: svn://svn.freebsd.org/base/stable/8@221947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221740: dtrace: remove unused code
avg [Sun, 15 May 2011 08:15:26 +0000 (08:15 +0000)]
MFC r221740: dtrace: remove unused code

git-svn-id: svn://svn.freebsd.org/base/stable/8@221946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220985:
kib [Sun, 15 May 2011 06:42:32 +0000 (06:42 +0000)]
MFC r220985:
Move some parts of ufs_reclaim() into helper function ufs_prepare_reclaim(),
and call the helper from VOP_RECLAIM and ffs_valloc() to properly prepare
the ufs vnode for reuse.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221121,221173:
attilio [Sun, 15 May 2011 01:08:51 +0000 (01:08 +0000)]
MFC r221121,221173:
- Add the possibility to reuse the already last used timeout when patting
  the watchdog, via the watchdog(9) interface.
- Add the possibility to pat the watchdogs installed via the watchdog(9)
  interface from the kernel.
- Avoid to pass WD_ACTIVE down in the watchdog handlers. All the control
  bit processing should over to the upper layer functions and not passed
  down to the handlers at all.
- Add the watchdogs patting during the (shutdown time) disk syncing and
  disk dumping.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@221939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220456:
attilio [Sun, 15 May 2011 00:47:22 +0000 (00:47 +0000)]
MFC r220456:
Fix several callout migration races.

Tested by: Nicholas Esborn @ DesertNet

git-svn-id: svn://svn.freebsd.org/base/stable/8@221937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r221190,r221205
rmacklem [Sun, 15 May 2011 00:43:51 +0000 (00:43 +0000)]
MFC: r221190,r221205
Fix the new NFS client so that it handles the "nfs_args" value
in mnt_optnew. This is needed so that the old mount(2) syscall
works and that is needed so that amd(8) works. The code was
basically just cribbed from sys/nfsclient/nfs_vfsops.c with minor
changes. This patch is mainly to fix the new NFS client so that
amd(8) works with it. Thanks go to Craig Rodrigues for helping with
this.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r221127
rmacklem [Sun, 15 May 2011 00:25:19 +0000 (00:25 +0000)]
MFC: r221127
This patch is believed to fix a problem in the kernel rpc for
non-interruptible NFS mounts, where a kernel thread will seem
to be stuck sleeping on "rpccon". The msleep() in clnt_vc_create()
that was waiting to a TCP connect to complete would return ERESTART,
since PCATCH was specified. Then the tsleep() in clnt_reconnect_call()
would sleep for 1 second and then try again and again and...
The patch changes the msleep() in clnt_vc_create() so it only sets
the PCATCH flag for interruptible cases.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r221032,r221040,r221066
rmacklem [Sun, 15 May 2011 00:11:00 +0000 (00:11 +0000)]
MFC: r221032,r221040,r221066
Move the files used for a diskless NFS root from sys/nfsclient
to sys/nfs in preparation for them to be used by both NFS
clients. Also, move the declaration of the three global data
structures from sys/nfsclient/nfs_vfsops.c to sys/nfs/nfs_diskless.c
so that they are defined when either client uses them.
Also, make the changes to the experimental NFS client so
that it uses the moved diskless NFS root files and fixes
it so that it links for cases where "options NFS_ROOT" is
not specified for the kernel config.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221475:
dougb [Sat, 14 May 2011 21:42:08 +0000 (21:42 +0000)]
MFC r221475:

1. If PKG_DBDIR cannot be determined from make, set the default
2. Add the -H flag to tar in case /var/db/pkg itself is a symlink
3. Direct stderr to /dev/null to suppress the leading slash warning

git-svn-id: svn://svn.freebsd.org/base/stable/8@221929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221227:
dougb [Sat, 14 May 2011 21:31:18 +0000 (21:31 +0000)]
MFC r221227:

Keep a list of the scripts run before early_late_divider, and use that list
to skip things in the second run.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220039, 220147
marius [Sat, 14 May 2011 21:15:49 +0000 (21:15 +0000)]
MFC: r220039, 220147

- A closer inspection of the OpenSolaris code indicates that the DMA
  syncing for Hummingbird and Sabre bridges should be applied with every
  BUS_DMASYNC_POSTREAD instead of in a wrapper around interrupt handlers
  for devices behind PCI-PCI bridges only as suggested by the documentation
  (code for the latter actually exists in OpenSolaris but is disabled by
  default), which also makes more sense.
- Take advantage of the ofw_pci_setup_device method introduced in r220038
  (MFC'ed to stable/8 in r221923) for disabling bus parking for certain
  EBus bridges in order to work around hardware bugs.
- Mark some unused parameters as such.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220038
marius [Sat, 14 May 2011 21:12:00 +0000 (21:12 +0000)]
MFC: r220038

- Merge the *_SET macros from fire(4) which generally print out the
  register changes when compiled with SCHIZO_DEBUG and take advantage
  of them.
- Add support for the XMITS Fireplane/Safari to PCI-X bridges. I tought
  I'd need this for a Sun Fire 3800, which then turned out to not being
  equipped with such a bridge though. The support for these should be
  complete but given that it hasn't actually been tested probing is
  disabled for now.
  This required a way to alter the XMITS configuration in case a PCI-X
  device is found further down the device tree so the sparc64 specific
  ofw_pci kobj was revived with a ofw_pci_setup_device method, which is
  called by the ofw_pcibus code for every device added.
- A closer inspection of the OpenSolaris code indicates that consistent
  DMA flushing/syncing as well as the block store workaround should be
  applied with every BUS_DMASYNC_POSTREAD instead of in a wrapper around
  interrupt handlers for devices behind PCI-PCI bridges only as suggested
  by the documentation (code for the latter actually exists in OpenSolaris
  but is disabled by default), which also makes more sense.
- Add a workaround for Casinni/Skyhawk combinations. Chances are that
  this solves the crashes seen when using the the on-board Casinni NICs
  of Sun Fire V480 equipped with centerplanes other than 501-6780 or
  501-6790. This also takes advantage of the ofw_pci_setup_device method.
- Mark some unused parameters as such.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221923 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r218930
marius [Sat, 14 May 2011 21:10:13 +0000 (21:10 +0000)]
MFC: r218930

Resurrect ofw_pci_if.m from r178578.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r219785
marius [Sat, 14 May 2011 21:07:51 +0000 (21:07 +0000)]
MFC: r219785

- Make a panic message better reflect the actual problem.
- A closer inspection of the OpenSolaris code indicates the block store
  workaround is only necessary in case of BUS_DMASYNC_POSTREAD.
- Mark some unused parameters as such.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216803, r217058, r217514, r218457
marius [Sat, 14 May 2011 21:03:44 +0000 (21:03 +0000)]
MFC: r216803, r217058, r217514, r218457

On UltraSPARC-III+ and greater take advantage of ASI_ATOMIC_QUAD_LDD_PHYS,
which takes an physical address instead of an virtual one, for loading TTEs
of the kernel TSB so we no longer need to lock the kernel TSB into the dTLB,
which only has a very limited number of lockable dTLB slots. The net result
is that we now basically can handle a kernel TSB of any size and no longer
need to limit the kernel address space based on the number of dTLB slots
available for locked entries. Consequently, other parts of the trap handlers
now also only access the the kernel TSB via its physical address in order
to avoid nested traps, as does the PMAP bootstrap code as we haven't taken
over the trap table at that point, yet. Apart from that the kernel TSB now
is accessed via a direct mapping when we are otherwise taking advantage of
ASI_ATOMIC_QUAD_LDD_PHYS so no further code changes are needed. Most of this
is implemented by extending the patching of the TSB addresses and mask as
well as the ASIs used to load it into the trap table so the runtime overhead
of this change is rather low.
Theoretically it should be possible to use the same approach also for the
user TSB, which already is not locked into the dTLB, avoiding nested traps.
However, for reasons I don't understand yet OpenSolaris only does that with
SPARC64 CPUs. On the other hand I think that also addressing the user TSB
physically and thus avoiding nested traps would get us closer to sharing
this code with sun4v, which only supports trap level 0 and 1, so eventually
we could have a single kernel which runs on both sun4u and sun4v (as does
Linux and OpenBSD).

git-svn-id: svn://svn.freebsd.org/base/stable/8@221918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r221341, r221713
marius [Sat, 14 May 2011 20:51:17 +0000 (20:51 +0000)]
MFC: r221341, r221713

- Probe the PHY accompanying BCM57765.
- Recognize BCM5719C PHY.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218229.
hselasky [Sat, 14 May 2011 12:25:33 +0000 (12:25 +0000)]
MFC r218229.
Fix for detection of MTK 3329 GPS USB devices.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221604.
hselasky [Sat, 14 May 2011 12:11:17 +0000 (12:11 +0000)]
MFC r221604.
Minor usbdump update:
- Improve exit error codes and update displayed usage text.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221882 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221695.
hselasky [Sat, 14 May 2011 12:06:00 +0000 (12:06 +0000)]
MFC r221695.
Workaround for broken no-name USB audio devices sold by dealextreme
called "3D sound" and the alike when using duplex audio.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221881 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218791 and r218988.
hselasky [Sat, 14 May 2011 12:02:03 +0000 (12:02 +0000)]
MFC r218791 and r218988.
USB MIDI related changes and improvements.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221880 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r221014,r221018
rmacklem [Sat, 14 May 2011 02:28:21 +0000 (02:28 +0000)]
MFC: r221014,r221018
Modify the experimental NFS client so that it uses the same
"struct nfs_args" as the regular NFS client. This is needed
so that the old mount(2) syscall will work and it makes
sharing of the diskless NFS root code easier. Eary in the
porting exercise I introduced a new revision of nfs_args, but
didn't actually need it, thanks to nmount(2). I re-introduced the
NFSMNT_KERB flag, since it does essentially the same thing and
the old one would not have been used because it never worked.
I also added a few new NFSMNT_xxx flags to sys/nfsclient/nfs_args.h
that are used by the experimental NFS client.
Also fix the NFS client so that it doesn't bogusly set the
f_flags argument of "struct statfs",

git-svn-id: svn://svn.freebsd.org/base/stable/8@221871 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221201
mav [Sat, 14 May 2011 00:45:35 +0000 (00:45 +0000)]
MFC r221201
Make CAM_DEBUG_CDB also dump ATA commands in addition to SCSI.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220830:
mav [Sat, 14 May 2011 00:39:46 +0000 (00:39 +0000)]
MFC r220830:
Fix some English grammar.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221865 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220829:
mav [Sat, 14 May 2011 00:35:56 +0000 (00:35 +0000)]
MFC r220829:
According to specification. device should respond to COMRESET with COMINIT
in no more then 10ms. If we detected no device presence within that time,
there is no reason to wait longer.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221864 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221474, r221477 (packet filter/steer/switch, timestamps)
np [Fri, 13 May 2011 22:48:44 +0000 (22:48 +0000)]
MFC r221474, r221477 (packet filter/steer/switch, timestamps)

r221474:
T4 packet filtering/steering.

- Enable 5-tuple and every-packet lookup.

- Setup the default filter mode to allow filtering/steering based on IP
  protocol, ingress port, inner VLAN ID, IP frag, FCoE, and MPS match
  type; all combined together.  You can also filter based on MAC index,
  Ethernet type, IP TOS/IPv6 Traffic Class, and outer VLAN ID but you'll
  have to modify the default filter mode and exclude some of the
  match-fields in it.

  IPv4 and IPv6 SIP/DIP/SPORT/DPORT are always available in all filter
  rules.

- Add driver ioctls to get/set the global filter mode.

- Add driver ioctls to program and delete hardware filters.  A couple of
  the "switch" actions that rewrite Ethernet and VLAN information and
  switch the packet out of another port may not work as the L2 code is not
  yet in place.  Everything else, including all "drop" and "pass" rules
  with RSS or absolute qid, should work.

r221477:
T4 packet timestamps.

Reference code that shows how to get a packet's timestamp out of
cxgbe(4).  Disabled by default because we don't have a standard way
today to pass this information up the stack.

The timestamp is 60 bits wide and each increment represents 1 tick of
the T4's core clock.  As an example, the timestamp granularity is ~4.4ns
for this card:

# sysctl dev.t4nex.0.core_clock
dev.t4nex.0.core_clock: 228125

git-svn-id: svn://svn.freebsd.org/base/stable/8@221861 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221464:
np [Fri, 13 May 2011 21:25:14 +0000 (21:25 +0000)]
MFC r221464:
Always re-arm an iq's interrupt before leaving the handler.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221859 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: 197075, 209442, 213781: Various fixes for MODULES_WITH_WORLD
imp [Fri, 13 May 2011 18:20:24 +0000 (18:20 +0000)]
MFC: 197075, 209442, 213781: Various fixes for MODULES_WITH_WORLD

    r197075 | n_hibma | 2009-09-10 13:12:08 -0600 (Thu, 10 Sep 2009) | 4 lines
    Missing opt_*.h file reference for make depend in sys/modules

    r209442 | thompsa | 2010-06-22 14:52:35 -0600 (Tue, 22 Jun 2010) | 4 lines
    Add missing opt_compat.h dependency.

    r213781 | rpaulo | 2010-10-13 08:44:38 -0600 (Wed, 13 Oct 2010) | 2 lines
    Add opt_compat.h to SRCS.

PR: 138341

git-svn-id: svn://svn.freebsd.org/base/stable/8@221849 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221521:
ae [Fri, 13 May 2011 09:52:04 +0000 (09:52 +0000)]
MFC r221521:
  Convert delay parameter back to ms when reporting to user.

  PR: 156838

git-svn-id: svn://svn.freebsd.org/base/stable/8@221831 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221504:
mav [Thu, 12 May 2011 01:46:20 +0000 (01:46 +0000)]
MFC r221504:
Add PCI ID for Marvell 88SE9182 -- PCIe 2.x x2 relative of the 88SE912x.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFH r221714:
mlaier [Thu, 12 May 2011 01:22:23 +0000 (01:22 +0000)]
MFH r221714:
 Another long standing vm bug found at Isilon:
  Fix a race between vm_object_collapse and vm_fault.

 Reviewed by: alc@

git-svn-id: svn://svn.freebsd.org/base/stable/8@221795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221448
emax [Wed, 11 May 2011 19:06:09 +0000 (19:06 +0000)]
MFC r221448

Encode horizontal scroll events (AC Pan) as button presses (bit 5 and 6)

Submitted by: David Demelier demelier dot david at gmail dot com

git-svn-id: svn://svn.freebsd.org/base/stable/8@221787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoPartially revert previous commit - WARNS does not default to 6 as in head.
des [Wed, 11 May 2011 09:56:31 +0000 (09:56 +0000)]
Partially revert previous commit - WARNS does not default to 6 as in head.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoSync with head: WARNS, static linking.
des [Wed, 11 May 2011 09:50:34 +0000 (09:50 +0000)]
Sync with head: WARNS, static linking.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix broken mergeinfo.
des [Wed, 11 May 2011 09:48:15 +0000 (09:48 +0000)]
Fix broken mergeinfo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221767 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoSync with head: proxy authentication, SSL hang, cached connection crash.
des [Wed, 11 May 2011 09:42:40 +0000 (09:42 +0000)]
Sync with head: proxy authentication, SSL hang, cached connection crash.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221429: In ncl_printf(), call vprintf() instead of printf().
ru [Wed, 11 May 2011 07:39:08 +0000 (07:39 +0000)]
MFC r221429: In ncl_printf(), call vprintf() instead of printf().

git-svn-id: svn://svn.freebsd.org/base/stable/8@221760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221436:
ru [Wed, 11 May 2011 07:33:06 +0000 (07:33 +0000)]
MFC r221436:

Implemented a mount option "nocto" that disables cache coherency
checking at open time.  It may improve performance for read-only
NFS mounts.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221593,221601: whitespace nits
avg [Wed, 11 May 2011 05:53:16 +0000 (05:53 +0000)]
MFC r221593,221601: whitespace nits

git-svn-id: svn://svn.freebsd.org/base/stable/8@221757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221452,221453:
ae [Wed, 11 May 2011 04:53:56 +0000 (04:53 +0000)]
MFC r221452,221453:
  Remove unneeded code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221447:
ae [Wed, 11 May 2011 04:48:03 +0000 (04:48 +0000)]
MFC r221447:
  Remove "for a moment" assignment. struct g_geom zeroed when allocated.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221446:
ae [Wed, 11 May 2011 04:46:33 +0000 (04:46 +0000)]
MFC r221446:
  Remove unneeded checks, g_new_xxx functions can not fail.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoSupply the correct size of the softc. This is a direct commit to stable/8
marius [Tue, 10 May 2011 18:43:18 +0000 (18:43 +0000)]
Supply the correct size of the softc. This is a direct commit to stable/8
as in head the problem is no longer present as of r221407 but that revision
can't be MFC'ed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221373: Properly detect interface's state in the LINK_STATE_UNKNOWN case.
ru [Tue, 10 May 2011 05:33:37 +0000 (05:33 +0000)]
MFC r221373: Properly detect interface's state in the LINK_STATE_UNKNOWN case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221372: Don't call -f option's argument "stdin".
ru [Tue, 10 May 2011 05:30:06 +0000 (05:30 +0000)]
MFC r221372: Don't call -f option's argument "stdin".

git-svn-id: svn://svn.freebsd.org/base/stable/8@221723 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221270
thompsa [Tue, 10 May 2011 02:58:08 +0000 (02:58 +0000)]
MFC r221270

 LACP frames must not be send VLAN-tagged, check for that before processing.

PR: kern/156743
Submitted by: Dmitrij Tejblum

git-svn-id: svn://svn.freebsd.org/base/stable/8@221721 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221023:
attilio [Mon, 9 May 2011 18:29:48 +0000 (18:29 +0000)]
MFC r221023:
Add the possibility to verify MD5 hash of incoming TCP packets.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@221705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220925,221015,221016:
attilio [Mon, 9 May 2011 18:05:13 +0000 (18:05 +0000)]
MFC r220925,221015,221016:
- Define new registers offsets
- Add toggling functions for SMI default setting

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@221704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214221, r216072 and r214809.
hselasky [Sun, 8 May 2011 08:17:16 +0000 (08:17 +0000)]
MFC r214221, r216072 and r214809.
Make configuration of USB stack more flexible.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221516:
np [Sun, 8 May 2011 06:25:50 +0000 (06:25 +0000)]
MFC r221516:
Bump up the number of egress queues that the driver is allowed to use.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC overview:
n_hibma [Sat, 7 May 2011 22:20:01 +0000 (22:20 +0000)]
MFC overview:
- Fix busg in events provided to devd from the USB stack.
- Provide more info on the u3g devices that attached.
- Make the ucom device numbering more sane.

MFC r214429

Add support for setting per-interface PnP information.

MFC r214761

- Simplify the way unit/subunit allocation is done in ucom.
- hw.usb.ucom.cons_unit is now split into
  hw.usb.ucom.cons_unit/...cons_subunit.

  Note: The tunable/sysctl hw.usb.ucom.cons_unit needs to be reviewed if

  a) a console was defined a USB serial devices, and a USB device with
  more than 1 subunit is present, and this device is attached before the
  device functioning as a console

  or

  b) a console was defined on a USB device with more than 1 subunit

MFC r214809

  Don't terminate the notification with \n. This is done in
  usb_device.c:devctl_notify_f().

MFC r214830

Bugfix: Move the 'at <location string' to the beginning of the attach
notification. devd would stop evaluating at 'at' (not '<k>=<v>') and
hence prevent 'port=X' (and 'bus=<"on" string>) from making it into the
environment for the devd action.

MFC r214831

- Remove an unused entry from the softc (only used in a debugging printf).
- Fix the loop count on detach (causing a panic on detaching a serial
  dongle).
- Increase a buffer in case some driver want extra long tty device names
  (postfixing the purpose of the tty for example, e.g. u3g.ppp).

MFC r214843

Implement ucom_set_pnpinfo_usb() providing ttyname and port number
information through devd. My E220 now produces the notification (1 line):

        +u3g0 at bus=1 hubaddr=1 port=0 devaddr=2 interface=0 \
        vendor=0x12d1 product=0x1003 devclass=0x00 devsubclass=0x00 \
        sernum="" release=0x0000 intclass=0xff intsubclass=0xff \
        ttyname=U0 ttyports=2 on uhub0

Note: serial/ufoma and net/uhso still provide port number and tty name
(uhso only) information through sysctls, which should now be removed.

MFC r214919

Bugfix: Set the bit that marks a device number in use.
This would cause a panic when disconnecting the second serial device.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216719:
kaiw [Sat, 7 May 2011 10:35:43 +0000 (10:35 +0000)]
MFC r216719:

Document the syntax accepted by the `-M` option.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216717:
kaiw [Sat, 7 May 2011 10:33:59 +0000 (10:33 +0000)]
MFC r216717:

Improve the description of the `-q` option.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221591 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216716:
kaiw [Sat, 7 May 2011 10:32:52 +0000 (10:32 +0000)]
MFC r216716:

* Add mention of the `-f`, `-q`, `-S`, and `-V` options in the synopsis
  section.
* Document the `-l`, `-M` and `-S` options.
* Improve the text describing the behavior of the `-r` option.
* Start a section on standard compliance.
* Indicate in the synopsis that the `-S` and `-s` options are mutually
  exclusive.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216014:
kaiw [Sat, 7 May 2011 10:31:34 +0000 (10:31 +0000)]
MFC r216014:

Add option -D for ranlib(1). When -D is speicified, ranlib(1) will generate
a deterministic archive symbol table (i.e. timestamp for the symbol table
member header is set to 0).

Submitted by:    Erik Cederstrand

git-svn-id: svn://svn.freebsd.org/base/stable/8@221589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213643 (kientzle):
kaiw [Sat, 7 May 2011 10:27:23 +0000 (10:27 +0000)]
MFC r213643 (kientzle):

Add -D (deterministic) option to ar.
When set, it forces all timestamps and owners to zero and
modes to 0644.  Useful for producing libraries that are
bitwise identical across multiple build runs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221588 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208189:
kaiw [Sat, 7 May 2011 10:23:07 +0000 (10:23 +0000)]
MFC r208189:

Removed ar(1)'s support for compressed archives. This change removes
ar(1)'s dependencies on compressor libraries -lz, -lbz2 and -llzma and
fixes building HEAD on some versions of FreeBSD[78]. Option -j and -z
is now accepted but ignored.

Compressed ar(1) archives are not useful without a ld(1) that can read
them. Also, the current ar(1) compression scheme prevents random
access of archive members and needs to be redesigned anyway.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221587 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r201166 (kientzle):
kaiw [Sat, 7 May 2011 10:08:01 +0000 (10:08 +0000)]
MFC r201166 (kientzle):

ar only needs to support ar format.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221586 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221388: SNDCTL_DSP_GETIPTR: set pointer to sndbuf_getfreeptr()
avg [Sat, 7 May 2011 09:26:11 +0000 (09:26 +0000)]
MFC r221388: SNDCTL_DSP_GETIPTR: set pointer to sndbuf_getfreeptr()

git-svn-id: svn://svn.freebsd.org/base/stable/8@221583 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 198441 [1]:
gjb [Sat, 7 May 2011 03:29:22 +0000 (03:29 +0000)]
MFC 198441 [1]:

manlint fixes.

Reported by: manlint
Obtained from: rpaulo [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@221576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 205076 [1]:
gjb [Sat, 7 May 2011 03:09:16 +0000 (03:09 +0000)]
MFC 205076 [1]:

manlint fixes.

Reported by: manlint
Obtained from: uqs [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@221575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 205076 [1], 209034 [1], 211406 [2]:
gjb [Sat, 7 May 2011 02:37:34 +0000 (02:37 +0000)]
MFC 205076 [1], 209034 [1], 211406 [2]:

manlint fixes.

Reported by: manlint
Obtained from: uqs[1], joel[2]

git-svn-id: svn://svn.freebsd.org/base/stable/8@221572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220967
rmacklem [Sat, 7 May 2011 02:00:35 +0000 (02:00 +0000)]
MFC: r220967
Fix a LOR in vfs_busy() where, after msleeping, it would lock
the mutexes in the wrong order for the case where the
MBF_MNTLSTLOCK is set. I believe this did have the
potential for deadlock. For example, if multiple nfsd threads
called vfs_busyfs(), which calls vfs_busy() with MBF_MNTLSTLOCK.
Thanks go to pho for catching this during his testing.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218422:
n_hibma [Fri, 6 May 2011 22:07:31 +0000 (22:07 +0000)]
MFC r218422:

 Curitel UM150 needs a quirk to stop it from detaching straight after
 attach (resetting actually).

git-svn-id: svn://svn.freebsd.org/base/stable/8@221556 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217637,218178
n_hibma [Fri, 6 May 2011 21:09:33 +0000 (21:09 +0000)]
MFC r217637,218178

 Add another ID for the ZTE MF190 Surf Stick
 New ID for the Novatel MC547

git-svn-id: svn://svn.freebsd.org/base/stable/8@221553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216962
marius [Fri, 6 May 2011 20:04:47 +0000 (20:04 +0000)]
MFC: r216962

Inherit the APB and the generic OFW PCI-PCI bridge driver from the generic
PCI-PCI bridge driver in order to safe some code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221547 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r221343
marius [Fri, 6 May 2011 20:02:23 +0000 (20:02 +0000)]
MFC: r221343

Fix an logic bug which caused jumbo buffers to not be synced and unloaded.
Reported and tested by: Michael Moll

git-svn-id: svn://svn.freebsd.org/base/stable/8@221544 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221401:
delphij [Fri, 6 May 2011 18:40:51 +0000 (18:40 +0000)]
MFC r221401:

Fix prototype for ffsll(3) and fls(3).

PR: docs/156796
Submitted by: Jean-Yves Migeon <jeanyves.migeon free.fr>

git-svn-id: svn://svn.freebsd.org/base/stable/8@221538 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220198:
fabient [Fri, 6 May 2011 14:05:32 +0000 (14:05 +0000)]
MFC r220198:
Clearing the flag when preempting will let the preempted thread run
too much time. This can finish in a scheduler deadlock with ping-pong
between two threads.

One sample of this is:
 - device lapic (to have a preemption point on critical_exit())
 - options DEVICE_POLLING with HZ>1499 (to have lapic freq = hardclock freq)
 - running a cpu intensive task (that does not enter the kernel)
 - only one CPU on SMP or no SMP.

As requested by jhb@ 4BSD have received the same type of fix instead of
propagating the flag to the new thread.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220206:
fabient [Fri, 6 May 2011 13:24:10 +0000 (13:24 +0000)]
MFC r220206:
Optimisation in IPSEC(4):
 - Remove contention on ISR during the crypto operation by using rwlock(9).
 - Remove a second lookup of the SA in the callback.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220194:
fabient [Fri, 6 May 2011 13:12:45 +0000 (13:12 +0000)]
MFC r220194:
Fix two SA refcount:
 - AH does not release the SA like in ESP/IPCOMP when handling EAGAIN
 - ipsec_process_done incorrectly release the SA.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220903: sh: Do not word split "${#parameter}".
jilles [Fri, 6 May 2011 12:49:32 +0000 (12:49 +0000)]
MFC r220903: sh: Do not word split "${#parameter}".

This is only a problem if IFS contains digits, which is unusual but valid.

Because of an incorrect fix for PR bin/12137, "${#parameter}" was treated
as ${#parameter}. The underlying problem was that "${#parameter}"
erroneously added CTLESC bytes before determining the length. This
was properly fixed for PR bin/56147 but the incorrect fix was not backed
out.

Reported by: Seeker on forums.freebsd.org

git-svn-id: svn://svn.freebsd.org/base/stable/8@221522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221012: sh: Check setuid()/setgid() return values.
jilles [Thu, 5 May 2011 22:07:02 +0000 (22:07 +0000)]
MFC r221012: sh: Check setuid()/setgid() return values.

If the -p option is turned off, privileges from a setuid or setgid binary
are dropped. Make sure to check if this succeeds. If it fails, this is an
error which will cause the shell to abort except in interactive mode or if
'command' was used to make 'set' or an outer 'eval' or '.' non-special.

Note that taking advantage of this feature and writing setuid shell scripts
seems unwise.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221515 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221011: sh: Remove duplicate code resetting uid/gid for set +p/
jilles [Thu, 5 May 2011 22:04:59 +0000 (22:04 +0000)]
MFC r221011: sh: Remove duplicate code resetting uid/gid for set +p/
+o privileged.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221514 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221074, r221075, r221076, r221078:
trociny [Thu, 5 May 2011 18:50:52 +0000 (18:50 +0000)]
MFC r221074, r221075, r221076, r221078:

r221074:

Fix assert messages.

r221075:

For conversation between hastctl and hastd we should use HASTCTL_CMD
defines.

r221076:

Rename HASTCTL_ defines, which are used for conversation between main
hastd process and workers, remove unused one and set different range
of numbers. This is done in order not to confuse them with HASTCTL_CMD
defines, used for conversation between hastctl and hastd, and to avoid
bugs like the one fixed in r221075.

r221078:

Add missing ifdef. This fixes build with NO_OPENSSL.

Reported by: Pawel Tyll <ptyll@nitronet.pl>

Approved by: pjd (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@221507 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220928
rmacklem [Thu, 5 May 2011 14:19:37 +0000 (14:19 +0000)]
MFC: r220928
Remove the nm_mtx mutex locking from the test for
nm_maxfilesize. This value rarely, if ever, changes
and the nm_mtx mutex is locked/unlocked earlier in
the function, which should be sufficient to avoid
getting a stale cached value for it. There is a
discussion w.r.t. what these tests should be, but
I've left them basically the same as the regular
NFS client for now.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221335:
delphij [Thu, 5 May 2011 12:52:05 +0000 (12:52 +0000)]
MFC r221335:

Correct a typo.  According to Intel document 318914, the Tj(max) for Core 2
Duo Mobile CPUs should be 105.

Noticed by: Mark Johnston <markjdb gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@221493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220877
rmacklem [Wed, 4 May 2011 01:39:44 +0000 (01:39 +0000)]
MFC: r220877
Modify the offset + size checks for read and write in the
experimental NFS client to take care of overflows for the calls
above the buffer cache layer in a manner similar to r220876.
Thanks go to dillon at apollo.backplane.com for providing the
snippet of code that does this.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220876
rmacklem [Wed, 4 May 2011 01:24:03 +0000 (01:24 +0000)]
MFC: r220876
Modify the offset + size checks for read and write in the
experimental NFS client to take care of overflows. Thanks
go to dillon at apollo.backplane.com for providing the
snippet of code that does this.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221049: Stop zeroing UFS1 superblocks if we fall off the end of the
cperciva [Tue, 3 May 2011 16:36:39 +0000 (16:36 +0000)]
MFC r221049: Stop zeroing UFS1 superblocks if we fall off the end of the
disk, in order to avoid wasting time (potentially many hours) in the event
that we find a partially-overwritten UFS1 superblock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220832:
ae [Tue, 3 May 2011 11:07:46 +0000 (11:07 +0000)]
MFC r220832:
  Add sysctl handlers for net.inet.ip.dummynet.hash_size, .pipe_byte_limit
  and .pipe_slot_limit oids to prevent to set incorrect values.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206428 (by luigi):
ae [Tue, 3 May 2011 11:00:31 +0000 (11:00 +0000)]
MFC r206428 (by luigi):
    This commit enables partial operation of dummynet with kernels
    compiled with "options VIMAGE".
    As it is now, there is still a single instance of the pipes,
    and it is only usable from vnet0 (the main instance).
    Trying to use a pipe from a different vimage does not crash
    the system as it did before, but the traffic coming out from
    the pipe goes to the wrong place, and i still need to
    figure out where.

    Support for per-vimage pipes is almost there (just a matter of
    uncommenting the VNET_* definitions for dn_cfg, plus putting into
    the structure the remaining static variables), however i need
    first to figure out how init/uninit work, and also to understand
    where packets are ending up on exit from a pipe.

    In summary: vimage support for dummynet is not complete yet,
    but we are getting there.

MFC r206461 (by bz):
    Try to help with a virtualized dummynet after r206428.

    This adds the explicit include (so far probably included through one of the
    few "hidden" includes in other header files) for vnet.h and adds a cast
    to unbreak LINT-VIMAGE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219955: It's possible to unmount multiple items at once, make it clear.
ru [Tue, 3 May 2011 10:01:08 +0000 (10:01 +0000)]
MFC r219955: It's possible to unmount multiple items at once, make it clear.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219958: Discourage from using "cp -r".
ru [Tue, 3 May 2011 09:59:33 +0000 (09:59 +0000)]
MFC r219958: Discourage from using "cp -r".

git-svn-id: svn://svn.freebsd.org/base/stable/8@221370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221282:
mm [Tue, 3 May 2011 08:39:57 +0000 (08:39 +0000)]
MFC r221282:

Add ChangeLog.gcc43 for backported changes from gcc 4.3

git-svn-id: svn://svn.freebsd.org/base/stable/8@221368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221119:
pluknet [Tue, 3 May 2011 07:24:47 +0000 (07:24 +0000)]
MFC r221119:
Fix typo in "continuously" argument used in patrol auto command.

Unlike the version in head, this one preserves a misspelled version.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218360 (by luigi):
ae [Tue, 3 May 2011 05:42:50 +0000 (05:42 +0000)]
MFC r218360 (by luigi):
    correct the 'output_time' of packets generated by dummynet.
    In the dec.2009 rewrite I introduced a bug, using for the
    computation the arrival time instead of the time the packet
    has exited from the queue.
    The bandwidth computation was still correct because it is
    computed elsewhere, but traffic was sent out in bursts.

    The bug is also present in RELENG_8 after dec.2009

    Thanks to Daikichi Osuga for investingating, finding and fixing the
    bug with detailed graphs of the behaviour before and after the fix.

    Submitted by: Daikichi Osuga

git-svn-id: svn://svn.freebsd.org/base/stable/8@221360 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220831:
ae [Tue, 3 May 2011 05:09:02 +0000 (05:09 +0000)]
MFC r220831:
  ipdn_bound_var() function is designed to bound a variable between
  specified minimum and maximum. In case when specified default value
  is out of bounds it does not work as expected and does not limit
  variable. Check that default value is in range and limit it if needed.
  Also bump max_hash_size value to 65536 to correspond with manual page.

  PR: kern/152887

git-svn-id: svn://svn.freebsd.org/base/stable/8@221359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220875
rmacklem [Tue, 3 May 2011 01:55:27 +0000 (01:55 +0000)]
MFC: r220875
Add stablerestart(5) to the See Also list for nfsd.8.
This is a content change.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220810
rmacklem [Tue, 3 May 2011 01:19:39 +0000 (01:19 +0000)]
MFC: r220810
Fix up handling of the nfsmount structure in read and write
within the experimental NFS client. Mostly add mutex locking
and use the same rsize, wsize during the operation by keeping
a local copy of it. This is another change that brings it
closer to the regular NFS client.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220368:
yongari [Mon, 2 May 2011 22:49:43 +0000 (22:49 +0000)]
MFC r220368:
  Add initial jumbo frame support for BCM5714/BCM5715 and BCM5780.
  Unlike other controllers which have more advanced jumbo support,
  these controllers have one send ring, one standard receive producer
  ring and one receive return ring. In order to receive jumbo frames
  on the controllers, driver now will increase Rx buffer size to 9k.
  Two Rx modes are supported on these controllers and I chose
  standard Rx BDs over extended Rx BDs. The extended Rx BD mode
  allows up to 4 segmentations for each Rx BDs such that kernel does
  not have to allocate large buffer of contiguous memory for
  receiving. The extended Rx BD mode is already used on controllers
  that have separate jumbo receive ring. However, using extended Rx
  BDs on BCM5714/BCM5715/BCM5780 reduces the number of Rx BDs to 256
  entries which in turn may reduce the performance.  Also UMA backed
  page allocator for jumbo frame returns contiguous memory so using
  extended Rx BD has no advantage on FreeBSD unless highly customized
  local allocator implemented in driver is used.
  To use jumbo buffers in standard receive ring, Rx buffer allocation
  handler was changed to allocate MJUM9BYTES sized mbuf.

  PR: kern/155192
  Tested by: Vijay Singh <vijju.singh <> gmail dot com>
  Submitted by: mjacob (initial version)

git-svn-id: svn://svn.freebsd.org/base/stable/8@221351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216461:
jh [Mon, 2 May 2011 13:58:40 +0000 (13:58 +0000)]
MFC r216461:

- Assert that dm_lock is exclusively held in devfs_rules_apply() and
  in devfs_vmkdir() while adding the entry to de_list of the parent.
- Apply devfs rules to newly created directories and symbolic links.

PR: kern/125034

git-svn-id: svn://svn.freebsd.org/base/stable/8@221323 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220764
rmacklem [Mon, 2 May 2011 01:01:03 +0000 (01:01 +0000)]
MFC: r220764
Add a vput() to nfs_lookitup() in the experimental NFS client
for a case that will probably never happen. It can only
happen if a server were to successfully lookup a file, but not
return attributes for that file. Although technically allowed
by the NFSv3 RFC, I doubt any server would ever do this.
However, if it did, the client would have not vput()'d the
new vnode when it needed to do so.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220763
rmacklem [Mon, 2 May 2011 00:49:47 +0000 (00:49 +0000)]
MFC: r220763
Add vput() calls in two places in the experimental NFS client
that would be needed if, in the future, nfscl_loadattrcache()
were to return an error. Currently nfscl_loadattrcache()
never returns an error, so these cases never currently happen.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221310 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220762
rmacklem [Sun, 1 May 2011 03:16:13 +0000 (03:16 +0000)]
MFC: r220762
Change the mutex locking for several locations in the
experimental NFS client's vnode op functions to make
them compatible with the regular NFS client. I'll admit
I'm not sure that the mutex locks around the assignments
are needed, but the regular client has them, so I added them.
Also, add handling of the case of partial attributes in
setattr to be compatible with the regular client.

git-svn-id: svn://svn.freebsd.org/base/stable/8@221294 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f