]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoIntegrate contrib/netbsd-tests/lib/libc/rpc into the FreeBSD test suite
Enji Cooper [Fri, 30 Oct 2015 03:28:00 +0000 (03:28 +0000)]
Integrate contrib/netbsd-tests/lib/libc/rpc into the FreeBSD test suite
as lib/libc/rpc

This testcase requires rpcbind be up in running; otherwise the testcases
will time out and be skipped

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoFix BULK read transfer if destination buffer is not cache line-aligned.
Oleksandr Tymoshenko [Fri, 30 Oct 2015 01:19:04 +0000 (01:19 +0000)]
Fix BULK read transfer if destination buffer is not cache line-aligned.

We can't use copyout because destination memory is userland address
in another process but we have reference to respective page so map
the page into kernel address space and copy fragments there

8 years agocxgbe/tom: decide whether to shove segments or not only if there is
Navdeep Parhar [Fri, 30 Oct 2015 01:18:07 +0000 (01:18 +0000)]
cxgbe/tom: decide whether to shove segments or not only if there is
payload to transmit.

MFC after: 1 week

8 years agoIn pw_userlock, set 'name' to NULL when we encounter an all number string
Xin LI [Fri, 30 Oct 2015 00:46:52 +0000 (00:46 +0000)]
In pw_userlock, set 'name' to NULL when we encounter an all number string
because it is also used as an indicator of whether a name or an UID is
being used and we may have undefined results as 'name' may contain
uninitialized stack contents.

MFC after: 2 weeks

8 years agoUse strlcpy().
Xin LI [Fri, 30 Oct 2015 00:33:03 +0000 (00:33 +0000)]
Use strlcpy().

MFC after: 2 weeks

8 years agoFix framebuffer compatibility with new RPi firmware. Framebuffer driver
Oleksandr Tymoshenko [Fri, 30 Oct 2015 00:24:37 +0000 (00:24 +0000)]
Fix framebuffer compatibility with new RPi firmware. Framebuffer driver
receives video memory address from VideoCore through property mailbox
channel. Older versions of firmware (and the one that is currently part
of sysutils/u-boot-rpi and sysutils/u-boot-rpi2) returned real physical
address, newer one returns VideoCore bus address, so we need to convert
it to actual physical address. this version works with both older and
newer interface.

8 years agoRemove unneeded NULL as this is initialized with M_ZERO.
Bryan Drewery [Thu, 29 Oct 2015 23:56:34 +0000 (23:56 +0000)]
Remove unneeded NULL as this is initialized with M_ZERO.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoUse memmove(3) to avoid overlapping copy.
Bryan Drewery [Thu, 29 Oct 2015 23:06:33 +0000 (23:06 +0000)]
Use memmove(3) to avoid overlapping copy.

Reported by: valgrind
MFC after: 2 weeks
X-MFC-With: r290168

8 years agoFix several memory leaks, and crashes, in iconvlist(3).
Bryan Drewery [Thu, 29 Oct 2015 23:02:34 +0000 (23:02 +0000)]
Fix several memory leaks, and crashes, in iconvlist(3).

- Both curitem and curitem (via the names list) was always leaked.
- malloc(3) failures lead to some leaks.
- __bsd___iconv_get_list() failure lead to a crash since its error was not
  handles and __bsd___iconv_free_list() is not NULL-safe.

I have slightly refactored this to avoid extra malloc and free logic in cases
of malloc(3) failing.

There are still bad assumptions here that I did not deal with.  One of which is
that the data will always have a '/' so the strchr(3) will not return NULL.

Coverity CID: 1130055 1130054 1130053

8 years agoFix LEAVE_HYP macro: spsr is not guaranteed to contain valid value at this
Oleksandr Tymoshenko [Thu, 29 Oct 2015 22:12:03 +0000 (22:12 +0000)]
Fix LEAVE_HYP macro: spsr is not guaranteed to contain valid value at this
point, e.g. on RaspberryPi 2 when control is passed from loader to kernel
it contains garbage. So we use cpsr as a base for new cpsr value: if we
have reached this point it means current value is OK

Reviewed by: andrew

8 years agoInstall myself as src committer.
Svatopluk Kraus [Thu, 29 Oct 2015 21:40:32 +0000 (21:40 +0000)]
Install myself as src committer.

Approved by: kib (mentor)

