Remove whitespace.


git-svn-id: svn://svn.freebsd.org/base/head@241479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In ip_stripoptions():
  - Remove unused argument and incorrect comment.
  - Fixup ip_len after stripping.


git-svn-id: svn://svn.freebsd.org/base/head@241480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert fixup of ip_len from r241480. Now stack isn't yet
ready for that change.


git-svn-id: svn://svn.freebsd.org/base/head@241481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Be more explicit on how "intact" incoming packets in raw sockets are.


git-svn-id: svn://svn.freebsd.org/base/head@241482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use CLOCK_UPTIME to get the uptime.


git-svn-id: svn://svn.freebsd.org/base/head@241484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Protect xpt_getattr() calls with the SIM lock and assert that.

Submitted by:	ken@ (earlier version)


git-svn-id: svn://svn.freebsd.org/base/head@241485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Get SIM lock in several places while calling CAM functions.
This fixes several use-after-free panics on systems with SAS enclosures.

Submitted by:	ken@, mav@


git-svn-id: svn://svn.freebsd.org/base/head@241488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix type in last commit.

Submitted by:	brueffer


git-svn-id: svn://svn.freebsd.org/base/head@241491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add locking to adv(4) driver and mark it MPSAFE.
- Disable the support for the second channel on twin-channel EISA cards as
  the current incarnation can't possibly work correctly (it hasn't worked
  since switching to new-bus where new-bus allocates the softc).  If anyone
  bothers to test this again it can be fixed properly and brought back.
- Use device_printf() and device_get_nameunit() instead of adv_name().
- Remove use of explicit bus space handles and tags.
- Use PCI bus accessors and helper routines rather than accessing
  config registers directly.
- Handle failures from adv_attach().

Tested by:	no one (hope it works)


git-svn-id: svn://svn.freebsd.org/base/head@241492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use global knob in the TP_PARA_REG3 register to disable congestion
drops if the user has chosen this behaviour.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Temporary fix for kern/172364.

PR:		kern/172364
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix build with PAE enabled.  I doubt any code uses CAM_SCATTER_VALID or
CAM_DATA_PHYS, or they ever correctly worked, but make this build at least.


git-svn-id: svn://svn.freebsd.org/base/head@241495 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Some 3G modems return the wrong signature in echo packets and make it
impossible to use LQR/ECHO. They return want_magic instead.

With this change it is now possible to use

	enable lqr
	set lqrperiod 5
	enable echo
	set echoperiod 5

in your ppp.conf file.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace all uses of the vm page queues lock by a new R/W lock.
Unfortunately, this lock cannot be defined as static under Xen because it
is (ab)used to serialize queued page table changes.

Tested by:	sbruno


git-svn-id: svn://svn.freebsd.org/base/head@241498 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/master'