Commit Graph

238006 Commits

Author SHA1 Message Date
knakahara
5428e90392 fix IVARs offset for 82580 and newer. 2015-09-30 08:42:04 +00:00
ozaki-r
99284d7cc5 Make GATEWAY (fastforward) work again
With GATEWAY (fastforward), the whole forwarding processing runs in
hardware interrupt context. So we cannot use rwlock for lltable and
llentry in that case.

This change replaces rwlock with mutex(IPL_NET) for lltable and llentry
when GATEWAY is enabled. We need to tweak locking only around rtree
in lltable_free. Other than that, what we need to do is to change macros
for locks.

I hope fastforward runs in softint some day in the future...
2015-09-30 07:12:32 +00:00
ozaki-r
ad91e721ff Remove extra opt_gateway.h 2015-09-30 06:25:59 +00:00
ozaki-r
3f3bb7d2ee Add delay to improve stability of test 2015-09-30 06:08:36 +00:00
msaitoh
acd3bf9e12 - Add workaround for 82574 Errata 25 and 82583 Errata 12 "Dropped RX packets"
and for 82573 (unknown). Set GCR_L1_ACT_WITHOUT_L0S_RX bit. The NVM Image
  version 2.1.4 and newer have this workaround.
- Print the NVM image version on 82583, too.

 Pointed out by joerg@.
2015-09-30 04:28:04 +00:00
ozaki-r
4f5bd10ca4 Add lockdebug_barrier
ok pooka@
2015-09-30 02:45:33 +00:00
ozaki-r
63e037b63a Remove redundant UNLOCKED and LOCKED
UNLOCKED and LOCKED are done inside mutex_exit and mutex_enter respectively
so we don't need to do them outside mutex_exit and mutex_enter.

Reviewed by pooka@
2015-09-30 01:31:56 +00:00
christos
12713a4b5d We switched to newer versions in elftoolchain a while ago. 2015-09-30 00:35:46 +00:00
christos
35d37febae do the stack protector stuff like the other files. 2015-09-30 00:17:09 +00:00
christos
5a76c68ec9 detect dynamically if we need -e for echo 2015-09-29 23:50:52 +00:00
christos
85c412e566 - make the generated file rules depend on the source files
- hack for clang on Darwin
2015-09-29 23:50:17 +00:00
christos
acb11aeb8e fix the native build 2015-09-29 22:14:14 +00:00
christos
ec4b0d739b for the endian macros don't use the _ names, Darwin does not define them. 2015-09-29 20:43:16 +00:00
christos
f651117f07 no other ctf program needs -lrt, why does this one? 2015-09-29 20:31:43 +00:00
christos
b97202a0e1 make this tools friendly. 2015-09-29 19:43:39 +00:00
phx
0a756912e8 The disk's unittag is not equal to the channel, so we need an additional
unitchan entry to make lba_read() work in all cases.
The libsa-printf() does not seem to support 64-bit output, so cast the
block number to unsigned when printing an error message.
2015-09-29 15:12:52 +00:00
christos
302f5a4b29 return an error for actions we don't understand. 2015-09-29 14:31:22 +00:00
christos
f05010c404 - PR/50291: Fix memory leak
- estrdup/emalloc
- use EXIT_FAILURE instead of 1
2015-09-29 14:27:00 +00:00
roy
e3c65ae6e7 Note import of openresolv-3.7.1 2015-09-29 09:14:11 +00:00
roy
2f705eb612 Sync 2015-09-29 09:11:47 +00:00
roy
a4b92b41fa Import openresolv-3.7.1 with the following changes:
*  Typo's, thanks to Herbert Parentes Fortes Neto
  *  Clarify that private_interfaces="*" will not forward the root zone
  *  ensure that domain-insecure always appears in a server clause for
     the unbound subscriber