8 years agoSet the proper direction to check for policies in this one case.
George V. Neville-Neil [Thu, 29 Oct 2015 21:26:32 +0000 (21:26 +0000)]
Set the proper direction to check for policies in this one case.

Pointed out by: eri
Sponsored by: Rubicon Communications (Netgate)

8 years agoUse movw instead of movl (or plain mov) when moving segment registers
John Baldwin [Thu, 29 Oct 2015 21:25:46 +0000 (21:25 +0000)]
Use movw instead of movl (or plain mov) when moving segment registers
into memory.  This is a nop on clang's assembler, but some assemblers
complain if the size suffix is incorrect.

Submitted by: bde

8 years agoIgnore per-mdN settings in mdconfig[2] startup
Devin Teske [Thu, 29 Oct 2015 21:12:57 +0000 (21:12 +0000)]
Ignore per-mdN settings in mdconfig[2] startup

PR: base/189696
Submitted by: ganael.laplanche@martymac.org
MFC after: 3 days
X-MFC-to: stable/10 stable/9

8 years agoAdd myself (jtl) and my mentor to the committers-src.dot file.
Jonathan T. Looney [Thu, 29 Oct 2015 21:00:11 +0000 (21:00 +0000)]
Add myself (jtl) and my mentor to the committers-src.dot file.

Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D4029

8 years agopf: Fix IPv6 checksums with route-to.
Kristof Provost [Thu, 29 Oct 2015 20:45:53 +0000 (20:45 +0000)]
pf: Fix IPv6 checksums with route-to.

When using route-to (or reply-to) pf sends the packet directly to the output
interface. If that interface doesn't support checksum offloading the checksum
has to be calculated in software.
That was already done in the IPv4 case, but not for the IPv6 case. As a result
we'd emit packets with pseudo-header checksums (i.e. incorrect checksums).

This issue was exposed by the changes in r289316 when pf stopped performing full
checksum calculations for all packets.

Submitted by: Luoqi Chen
MFC after: 1 week

8 years agoRemove some unneeded code.
Alexander Motin [Thu, 29 Oct 2015 20:43:13 +0000 (20:43 +0000)]
Remove some unneeded code.

8 years agoRemove reset delays for which I see neither explanation nor need.
Alexander Motin [Thu, 29 Oct 2015 20:34:01 +0000 (20:34 +0000)]
Remove reset delays for which I see neither explanation nor need.

8 years agontb: Revert r290130 now that r290156 has landed
Conrad Meyer [Thu, 29 Oct 2015 19:35:01 +0000 (19:35 +0000)]
ntb: Revert r290130 now that r290156 has landed

Nagged by: vangyzen
Sponsored by: EMC / Isilon Storage Division

8 years agoCheck archive_entry_new() result.
Bryan Drewery [Thu, 29 Oct 2015 19:28:21 +0000 (19:28 +0000)]
Check archive_entry_new() result.

Coverity CID: 1331341

8 years agopmap_change_attr: Only fixup DMAP for DMAPed ranges
Conrad Meyer [Thu, 29 Oct 2015 19:07:00 +0000 (19:07 +0000)]
pmap_change_attr: Only fixup DMAP for DMAPed ranges

pmap_change_attr must change the memory type of both the requested KVA
and the corresponding DMAP mappings (if such mappings exist), to satisfy
an Intel requirement that two or more mappings to the same physical
pages must have the same memory type.

However, not all kernel mapped pages have corresponding DMAP mappings --
for example, 64-bit BARs.  Skip fixing up the DMAP for out-of-bounds
addresses.

Submitted by: Steve Wahl <steve_wahl@dell.com>
Reviewed by: alc, jhb
Sponsored by: Dell Compellent
Differential Revision: https://reviews.freebsd.org/D4030

8 years agogetnewbuf: Initialize bp to avoid uninitialized pointer dereference and brelse().
Bryan Drewery [Thu, 29 Oct 2015 19:02:24 +0000 (19:02 +0000)]
getnewbuf: Initialize bp to avoid uninitialized pointer dereference and brelse().

This came in recently in r289279.

Coverity CID: 1331561

8 years agoAvoid passing an uninitialized 'i'. Currently nothing was depending on it
Bryan Drewery [Thu, 29 Oct 2015 18:58:18 +0000 (18:58 +0000)]
Avoid passing an uninitialized 'i'.  Currently nothing was depending on it
anyhow.

Coverity CID: 1331562

