Backward compatibility fix: treat cmds loaded as a script as nonInteractive


git-svn-id: svn://svn.freebsd.org/base/head@245695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Force inetd to have listen queue size to be set to the value of
  kern.ipc.somaxconn instead of hardcoded value 64.

Submitted by:	Andrey Ignatov <rdna@rdna.ru>
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@245696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs/sparc64 boot: fix booting after r242230

arch_zfs_probe method is supposed to only probe for ZFS vdevs, but it can
not expect that ZFS data is in a ready state yet.
So, move some code from sparc64_zfs_probe to main to meet the constraints.

Reported by:	Chris Ross <cross+freebsd@distal.com>
Tested by:	Chris Ross <cross+freebsd@distal.com>
MFC after:	4 days


git-svn-id: svn://svn.freebsd.org/base/head@245697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Move some stackmarks to fix high memory usage in some loops.

If a loop contained certain commands (such as redirected compound commands),
the temporary memory for the redirection was not freed between iterations of
the loop but only after the loop.

Put a stackmark in evaltree(), freeing memory whenever a node has been
evaluated. Some other stackmarks are then redundant; remove them.

Example:
  while :; do { :; } </dev/null; done


git-svn-id: svn://svn.freebsd.org/base/head@245698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change the $ENV example to use .shrc instead of .shinit. This is consistent
with what we use in /usr/share/skel/dot.profile.

Discussed with: jilles


git-svn-id: svn://svn.freebsd.org/base/head@245699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a simple scripted partitioner. Documentation and more scripting support
will come soon. This lets the install process have a line like:

bsdinstall scriptedpart 'ada0 GPT {1.5G freebsd-ufs /, 10G freebsd-swap,
    auto freebsd-ufs /usr}'

to set up a system with a 1.5GB /, some swap space, and a /usr using the
rest of ada0.

MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@245700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
If no partition configuration is specified in {}, use the automatic setup
the interactive installer uses.

Example: bsdinstall scriptedpart ada0
Result: Use entire disk for a FreeBSD system with default partition layout


git-svn-id: svn://svn.freebsd.org/base/head@245701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a scripting frontend. Documentation and release(7) support coming later.

Scripts take the form:

------------------------------------
PARTITIONS=ada0
DISTRIBUTIONS="kernel.txz base.txz ports.txz"

#!/bin/sh
echo "sshd_enable=YES" >> /etc/rc.conf
pkg add puppet
echo "System setup complete"
------------------------------------

The second part of the script (beginning with #!) is run in the newly
installed system after the installation onto ada0 (with default partitioning,
see scriptedpart for more complicated scenarios) is complete.


git-svn-id: svn://svn.freebsd.org/base/head@245702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use correct size for AM335x CPSW memory window.


git-svn-id: svn://svn.freebsd.org/base/head@245703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Postpone vmm module initialization until after SMP is initialized - particularly
that 'smp_started != 0'.

This is required because the VT-x initialization calls smp_rendezvous()
to set the CR4_VMXE bit on all the cpus.

With this change we can preload vmm.ko from the loader.

Reported by:	alfred@, sbruno@
Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@245704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add command-line support to kgdb to allow the baudrate to be set.

This allows a remote session to be specified with '-r' as well as a
non-default baudrate setting using '-b'.

TODO: add to the kgdb manpage.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@245705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
More automated install support: if a script exists at /etc/installerconfig,
point the installer there and then reboot without asking questions. This
design subject to future change.


git-svn-id: svn://svn.freebsd.org/base/head@245706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove some debugging code that snuck in.


git-svn-id: svn://svn.freebsd.org/base/head@245707 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Migrate CLRDMASK to be a per-node flag, rather than a per-TID flag.

This is easily possible now that the TX is protected by a single
lock, rather than a per-TXQ (and thus per-TID) lock.

Only set CLRDMASK if none of the destinations are filtered.
This likely will need some tuning when it comes time to do UASPD/PS-POLL
TX, however at that point it should be manually set anyway.

Tested:

* AR9280, STA mode

TODO:

* More thorough testing in AP mode
* test other chipsets, just to be safe/sure.


git-svn-id: svn://svn.freebsd.org/base/head@245708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix packet reception and other issues arising from incorrect ASX clock
configuration on the physical ports of the Ubiquiti EdgeRouter Lite.


git-svn-id: svn://svn.freebsd.org/base/head@245712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add new quirk and correct old one.

PR:		usb/175454
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@245725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix this routine to acutally break out and not set clrdmask if any
of the TIDs are currently marked as "filtered."


git-svn-id: svn://svn.freebsd.org/base/head@245739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Get rid of redundant 'table_size' field in struct pi_msix. If needed it can
always be calculated from the number of entries in the MSI-X table.

Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@245740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
If lagg(4) can't forward a packet due to underlying port problems,
return much more meaningful ENETDOWN to the stack, instead of EBUSY.


git-svn-id: svn://svn.freebsd.org/base/head@245741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo and simplify condition.

Submitted by:	Christoph Mallon <christoph dot mallon at gmx dot de>


git-svn-id: svn://svn.freebsd.org/base/head@245742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f