Commit Graph

217560 Commits

Author SHA1 Message Date
msaitoh
3572840d82 - Rename PHY related flags for the consistency. It's the same as FreeBSD.
- Remove BGE_10_100_ONLY flag because this was not used.
  For 10/100 devices, when calling mii_attach(), mask BMSR_EXTSTAT flag to
  not to check Gigabit flags. It's the same as FreeBSD.
2013-03-19 04:10:12 +00:00
msaitoh
3efff5d852 Fix three bugs:
- An workaround for TX data corruption is only for 5719 "A0".
  Fix the wrong evaluation.
- Check BGE_RXBDFLAG_IPV6 flag for 5717_PLUS case.
  Note that {tcp,udp}6csum flag is currently not added in the capability.
- Add delay after clearing BGE_MACMODE_TBI_SEND_CFGS for the link checking.
  FreeBSD has the same delay().
2013-03-19 03:40:16 +00:00
msaitoh
4ed481f549 Fix Buffer Manager Mbuf Pool settings which was modified in rev. 1.202. 2013-03-19 02:56:16 +00:00
christos
c902a41f06 can we please stop breaking the build? These get compiled by the kernel
environment when there are no userland header files!
2013-03-19 02:07:43 +00:00
agc
ca99397396 fix some lint on i386, noticed by Greg Troxel, thanks! 2013-03-19 01:00:16 +00:00
pooka
ac8531a7b9 Terminate result of readlink(). Makes writefilewatch_setup() work in
cases when the buffer doesn't accidentally contain suitable zeroes.

Thanks to Juan RP who debugged this with me!
2013-03-18 21:00:52 +00:00
martin
19ec7b0e9f Mark a few more test cases known to only work by chance as failing
and point to PR 47665.
Julio: how do we make such cases not fail when they actually happen to
work (by pure luck)?
2013-03-18 20:03:56 +00:00
plunky
5ec364d4d9 C99 section 6.7.2.3 (Tags) Note 3 states that:
A type specifier of the form

	enum identifier

  without an enumerator list shall only appear after the type it
  specifies is complete.

which means that we cannot pass an "enum vtype" argument to
kauth_access_action() without fully specifying the type first.
Unfortunately there is a complicated include file loop which
makes that difficult, so convert this minimal function into a
macro (and capitalize it).

(ok elad@)
2013-03-18 19:35:35 +00:00
gdt
2431ad86cc Initialize variable used as (conditional) result parameter.
ip6_insertfraghdr either sets a result parameter or returns an error.
While the caller only uses the result parameter in the non-error case,
knowing that requires cross-module static analysis, and that's not
robust against distant code changes.  Therfore, set ip6f to NULL
before the function call that maybe sets it, avoiding a spuruious
warning and changing the future possible bug from an unitialized
dereference to a NULL deferrence.
2013-03-18 19:31:39 +00:00
para
3964c3f0c8 i386 pmap.h got a forward declarition for vm_map from systm.h
insert a forward declaration
2013-03-18 16:32:32 +00:00
pooka
ea6c5ef319 add librumphijack to the list 2013-03-18 15:55:43 +00:00
para
82aa1e7edd calculate vnode cache size based on the resource it gets allocated from
this stops setting kern.maxvnodes to high so it exhausts available space in kmem

http://mail-index.netbsd.org/tech-kern/2013/03/08/msg015095.html
2013-03-18 13:36:21 +00:00
pooka
e3425032cb Move the rumpuser_net set of hypercalls to be a private to the sockin
component.  This cleans up the generic hypercall interfaces from ones
specific to only one component.  They should always have been private,
but the infrastructure to "make it so" didn't exist earlier.