8 years agoFix unlikely memory leak.
Bryan Drewery [Thu, 29 Oct 2015 18:29:28 +0000 (18:29 +0000)]
Fix unlikely memory leak.

It is unlikely since the first check in the function is that dir[0] is '/',
but later code changes may make it real.

Coverity CID: 1332104

8 years agoPC Card and Cardbus are now in extended maintenance mode. No need to
Warner Losh [Thu, 29 Oct 2015 16:50:28 +0000 (16:50 +0000)]
PC Card and Cardbus are now in extended maintenance mode. No need to
have them cluttering up MAINTAINERS.

8 years agoFix and improve error masking and reporting.
Alexander Motin [Thu, 29 Oct 2015 16:48:12 +0000 (16:48 +0000)]
Fix and improve error masking and reporting.

8 years agoUpdate for LINUX32 rename. The assembler didn't complain about undefined
John Baldwin [Thu, 29 Oct 2015 15:20:47 +0000 (15:20 +0000)]
Update for LINUX32 rename.  The assembler didn't complain about undefined
symbols but just used 0 after the rename.

8 years agoFix build with DEBUG defined.
John Baldwin [Thu, 29 Oct 2015 15:16:47 +0000 (15:16 +0000)]
Fix build with DEBUG defined.

Reported by: hselasky

8 years agoAdd missing NULL check in physio().
Hans Petter Selasky [Thu, 29 Oct 2015 13:53:37 +0000 (13:53 +0000)]
Add missing NULL check in physio().

When destroying a character device the si_devsw field is set to NULL
before all references are gone, to indicate the character device is
going away. This can cause a NULL-dereference fault inside physio().

The callers of physio() should own a thread reference on the cdev and
if si_devsw is seen as non-NULL, it is usable during the execution of
the function. Else an ENXIO error code is returned.

Reviewed by: kib
MFC after: 2 weeks

8 years agoSome minor additions to r290138,
Alexander Motin [Thu, 29 Oct 2015 10:31:44 +0000 (10:31 +0000)]
Some minor additions to r290138,

8 years agoSome updates to isp(4) manual page.
Alexander Motin [Thu, 29 Oct 2015 09:50:48 +0000 (09:50 +0000)]
Some updates to isp(4) manual page.

8 years agoAdd myself to MAINTAINERS.
Hans Petter Selasky [Thu, 29 Oct 2015 08:45:56 +0000 (08:45 +0000)]
Add myself to MAINTAINERS.

8 years agoFinish process of moving the LinuxKPI module into the default kernel build.
Hans Petter Selasky [Thu, 29 Oct 2015 08:28:39 +0000 (08:28 +0000)]
Finish process of moving the LinuxKPI module into the default kernel build.

- Move all files related to the LinuxKPI into sys/compat/linuxkpi and
  its subfolders.
- Update sys/conf/files and some Makefiles to use new file locations.
- Added description of COMPAT_LINUXKPI to sys/conf/NOTES which in turn
  adds the LinuxKPI to all LINT builds.
- The LinuxKPI can be added to the kernel by setting the
  COMPAT_LINUXKPI option. The OFED kernel option no longer builds the
  LinuxKPI into the kernel. This was done to keep the build rules for
  the LinuxKPI in sys/conf/files simple.
- Extend the LinuxKPI module to include support for USB by moving the
  Linux USB compat from usb.ko to linuxkpi.ko.
- Bump the FreeBSD_version.
- A universe kernel build has been done.

Reviewed by: np @ (cxgb and cxgbe related changes only)
Sponsored by: Mellanox Technologies

8 years agoRemove the static function declaration.
Kevin Lo [Thu, 29 Oct 2015 04:51:27 +0000 (04:51 +0000)]
Remove the static function declaration.

8 years ago- Add a missing prototype
Kevin Lo [Thu, 29 Oct 2015 04:21:34 +0000 (04:21 +0000)]
- Add a missing prototype
- Fix typos

8 years agoioat_test: Handled forced hardware resets gracefully
Conrad Meyer [Thu, 29 Oct 2015 04:16:52 +0000 (04:16 +0000)]
ioat_test: Handled forced hardware resets gracefully

Sponsored by: EMC / Isilon Storage Division

8 years agoioat: Drain/quiesce the device less racily
Conrad Meyer [Thu, 29 Oct 2015 04:16:39 +0000 (04:16 +0000)]
ioat: Drain/quiesce the device less racily

