Commit Graph

228107 Commits

Author SHA1 Message Date
ozaki-r
a4bec2dd1b Protect bridge_list with a mutex 2014-07-02 09:51:08 +00:00
ozaki-r
1aecea656e Remove obsolete codes for if_snd 2014-07-02 09:43:16 +00:00
ozaki-r
ec381ed29d Restore RPS of pktq_enqueue unless _RUMPKERNEL
It's a workaround and would be fixed in rump soon.

ok pooka@
2014-07-02 07:30:37 +00:00
ozaki-r
2fef08800f Add NET_MPSAFE to ALL 2014-07-02 07:18:32 +00:00
htodd
aeac1fdec4 Move t_bpfjit.debug to md lists. 2014-07-02 05:23:20 +00:00
christos
1cc43e12bf new acpica is out 2014-07-02 00:32:05 +00:00
jakllsch
e19789a30b fix boot code maximum size.
From OpenBSD if_wpireg.h 1.19.
2014-07-02 00:15:41 +00:00
jakllsch
a05ebdd179 No need to duplicate the members of the wpi_cmd_data structure within
the wpi_scan_hdr structure when we can just put the wpi_cmd_data
structure within the wpi_scan_hdr structure.

This also brings our if_wpireg.h mostly in line with OpenBSD's 1.18.
2014-07-02 00:04:18 +00:00
justin
de6ed608dd On ARM the variable name 'delay' shadows a function here, rename to avoid
-Wshadow objecting.
2014-07-01 23:01:54 +00:00
riastradh
e905ac69e4 Implement i915drmkms wsdisplay blank/backlight/brightness controls. 2014-07-01 20:03:21 +00:00
msaitoh
a34b33f4fa Print some information (ASIC revision, PCI status, etc). From FreeBSD. 2014-07-01 17:11:35 +00:00
riastradh
2ef3036b03 Honour write-combining flag in drm_ioremap. 2014-07-01 16:29:57 +00:00
riastradh
1f41368568 Tweak debug printf directives. 2014-07-01 16:27:25 +00:00
alnsn
c676220d8a Move the main loop in bpfjit_generate_code() to a new function and make few
small changes.
2014-07-01 16:18:55 +00:00
msaitoh
a18760cfb6 No functional change.
- s/u_int/uint/
- Modify comment a bit (sync with OpenBSD)
2014-07-01 15:23:35 +00:00
msaitoh
d917e28845 KNF. No functional change. 2014-07-01 15:03:58 +00:00
ozaki-r
5b9b847dc4 Unbreak lib/libc/net/getifaddrs.c
--- getifaddrs.o ---
  In file included from /tmp/bracket/build/2014.07.01.10.35.18-i386/src/lib/libc/net/getifaddrs.c:39:0:
  /tmp/bracket/build/2014.07.01.10.35.18-i386/src/sys/net/if.h:208:2: error: unknown type name 'kmutex_t'
    kmutex_t *ifq_lock;
      ^
2014-07-01 14:04:40 +00:00
shm
ca5b33a5e8 * bozo_clean_request free(3) clean up (removed needless checks)
* HEAD method no longer returns response body on error
* fixed bug with multiple bozo_http_error calls caused by fix_url_percent

OK @mrg
2014-07-01 13:41:21 +00:00
rtr
72ab703a46 Bump to version 6.99.45 for removal of struct lwp * parameter from pr_ioctl 2014-07-01 13:25:21 +00:00
maxv
0d191e1f54 1) Define a malloc(9)-like kmem_header structure for KMEM_SIZE. It is in
fact more consistent, and more flexible (eg if we want to add new fields).
2) When I say "page" I actually mean "kmem page". It may not be clear, so
   replace it by "memory chunk" (suggested by lars@).
3) Minor changes for KMEM_REDZONE.
2014-07-01 12:08:33 +00:00
ozaki-r
6ccb0c0e23 Make if_wm MPSAFE
- Make it MPSAFE only when NET_MPSAFE
  - otherwise, its instructions are almost same as before
  - the only change is IFQ_POLL/IFQ_DEQUEUE which
    is now single IFQ_DEQUEUE
- Protect driver operations with a lock
  - further work would make it separate
- Apply MPSAFE flag to
  - callout_init
  - pci_intr_establish
- Stop proceeding packets when the driver is likely
  to stop for graceful ifconfig down

Tested on Rangeley (I354) and KVM (e1000)
Reviewed by msaitoh@
2014-07-01 10:35:18 +00:00
ozaki-r
3745c9bdf3 Lock IFQ operations when NET_MPSAFE
- Introduce NET_MPSAFE
  - not defined by default
- Add ifq_lock to protect ifnet#if_snd
- Initialize ifq_lock and lock IFQ operations
  when NET_MPSAFE

When NET_MPSAFE isn't defined, this modification
doesn't change its behavior and adds trivial
performance overheads.