no functional change
2013-03-18 13:14:10 +00:00
jmcneill
d35e9908e8 If there are no devices attached to the mux and software does
WSxxxIO_SETVERSION, the change doesn't actually get applied to the event
source as wsmux hands off processing of these ioctls to attached devices.
Handle these ioctls directly from the mux device instead of passing them
through, to correct an issue that prevented keyboards and mice from working
in X if there were zero devices attached when the X server started.
2013-03-18 11:40:39 +00:00
rmind
4183ea5f53 Always use BPF JIT for NPF rules (using BPF code) if it is available. 2013-03-18 02:24:45 +00:00
rmind
543d2971ab - Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.
2013-03-18 02:17:49 +00:00
rmind
9ef92dc6c0 npf_session_establish: fix previous. 2013-03-18 00:17:20 +00:00
rmind
3b8a2fcf9c Add npf_session_trackable_p() and npf_session_fillent() for the common code.
Simplify.  No functional change.
2013-03-18 00:14:57 +00:00
uwe
92646e4a5d Bump date for previous (PR #45981): the change ("c") command starts a
new cycle.
2013-03-17 21:13:04 +00:00
uwe
136610e484 The change ("c") command should start a new cycle.
Apply one line patch I posted in PR #45981 and document this in the
manual page.
2013-03-17 21:02:54 +00:00
msaitoh
f9f6bf4df0 No functional change:
- Fix comment
 - Use macro
 - Remove unused macro
2013-03-17 18:46:10 +00:00
martin
0d8a321eb6 Track what parts of initialization were successfull and only revert those
during detach - prevents a panic on shutdown when, for example, interrupt
mapping failed. Problem reported by Raymond Phillips on port-i386.
2013-03-17 18:30:00 +00:00
mlelstv
9e59300471 For MFS, no longer use heuristic based on rlimit to determine mmap size.
This is no longer functional with current memory allocation routines.
2013-03-17 12:25:36 +00:00
mlelstv
b36c60d9c0 Handle ALL_KERNELS selection 2013-03-17 12:19:57 +00:00
jmmv
371c38e8cf These tests are flaky so mark them as expected failures... when they fail.
See PR kern/47661.
2013-03-17 06:29:55 +00:00
jmmv
63dd2c4874 Apply upstream change 1b82d0fe146031526b73454cc64bca7ee1f5b87a:
Fix fs_test:cleanup__mount_point__busy

The first call to kyua_fs_cleanup in this test was supposed to fail as
it is exercising an error path.  But the check was reversed, expecting
no error.  Fix this obvious mistake.
2013-03-17 05:56:46 +00:00
jmmv
051a1f53b0 Do not special-case qemu when expecting the failure due to PR kern/43997.
I am sporadically observing this in my real machine as well.  It's harder
to trigger, but it happens.
2013-03-17 05:47:48 +00:00
jmmv
33af199a4a Try to trigger the cond_timedwait_race race several times.
Sometime this tests passes (after all, it's exercising a race condition) and
when it does it's reported as a failure.  By giving the test a few chances
to expose the problem, we prevent this noisy signal.  When the race is really
addressed, this will start failing consistently as expected.
2013-03-17 05:13:13 +00:00
jmmv
5ac530f373 Mark two routinely-broken tests as expected failures referencing PR lib/47660. 2013-03-17 05:02:13 +00:00
nakayama
99b8f1ddbf Remove duplicate source files. 2013-03-17 04:47:16 +00:00
jmmv
2be7ebf7e2 Remove unnecessary cleanup routines. 2013-03-17 04:46:06 +00:00
nakayama
e923193871 Revert previous. christos fixed the root cause. 2013-03-17 04:45:46 +00:00
jmmv
042bde1174 fexecve is not implemented, so mark the test as an expected failure.
While doing this, clean this whole thing: do not define a useless cleanup
routine and wait for the subprocess to finish instead of using sleep.
2013-03-17 04:35:59 +00:00
msaitoh
52f37720c3 - ADD support for BCM5719, BCM5720, BCM57766, BCM57782 and BCM57786.
- Use macros.
- Remove unused code.
- Sync with the latest {Free,Open}BSD's bge.
2013-03-17 04:06:39 +00:00
jmmv
ebd45a6ca9 Mark some long-standing failures as known failures.
The offending tests are these:
- t_filter_exec: f26, f27.
- t_filter_parse: i17.
- t_nat_exec: n12.

These tests are confirmed to fail in NetBSD/current under amd64, i386 and
sparc as reported by the continuous testing systems.
2013-03-17 03:00:05 +00:00
jmmv
2f611e9f98 Fix the t_renamerace:lfs_renamerace_dirs test on fast machines.
This test was failing on my machine when run natively but not causing any
problems when run within qemu, and the failure was "mkdir: No space left
on device".

My understanding of the issue is that this test overflowed the temporary
disk image due to its high rate of file churn and the lfs_cleanerd not
being able to keep up.  Note that this test is capped by time, not number
of operations, so this is why the problem does not show up in a slow
emulated system.

To fix this, just bump the test file system image limit a little bit.
(I tried increasing the frequency at which lfs_cleanerd does its thing,
but it wasn't enough.)
2013-03-17 02:48:31 +00:00
christos
d3d55324bd check return values 2013-03-17 02:23:31 +00:00
christos
3e4fc0a448 Add RCSID
Fix out of date comment
2013-03-17 02:13:10 +00:00
christos
12ea7fb385 add RCSID; use clr for pattern 2013-03-17 02:12:41 +00:00
jmmv
0818487da7 Simplify test_mount and log errors.
If mount_tmpfs fails, show what the stderr output of the command was instead
of failing without details.

While doing this, remove the stupidity to deal with the optional arguments
to the test_mount routine.
2013-03-17 01:16:45 +00:00
christos
86f7664c95 fix typo 2013-03-17 01:13:00 +00:00
christos
ab495c9f87 undo sparc64 kludge 2013-03-17 00:47:13 +00:00
christos
c6a7d21bf0 now in common/lib/libc/arch/sparc64/string 2013-03-17 00:45:03 +00:00
christos
74b509107c no more duplicate copy of the memcpy code. 2013-03-17 00:44:16 +00:00
christos
c60a6af952 now live in common/lib/libc/arch/sparc64/string 2013-03-17 00:43:45 +00:00
christos
ca8f29b6bf Use a single copy of the source. 2013-03-17 00:42:31 +00:00
christos
9a96afddbd order too 2013-03-16 23:51:39 +00:00
christos
8ef63ebd7d uniquefy, really should fix this so there are no dup rules. 2013-03-16 23:37:43 +00:00
riz
bf1b27dcc7 NetBSD 6.0 was released several months ago; time to garbage
collect this document.

It's not clear that src/doc is the best place to manage this
information;  a "NetBSD-7" file may or may not be forthcoming
shortly.
2013-03-16 23:35:01 +00:00
christos
ca64aca745 move the useful macros somewhere where they can be used in userland. 2013-03-16 23:04:22 +00:00