On detach and during a forced HW reset.

Sponsored by: EMC / Isilon Storage Division

8 years agontb: Do not attempt to set write-combining on MWs
Conrad Meyer [Thu, 29 Oct 2015 04:16:28 +0000 (04:16 +0000)]
ntb: Do not attempt to set write-combining on MWs

AMD64 pmap assumes ranges will be in the DMAP, which isn't necessarily
true for NTB memory windows (especially 64-bit BARs).

Suggested by: pmap_change_attr_locked -> kassert_panic
Sponsored by: EMC / Isilon Storage Division

8 years agoioatcontrol(8): Add and document "raw" testing mode
Conrad Meyer [Thu, 29 Oct 2015 04:16:16 +0000 (04:16 +0000)]
ioatcontrol(8): Add and document "raw" testing mode

Allows DMA from/to arbitrary KVA or physical address.  /dev/ioat_test
must be enabled by root and is only R/W root, so this is approximately
as dangerous as /dev/mem and /dev/kmem.

Sponsored by: EMC / Isilon Storage Division

8 years agoAdd MLINKS for if_otus(4), if_rsu(4) and if_urtwn(4).
Kevin Lo [Thu, 29 Oct 2015 03:28:28 +0000 (03:28 +0000)]
Add MLINKS for if_otus(4), if_rsu(4) and if_urtwn(4).

8 years agoXref otus(4).
Kevin Lo [Thu, 29 Oct 2015 03:22:27 +0000 (03:22 +0000)]
Xref otus(4).

8 years agoFix regression from using .USEBEFORE in _SUBDIR in r289705.
Bryan Drewery [Thu, 29 Oct 2015 00:41:03 +0000 (00:41 +0000)]
Fix regression from using .USEBEFORE in _SUBDIR in r289705.

Using .USEBEFORE had the unintended side-effect of changing the directory for
the real target ran in the current directory.  For example this meant that
the 'make clean' would run in one of the SUBDIR.

Sponsored by: EMC / Isilon Storage Division
Pointyhat to: bdrewery

8 years agoOops - use the wrong array offset.
Adrian Chadd [Wed, 28 Oct 2015 23:39:33 +0000 (23:39 +0000)]
Oops - use the wrong array offset.

8 years agoCalculate the correct amount of bytes that are in-flight for a connection as
Hiren Panchasara [Wed, 28 Oct 2015 22:57:51 +0000 (22:57 +0000)]
Calculate the correct amount of bytes that are in-flight for a connection as
suggested by RFC 6675.

Currently differnt places in the stack tries to guess this in suboptimal ways.
The main problem is that current calculations don't take sacked bytes into
account. Sacked bytes are the bytes receiver acked via SACK option. This is
suboptimal because it assumes that network has more outstanding (unacked) bytes
than the actual value and thus sends less data by setting congestion window
lower than what's possible which in turn may cause slower recovery from losses.

As an example, one of the current calculations looks something like this:
snd_nxt - snd_fack + sackhint.sack_bytes_rexmit
New proposal from RFC 6675 is:
snd_max - snd_una - sackhint.sacked_bytes + sackhint.sack_bytes_rexmit
which takes sacked bytes into account which is a new addition to the sackhint
struct. Only thing we are missing from RFC 6675 is isLost() i.e. segment being
considered lost and thus adjusting pipe based on that which makes this
calculation a bit on conservative side.

The approach is very simple. We already process each ack with sack info in
tcp_sack_doack() and extract sack blocks/holes out of it. We'd now also track
this new variable sacked_bytes which keeps track of total sacked bytes reported.

One downside to this approach is that we may get incorrect count of sacked_bytes
if the other end decides to drop sack info in the ack because of memory pressure
or some other reasons. But in this (not very likely) case also the pipe
calculation would be conservative which is okay as opposed to being aggressive
in sending packets into the network.

Next step is to use this more accurate pipe estimation to drive congestion
window adjustments.

In collaboration with: rrs
Reviewed by: jason_eggnet dot com, rrs
MFC after: 2 weeks
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D3971

8 years agoDefine endianness for non-x86 platforms.
Jung-uk Kim [Wed, 28 Oct 2015 22:49:37 +0000 (22:49 +0000)]
Define endianness for non-x86 platforms.

MFC after: 3 days