Discussed with matt@ on tech-net
2014-07-01 10:16:02 +00:00
ozaki-r
f3479d05c4 Stop using callout randomly
nd6_dad_start uses callout when xtick > 0 while doesn't when
xtick == 0. So if we pass a random value ranging from 0 to N,
nd6_dad_start uses callout randomly. This behavior makes
debugging difficult.

Discussed in http://mail-index.netbsd.org/tech-kern/2014/06/25/msg017278.html
2014-07-01 07:51:29 +00:00
rtr
0dedd9772f fix parameter types in pr_ioctl, called xx_control() functions and remove
abuse of pointer to struct mbuf type.

param2 changed to u_long type and uses parameter name 'cmd' (ioctl command)
param3 changed to void * type and uses parameter name 'data'
param4 changed to struct ifnet * and uses parameter name 'ifp'
param5 has been removed (formerly struct lwp *) and uses of 'l' have been
       replaced with curlwp from curproc(9).

callers have had (now unnecessary) casts to struct mbuf * removed, called
code has had (now unnecessary) casts to u_long, void * and struct ifnet *
respectively removed.

reviewed by rmind@
2014-07-01 05:49:18 +00:00
htodd
0076051d87 Fix build for ipf tests. 2014-07-01 03:43:09 +00:00
htodd
1dc17e30a9 Fix build for debug with bpfjit. 2014-07-01 03:42:41 +00:00
taca
10703e1e09 Update root.cache entry. 2014-07-01 03:34:05 +00:00
taca
de6fa99741 Update root.cache to 2014060201.
Now B.ROOT-SERVERS.NET and C.ROOT-SERVERS.NET has an AAAA record.
2014-07-01 03:33:28 +00:00
matt
1dba1e789b Use MAP_ANONYNOUS (POSIX). Define MAP_ANON as MAP_ANONYMOUS. 2014-06-30 21:46:33 +00:00
alnsn
66c2729de9 Fix test directory. 2014-06-30 21:34:22 +00:00
jakllsch
663d51c704 Apply OpenBSD src/sys/dev/pci/if_wpireg.h 1.17. 2014-06-30 21:33:40 +00:00
alnsn
e281e658e4 Add new net/t_bpfjit test. 2014-06-30 21:32:59 +00:00
alnsn
d32d6008b1 Add bpfjit kernel tests for loading from mbuf chain. 2014-06-30 21:30:51 +00:00
jakllsch
5759b3c5f2 Sync with OpenBSD src/sys/dev/pci/if_wpireg.h 1.16. 2014-06-30 21:17:18 +00:00
joerg
1aed1443e6 IAS is clang specific. 2014-06-30 20:42:31 +00:00
maxv
374ecba24a This is weird; 'abort' already does all this, so simply use goto abort. 2014-06-30 17:51:31 +00:00
maxv
1d2bb5599c Reorder two variables and fix some comments. 2014-06-30 17:31:15 +00:00
maxv
8bd04c63bd If the interpreter is "", do not keep loading the script (which will later
fail), but return ENOEXEC directly.

ok christos@
2014-06-30 17:22:32 +00:00
darrenr
347b12f138 New IPv6 tests for ipnat parsing need to be built by make so that they can
be executed.
2014-06-30 17:02:55 +00:00
darrenr
6dd125be9b NetBSD has an entry for protocol #255 in /etc/protocols labeled "reserved"
so expect that in the parsing output instead of 255.
2014-06-30 16:14:35 +00:00
martin
59ac30731b Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).
2014-06-30 15:34:57 +00:00
njoly
7e0ae4d816 Use NZERO instead of hard-coded "20" value. 2014-06-30 14:58:59 +00:00
palle
b40cec791d sun4v: The maximum number of register windows is a constant and thus not available via the %ver register (sun4u only). Introduce a macro GET_MAXCWP that handles this, so cpu_switchto() works properly on sun4v. Other relevant reference to %ver can be adapted to use GET_MAXCWP as the sun4v port progresses. OK martin@ 2014-06-30 12:59:48 +00:00
ozaki-r
efbe326b4f Cleanup ppp_inproc
- Remove unnecessary variable isr
- Use pktq instead of rv to switch between inet/inet6 and other protocols

ok msaitoh@ and rmind@
2014-06-30 12:56:51 +00:00
ozaki-r
1a57926a63 Schedule pppoe_softintr only when a packet is enqueued 2014-06-30 10:03:41 +00:00
ozaki-r
2ee3427794 Acquire SW semaphore in wm_get_swsm_semaphore
It is required to serialize device drivers running on different CPUs.
The basic instructions are same as the official Intel driver.

ok msaitoh@
2014-06-30 06:09:44 +00:00
ozaki-r
fc4b038b3e Note micphy(4) 2014-06-30 05:52:24 +00:00
rmind
c4a0527d4f NPF: use BPF JIT by default. 2014-06-30 00:01:23 +00:00
jakllsch
202b86dcd4 drop trailing whitespace 2014-06-29 23:21:28 +00:00
jakllsch
98128fa573 Pass the scan result RSSI to the WPA code in a way that it understands. 2014-06-29 23:10:48 +00:00