2015-09-29 09:10:07 +00:00
ozaki-r
837fd81e06 Let ftp use a different output file from httpd's one
Previously the target file served by httpd and the output file of ftp
were identical (both index.html) on the filesystem.
2015-09-29 08:27:24 +00:00
hannken
d5f14318c4 Compat libproc.so.0.0.debug and librtld_db.so.0.0.debug depend on "dtrace". 2015-09-29 08:01:29 +00:00
hannken
a484921197 Typo (ompat -> compat). 2015-09-29 08:00:59 +00:00
hannken
71a9213721 Typo (trailing comma). 2015-09-29 08:00:22 +00:00
wiz
1a48e143e6 Reduce whitespace. 2015-09-29 07:59:15 +00:00
wiz
ff1e46a1cb Remove reference to mdb(1). 2015-09-29 06:33:01 +00:00
ozaki-r
05cf8927fd Add _KERNEL_OPT
It's needed for nbmake RUMP_LOCKDEBUG=yes.
2015-09-29 01:44:57 +00:00
wiz
963ab8d75f Fix typo. 2015-09-28 22:11:40 +00:00
wiz
f3752eafe8 Fix Dt. New sentence, new line. Fix xrefs.
Still leaves:
trailing Xref to mdb(1)
trailing Xref to libctf(3)
2015-09-28 22:00:26 +00:00
wiz
1ea70fc5bf Add RCS Id, serial comma, use Fx, fix xref.
XXX: libproc(3) does not exist, but is referenced three times.
2015-09-28 21:50:48 +00:00
christos
091269df14 describe libproc, librtld_db 2015-09-28 21:07:47 +00:00
christos
628c957c7a Add libproc/librtld_db 2015-09-28 21:05:57 +00:00
christos
3644045c3c neither libproc or librtld_db require CTF 2015-09-28 17:12:46 +00:00
christos
4a21fa14fc Neither libproc or librtld_db require CTF 2015-09-28 17:12:12 +00:00
ozaki-r
fc47734756 Tweak mutex_enter(softnet_lock) position
The previous code took locks the following order:
- LLE_WLOCKs
- mutex_enter(softnet_lock)
- LLE_WUNLOCKs
- mutex_exit(softnet_lock)

This fix moves mutex_enter(softnet_lock) before LLE_WLOCKs.
2015-09-28 07:55:26 +00:00
knakahara
7021774670 When the driver uses MSI-X, it tunes RX's EITR the same as TX's.
ok by msaitoh@n.o
2015-09-28 07:02:57 +00:00
knakahara
db519ca214 use sc->sc_itr instead of hard-coded number.
ok by msaitoh@n.o
2015-09-28 06:04:04 +00:00
ozaki-r
dacbac7968 Add simple tests for fastforward
The tests just do TCP communication via HTTP GET.
2015-09-28 01:54:14 +00:00
mlelstv
4e27970548 revert previous. Dynamic libraries break systems with split / and /usr
partitions and also sun2. libdns is pulling in Kerberos anyway.
2015-09-27 21:01:27 +00:00
phx
cfbd5b3eaf Direct config: Only match via the list of compatible hardware when we have
such a list available (ia_ncompat > 0). Otherwise fall back to matching
the device name with ia_name.
2015-09-27 13:02:21 +00:00
taca
eba7baf0f4 Latest versino of ISC DHCP is 4.3.3. 2015-09-27 07:04:05 +00:00
christos
20c3ea3d63 Kill sys/modctl.h which we don't need. 2015-09-27 03:37:16 +00:00
christos
c9b640c057 need uvm_param.h now. 2015-09-26 20:28:55 +00:00
christos
4e84514d8c move CTL_VM constants to uvm_param.h, leaving a comment behind. 2015-09-26 20:28:37 +00:00
maxv
87ee1fdec1 Disable PAX_SEGVGUARD.
We actually have a big problem: the fileassocs are never deleted.
Therefore, if a user generates a lot of buggy binaries and launches them
all, the kernel will allocate memory again again and again for all these
entries and will never free them (unless the files are deleted from the
disk). Which means that a user can too easily put the kernel under memory
pressure.
2015-09-26 16:33:16 +00:00
maxv
9ed595918a Revamp the way processes are PaX'ed in the kernel. Sent on tech-kern@ two
months ago, but no one reviewed it - probably because it's not a trivial
change.

This change fixes the following bug: when loading a PaX'ed binary, the
kernel updates the PaX flag of the calling process before it makes sure
the new process is actually launched. If the kernel fails to launch the
new process, it does not restore the PaX flag of the calling process,
leaving it in an inconsistent state.

Actually, simply restoring it would be horrible as well, since in the
meantime another thread may have used the flag.

The solution is therefore: modify all the functions used by PaX so that
they take as argument the exec package instead of the lwp, and set the PaX
flag in the process *right before* launching the new process - it cannot
fail in the meantime.
2015-09-26 16:12:24 +00:00
skrll
a6c0d63949 Deal with polling in usbd_start_next 2015-09-26 13:59:28 +00:00
christos
c4bba3a5cb Put -Isys after the ioctl Makefile has a chance to add other paths first. 2015-09-26 13:31:27 +00:00
christos
fae14d9262 CID 1324963: Remove bogus NULL test
CID 1324962: This is not python, one needs braces too.
2015-09-26 13:04:10 +00:00