8 years agoRetire pmap_dmap_iscurrent(). It is only a wrapper around pmap_is_current(), and...
Jason A. Harmening [Wed, 28 Oct 2015 21:17:38 +0000 (21:17 +0000)]
Retire pmap_dmap_iscurrent().  It is only a wrapper around pmap_is_current(), and is no longer called.

8 years agoBUS_ADD_CHILD calls device_add_child. device_add_child does not call
Warner Losh [Wed, 28 Oct 2015 19:11:06 +0000 (19:11 +0000)]
BUS_ADD_CHILD calls device_add_child. device_add_child does not call
BUS_ADD_CHILD. Make it explicit since it follows the command paradigm
rather than the callback paradigm. Add other clarifying notes as well.

8 years agoChange the way how target mode is enabled on 23xx chips.
Alexander Motin [Wed, 28 Oct 2015 19:08:51 +0000 (19:08 +0000)]
Change the way how target mode is enabled on 23xx chips.

Without docs I am not completely sure about this, but on my tests new
method works better then previous, at least with our latest firmware.

8 years agoAdd a note to the effect that BUS_ADD_CHILD calls
Warner Losh [Wed, 28 Oct 2015 18:53:18 +0000 (18:53 +0000)]
Add a note to the effect that BUS_ADD_CHILD calls
device_add_child_ordered to add the child. device_add_child_ordered
doesn't call BUS_ADD_CHILD.

8 years agoCheck the size of data available in mbuf, before using them.
Andrey V. Elsukov [Wed, 28 Oct 2015 17:55:37 +0000 (17:55 +0000)]
Check the size of data available in mbuf, before using them.

PR: 202667
MFC after: 1 week

8 years agoInclude libutil's headers directly from src to avoid recording a dirdeps
Bryan Drewery [Wed, 28 Oct 2015 16:31:04 +0000 (16:31 +0000)]
Include libutil's headers directly from src to avoid recording a dirdeps
dependency for META MODE.

8 years agoConnect mpsutil for META MODE.
Bryan Drewery [Wed, 28 Oct 2015 16:22:00 +0000 (16:22 +0000)]
Connect mpsutil for META MODE.

8 years agoFix spelling and grammer in tools/test/README.
Eric van Gyzen [Wed, 28 Oct 2015 15:00:21 +0000 (15:00 +0000)]
Fix spelling and grammer in tools/test/README.

Reviewed by: gnn

8 years agoAdd _flags2 per jhb@ suggestion since no room left in _flags.
Andrey A. Chernov [Wed, 28 Oct 2015 14:40:02 +0000 (14:40 +0000)]
Add _flags2 per jhb@ suggestion since no room left in _flags.
Rewrite O_APPEND flag checking using new __S2OAP flag.

MFC after:      3 weeks

8 years agoRemove the s3c2xx0 code, it's no longer used. As far as I know I as the
Andrew Turner [Wed, 28 Oct 2015 13:14:16 +0000 (13:14 +0000)]
Remove the s3c2xx0 code, it's no longer used. As far as I know I as the
main user of this code, however I haven't used it in over two years, and
don't expect to in the future.

8 years agoStart to remove support for the XScale i80321. As far as I can tell nobody
Andrew Turner [Wed, 28 Oct 2015 13:07:56 +0000 (13:07 +0000)]
Start to remove support for the XScale i80321. As far as I can tell nobody
uses this which makes it difficult to support.

8 years agoImprove/fix loop scanning routine.
Alexander Motin [Wed, 28 Oct 2015 12:34:59 +0000 (12:34 +0000)]
Improve/fix loop scanning routine.

For the most of chips (except anscient ones) port handlers have no relation
to port IDs.  In such situation old code scanning first 125 handlers was
quite naive.  Instead of doing that, send to chip single request to get full
list of port handlers available on specific virtual port and scan only them.

Old code had problems with case of several virtual ports enabled, when port
handlers allocated from global address space could easily go above 125.
This change was successfully tested on 23xx, 24xx and 25xx chips in loop
mode with 4 virtual initiator ports, each seing 50 virtual target ports.

8 years agoConnect mpsutil(8) to the build
Baptiste Daroussin [Wed, 28 Oct 2015 12:31:29 +0000 (12:31 +0000)]
Connect mpsutil(8) to the build

Sponsored by: Gandi.net

8 years agoMerge mpsutil(8) branch
Baptiste Daroussin [Wed, 28 Oct 2015 12:30:29 +0000 (12:30 +0000)]
Merge mpsutil(8) branch

