kernel/lockf: Add include for LOCKF_DEBUG and fix printf warnings.
test/udp: Add SO_REUSEPORT test
hammer - Disallow creation of a file/subdir/etc in a deleted directory

* Disallow the creation of inodes within deleted directories.  This
  possibility occurs if a program is CD'd into an empty directory which
  is then rmdir'd, and the program then tries to create something
  in the now-destroyed directory.

Reported-by: varialus
inpcb: Save local group index

So that the caller, e.g. UDP protocol, could redistribute the inpcb
accordingly.

We keep the local group sorted by the inpcb local group index in
ascending order.  This eases the multi-process userland application
which uses SO_REUSEPORT sockets and binds process to the owner cpu
of the SO_REUSEPORT socket:
If we didn't sort the local group by the inpcb local group index and
one of the process owning an inpcb in this local group restarted, e.g.
crashed and restarted by watchdog, other processes owning a inpcb in
this local group would have to detect that event, refetch its socket's
owner cpu, and re-bind.
inpcb: Add in_pcb{link,unlink}_flags() to bypass INP_WILDCARD check

It is safe to change the inpcb's pcblist while the it is still referenced
by the wildcard hash.
udp: Redistribute SO_REUSEPORT socket based on local group index

This improves the request/response transation rate a lot for UDP sockets
which set SO_REUSEPORT, by cpu localizing the request and response
processing.

tools/netrate/udpecho 64B request/response transation rate is raised from
1.24Mtrans/s to 1.39Mtrans/s (~12% improvement).
socket: Provide socket owner cpuid hint

If the cpuid hint could not be provided or the cpuid hint does not make
sense, -1 will be returned as cpuid hint, e.g. TCP listen sockets w/o
SO_REUSEPORT.

This helps avoiding unnecessary IPIs and contention on receiving sockbuf
token.
tools/netrate: Get socket's cpu hint and bind cpu accordingly
net: import FreeBSD's if_lagg
net: add version numbers to lagg sourcefiles, adapt manpage
tcp: Check multicast sopt name after sopt level is checked
inpcb: Revoke INP_WILDCARD_MP, which serves no purpose now

While I'm here, use ncpus2 instead of ncpus for TCP, which only uses
ncpus2 netisrs.
inpcb: Define INP_WASBOUND_NOTANY as protocol specific flag
udp: Optimize detach path

If the inpcb was never put onto wildcard hash and the multicast options
were never accessed nor modified, we could directly dispose the inpcb
on detach path instead of going through all netisrs to make sure that
it is no longer being accessed.

After this commit 'kq_connect_client -u' gives ~180Kconns/s instead of
~160Kconns/s (~12% improvement).
Bump __DragonFly_version for i915 hw context support
net: some LINTing after if_lagg import

* remove duplicate from include/Makefile
* sort mtree alphabetically
* update ifmedia(4) manpage to reflect updates to if_media.h

Reported-By: Sascha Wildner <swildner@online.de>
drm/i915: Simplify the flush code

Reduce differences with Linux 3.8.13
inpcb: Factor out in_pcbresetroute()
udp: Use ncpus2 instead of ncpus, since udp uses ncpus2 netisrs

There is actually no functional change.
inpcb: Factor out ASSERT_INP_NOTINHASH