mpsutil(8)/mprutil(8) are new utilities for managing LSI Fusion-MPT
2/3 controllers (mps(4) and mpr(4))

For now only informational commands have been implemented.

This utility has been written by scottl@ [1] and polished by myself[2]

Submitted by: scottl
Discussed with: scottl
Relnotes: yes
Sponsored by: Netflix [1]
Sponsored by: Gandi.net [2]

8 years agoBuild fix for i386/XBOX and pc98/GENERIC.
Hans Petter Selasky [Wed, 28 Oct 2015 12:10:01 +0000 (12:10 +0000)]
Build fix for i386/XBOX and pc98/GENERIC.

Reviewed by: kib

8 years agoMerge from head
Baptiste Daroussin [Wed, 28 Oct 2015 11:58:18 +0000 (11:58 +0000)]
Merge from head

Sponsored by: Gandi.net

8 years agoFix a typo in the comment about the include guard
Baptiste Daroussin [Wed, 28 Oct 2015 11:29:58 +0000 (11:29 +0000)]
Fix a typo in the comment about the include guard

Sponsored by: Gandi.net

8 years agoRemove more of the mptutil unused code
Baptiste Daroussin [Wed, 28 Oct 2015 11:28:46 +0000 (11:28 +0000)]
Remove more of the mptutil unused code

Sponsored by: Gandi.net

8 years agoRemove some unused code from the mptutil(8)
Baptiste Daroussin [Wed, 28 Oct 2015 11:25:28 +0000 (11:25 +0000)]
Remove some unused code from the mptutil(8)

The code from mptutil living in the same source tree the day those functions
will be implemented in the mpsutil(8) it can be copy/paste easily

Sponsored by: Gandi.net

8 years agoReduce overlinking, for now neither cam nor libutil are needed
Baptiste Daroussin [Wed, 28 Oct 2015 11:20:55 +0000 (11:20 +0000)]
Reduce overlinking, for now neither cam nor libutil are needed

Sponsored by: Gandi.net

8 years agoDo enforce "-g", DEBUG_FLAGS can be user if one want to set it
Baptiste Daroussin [Wed, 28 Oct 2015 11:18:43 +0000 (11:18 +0000)]
Do enforce "-g", DEBUG_FLAGS can be user if one want to set it

Sponsored by: Gandi.net

8 years agoReplace the manpage with one that actually describes the utility
Baptiste Daroussin [Wed, 28 Oct 2015 11:06:04 +0000 (11:06 +0000)]
Replace the manpage with one that actually describes the utility

Sponsored by: Gandi.net

8 years agoAdd some debugging code (under ARGE_DEBUG) that counts each interrupt source.
Adrian Chadd [Wed, 28 Oct 2015 05:11:06 +0000 (05:11 +0000)]
Add some debugging code (under ARGE_DEBUG) that counts each interrupt source.

This should make it easier to track down interrupt storms from arge.

Tested:

* AP135 (QCA955x) SoC - defaults to ARGE_DEBUG enabled
* Carambola2 (AR9331 SoC) - defaults to ARGE_DEBUG disabled

8 years agoAdd a test for the listen queue using two test programs,
George V. Neville-Neil [Wed, 28 Oct 2015 03:43:24 +0000 (03:43 +0000)]
Add a test for the listen queue using two test programs,
listen, and connect.  The listen program is a simple server that
accepts and closes sockets, until a fixed limit, then sets the listen
queue to 0 and counts how many remaining connections it processes.

The connect program repeatedly opens connections and closes them
serving as the driver for the listen program.

Sponsored by: Limelight Networks

8 years agoUpdate the README to describe all the current tests in this directory.
George V. Neville-Neil [Wed, 28 Oct 2015 03:39:18 +0000 (03:39 +0000)]
Update the README to describe all the current tests in this directory.

8 years agoioat: Define DMACAPABILITY bits
Conrad Meyer [Wed, 28 Oct 2015 02:37:24 +0000 (02:37 +0000)]
ioat: Define DMACAPABILITY bits

Check for BFILL capability before initiating blockfill operations.

Sponsored by: EMC / Isilon Storage Division

8 years agoUse proper CONFDIR after r289148
Bryan Drewery [Tue, 27 Oct 2015 23:49:32 +0000 (23:49 +0000)]
Use proper CONFDIR after r289148

8 years agoStart to remove support for the Samsung s3c24x0 SoCs by removing the kernel
Andrew Turner [Tue, 27 Oct 2015 23:37:54 +0000 (23:37 +0000)]
Start to remove support for the Samsung s3c24x0 SoCs by removing the kernel
config, and support from NOTES.

8 years agoRemove unneeded NAME override.
Bryan Drewery [Tue, 27 Oct 2015 23:35:08 +0000 (23:35 +0000)]
Remove unneeded NAME override.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoUse more appropriate ${SHAREDIR} rather than /usr/share.
Bryan Drewery [Tue, 27 Oct 2015 23:35:02 +0000 (23:35 +0000)]
Use more appropriate ${SHAREDIR} rather than /usr/share.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agomips: use the correct va for wbinv flushing.
Adrian Chadd [Tue, 27 Oct 2015 23:11:22 +0000 (23:11 +0000)]
mips: use the correct va for wbinv flushing.

arge doesn't trigger this, but ath(4) does.

Tested:

* AR9331 SoC (Carambola2); ath(4) hostap

Submitted by: ian

8 years agoBring the tags and links entries for amd64 up to date.
Kirk McKusick [Tue, 27 Oct 2015 22:59:24 +0000 (22:59 +0000)]
Bring the tags and links entries for amd64 up to date.
Based on how out of date it is, I doubt that anyone
other than me and my code-reading students still use it.

8 years agoMark functions as such. This means we call them directly rather than have
Andrew Turner [Tue, 27 Oct 2015 22:24:57 +0000 (22:24 +0000)]
Mark functions as such. This means we call them directly rather than have
the dynamic linker copy them, but not relocate them at the new location.
This allows us to run sqlite3 without it crashing.

Sponsored by: ABT Systems Ltd

8 years agoUse m_cat() to reassembly IPv6 packets.
Alexander V. Chernikov [Tue, 27 Oct 2015 22:11:09 +0000 (22:11 +0000)]
Use m_cat() to reassembly IPv6 packets.

Submitted by: jonloony_gmail.com
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3863

8 years agoUpdate NetBSD RCS IDs to reflect the changes being upstreamed.
Xin LI [Tue, 27 Oct 2015 21:26:05 +0000 (21:26 +0000)]
Update NetBSD RCS IDs to reflect the changes being upstreamed.

MFC after: 13 days
X-MFC-With: r290024

8 years agoEliminate last rtalloc_ign() caller.
Alexander V. Chernikov [Tue, 27 Oct 2015 21:25:40 +0000 (21:25 +0000)]
Eliminate last rtalloc_ign() caller.

Differential Revision: https://reviews.freebsd.org/D3927

8 years agoUpdate libucl to latest git snapshot (20151027)
Baptiste Daroussin [Tue, 27 Oct 2015 21:24:09 +0000 (21:24 +0000)]
Update libucl to latest git snapshot (20151027)

8 years agodrm/i915: Reduce diff with Linux 3.8
Jean-Sébastien Pédron [Tue, 27 Oct 2015 21:23:19 +0000 (21:23 +0000)]
drm/i915: Reduce diff with Linux 3.8

There is no functional change. The goal is to ease the future update to
Linux 3.8's i915 driver.

MFC after: 2 months

8 years agoUpdate libucl to git snapshot 20151027 (77d9d33)
Baptiste Daroussin [Tue, 27 Oct 2015 21:19:11 +0000 (21:19 +0000)]
Update libucl to git snapshot 20151027 (77d9d33)

8 years agolibedit: Use correct buffer lengths in vi mode v command.
Jilles Tjoelker [Tue, 27 Oct 2015 21:16:29 +0000 (21:16 +0000)]
libedit: Use correct buffer lengths in vi mode v command.

Libedit's vi mode provides a v command to edit the current line in vi(1)
(hard-coded to vi, in fact).

When Unicode/wide character mode was added, this command started truncating
and/or corrupting the edited text.

This commit fixes v if the text fits into the buffer. If the text is longer,
it is truncated.

PR: 203743
Obtained from: NetBSD (originally submitted by me)

8 years agoAdd copyright for Netflix for the files that changed from mptutil
Scott Long [Tue, 27 Oct 2015 20:56:57 +0000 (20:56 +0000)]
Add copyright for Netflix for the files that changed from mptutil

8 years agoRemove mps_config.c, it's unused.
Scott Long [Tue, 27 Oct 2015 20:56:34 +0000 (20:56 +0000)]
Remove mps_config.c, it's unused.

8 years agoAdd WITHOUT_DEBUG_FILES description
Ed Maste [Tue, 27 Oct 2015 20:49:56 +0000 (20:49 +0000)]
Add WITHOUT_DEBUG_FILES description

8 years agonet80211: add ieee80211_restart_all() call.
Andriy Voskoboinyk [Tue, 27 Oct 2015 20:40:57 +0000 (20:40 +0000)]
net80211: add ieee80211_restart_all() call.

This call may be used when device cannot continue to operate normally
(e.g., throws firmware error, watchdog timer expires)
and need to be restarted.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D3998

8 years agodrm/i915: Reduce diff with Linux 3.8
Jean-Sébastien Pédron [Tue, 27 Oct 2015 20:34:30 +0000 (20:34 +0000)]
drm/i915: Reduce diff with Linux 3.8

There is no functional change. The goal is to ease the future update to
Linux 3.8's i915 driver.

MFC after: 2 months

8 years agoReimplement next port handle generation.
Alexander Motin [Tue, 27 Oct 2015 18:32:03 +0000 (18:32 +0000)]
Reimplement next port handle generation.

For some reason port handles should be allocated from HBA-global space,
while old code was not very specific, mixing per-HBA and per-VP logic.

8 years agoUpdate nfs note and remove some other stale ones.
Bryan Drewery [Tue, 27 Oct 2015 16:52:09 +0000 (16:52 +0000)]
Update nfs note and remove some other stale ones.

8 years agoUpdate notes about zfs and geom. Also add a note on how to find the real
Bryan Drewery [Tue, 27 Oct 2015 16:50:41 +0000 (16:50 +0000)]
Update notes about zfs and geom.  Also add a note on how to find the real
maintainers in case of bitrot.

8 years agoAdd a hint on who can help with share/mk currently.
Bryan Drewery [Tue, 27 Oct 2015 16:39:00 +0000 (16:39 +0000)]
Add a hint on who can help with share/mk currently.

8 years agourtwn(4): fix scanning from AUTH state
Andriy Voskoboinyk [Tue, 27 Oct 2015 14:21:24 +0000 (14:21 +0000)]
urtwn(4): fix scanning from AUTH state

Tested with RTL8188EU, STA mode.

Reviewed by: kevlo
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D3968

8 years agoDo not perform read-ahead for BA_CLRBUF request when we are low on
Konstantin Belousov [Tue, 27 Oct 2015 13:44:13 +0000 (13:44 +0000)]
Do not perform read-ahead for BA_CLRBUF request when we are low on
memory or when dirty buffer queue is too large.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

8 years agoAdd missing FreeBSD RCS keyword and SVN properties.
Hans Petter Selasky [Tue, 27 Oct 2015 12:21:15 +0000 (12:21 +0000)]
Add missing FreeBSD RCS keyword and SVN properties.

Sponsored by: Mellanox Technologies

8 years agoAdd sysctl tunable net.inet.tcp.initcwnd_segments to specify initial congestion
Hiren Panchasara [Tue, 27 Oct 2015 09:43:05 +0000 (09:43 +0000)]
Add sysctl tunable net.inet.tcp.initcwnd_segments to specify initial congestion
window in number of segments on fly. It is set to 10 segments by default.

Remove net.inet.tcp.experimental.initcwnd10 which is now redundant. Also remove
the parent node net.inet.tcp.experimental as it's not needed anymore and also
because it was not well thought out.

Differential Revision: https://reviews.freebsd.org/D3858
In collaboration with: lstewart
Reviewed by: gnn (prev version), rwatson, allanjude, wblock (man page)
MFC after: 2 weeks
Relnotes: yes
Sponsored by: Limelight Networks

8 years agoFix error code that looks like wrong.
Alexander Motin [Tue, 27 Oct 2015 09:33:47 +0000 (09:33 +0000)]
Fix error code that looks like wrong.

8 years agoAdd myself and my mentors to the committers-src.dot file.
Kurt Lidl [Tue, 27 Oct 2015 03:48:42 +0000 (03:48 +0000)]
Add myself and my mentors to the committers-src.dot file.

Approved by: rpaulo (mentor)
Differential Revision: https://reviews.freebsd.org/D4006