237614 Commits

Author SHA1 Message Date
dholland
d7cf929e20 Propagate fix from lfs:
For non-devices, have getattr (and thus stat) produce NODEV in the
rdev field, instead of leaking the address of the first direct block.
2015-09-01 06:09:23 +00:00
dholland
da32f22c2a Use the lfs dinode accessors in place of the ufs-derived ones.
(Mostly.)

The ufs-derived ones are fake structure member macros, which are gross
and not very safe. Also, it seems that a lot of places in the lfs code
were using the ffsv1 branch of them unconditionally, and this way it's
guaranteed all those places have been updated.

Found while doing this: for non-devices, have getattr produce NODEV
in the rdev field instead of leaking the address of the first direct
block.
2015-09-01 06:08:37 +00:00
ozaki-r
068f46fe61 Define NETHER in rumpkernel
This fixes failures of ATF tests running on rump_server.
2015-09-01 03:26:09 +00:00
pgoyette
06cd199b91 Allow redefinition of options (with only a warning message). Removal
of non-included options was already only a warning.

This also affects redefinition and removal of file-system and makeoption
entries.

Reviewed and OKd by uebayasi@
2015-09-01 01:50:14 +00:00
kamil
596fd5662e Constness correction for the getopt(3) function under REPLACE_GETOPT
Use the __UNCONST() macro, which is used in the other parts for the same
argument nargv, but under the !REPLACE_GETOPT namespace.
2015-09-01 01:28:17 +00:00
uebayasi
5f38d8b6fe Properly handle absolute prefix. 2015-09-01 01:17:56 +00:00
jnemeth
cd3c3a4632 If we're going to note the USSR shooting down civilian airliners,
we should be fair and pick on the USA as well.
2015-09-01 00:56:17 +00:00
uebayasi
4c482b808f Refactor emit file functions. No functional changes. 2015-09-01 00:38:30 +00:00
ozaki-r
13b8e486ae Fix building kernels w/o ether 2015-08-31 16:46:14 +00:00
pooka
1d2b607cca #if __NetBSD__ -> #if defined(__NetBSD__) 2015-08-31 12:57:45 +00:00
pgoyette
b899b8fdca Need to read closer - there was another occurrence of the same tyepo 2015-08-31 12:00:12 +00:00
pgoyette
2ff0a553cb Tyepo 2015-08-31 11:52:37 +00:00
skrll
735145acee Improve error handling in attach code. From t-hash. 2015-08-31 10:41:22 +00:00
christos
bbfa563e5b add missing files 2015-08-31 09:34:07 +00:00
ozaki-r
ac75483513 Fix building kernels w/o DIAGNOSTIC 2015-08-31 09:21:55 +00:00
ozaki-r
0dac802154 Reflect the current ARP cache implementation in tests
net.inet.arp.prune and net.inet.arp.refresh were obsoleted.
2015-08-31 08:08:20 +00:00
ozaki-r
7dc37e542b Remove obsolete global variables and sysctl MIBs 2015-08-31 08:06:30 +00:00
ozaki-r
8997ac8f09 Replace ARP cache (llinfo) with lltable/llentry
Highlights of the change are:
- Use llentry instead of llinfo to manage ARP caches
  - ARP specific data are stored in the hashed list
    of an interface instead of the global list (llinfo_arp)
- Fine-grain locking on llentry
- arptimer (callout) per ARP cache
  - the global timer callout with the big locks can be
    removed (though softnet_lock is still required for now)
- net.inet.arp.prune is now obsoleted
  - it was the interval of the global timer callout
- net.inet.arp.refresh is now obsoleted
  - it was a parameter that prevents expiration of active caches
  - Removed to simplify the timer logic, but we may be able to
    restore the feature if really needed

Proposed on tech-kern and tech-net.
2015-08-31 08:05:20 +00:00
ozaki-r
879526da38 Hook up lltable/llentry with the kernel (and rumpkernel)
It is built and initialized on bootup, but there is no user for now.

Most codes in in.c are imported from FreeBSD as well as lltable/llentry.
2015-08-31 08:02:44 +00:00
martin
cefb36e67b Revert previous, not needed after sys/conf/Makefile.kern.inc rev. 1.215. 2015-08-31 08:00:44 +00:00
ozaki-r
85e26631cc Import lltable/llentry from FreeBSD
lltable/llentry is new L2 nexthop cache data structures that
store caches in each interface (struct ifnet). It is imported
to replace the current ARP cache implementation that uses the
global list with the big kernel lock, and provide fine-grain
locking for cache operations. It is also planned to replace
NDP caches.

The code is based on FreeBSD's lltable/llentry as of r286629
and tweaked for NetBSD.
2015-08-31 07:56:58 +00:00
ozaki-r
730ee823a5 Allow rumpkernel to use rw_obj_* 2015-08-31 07:38:48 +00:00
ozaki-r
3aedc74443 Make rt_refcnt take into account rt_timer 2015-08-31 06:25:15 +00:00
ozaki-r
4e97073b73 Add tests for ICMP redirect timeout 2015-08-31 06:16:08 +00:00
uebayasi
e58cc73e94 Fix build. 2015-08-31 06:12:55 +00:00
uebayasi
1f8f4d47f5 Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.
2015-08-31 06:08:07 +00:00
uebayasi
09199f3246 Fix build of .s files. 2015-08-31 05:46:41 +00:00
ozaki-r
31874cd257 Remove leading whitespaces 2015-08-31 03:26:53 +00:00
uebayasi
b877b4042a Restore the old behavior of "maxusers" to allow the value to be overriden.
Problem reported by John D. Baker.
2015-08-31 02:58:25 +00:00
uebayasi
cf356c3efd Revert "Accept only relative paths ...". This will be redone in much better,
stricter way.
2015-08-30 21:58:19 +00:00
uebayasi
1effbb59ae Fix "Define compile rules in sys/conf/Makefile.kern.inc ...".
Use `.if !commands(xxx)' to check if `xxx' has a defined, overriden rule,
instead of `.if !targets(xxx)'.  The latter evaluates as true even when `xxx'
has an empty rule to define a dependency.
2015-08-30 21:16:10 +00:00
dholland
796a8727a3 Remove rubbish. 2015-08-30 18:27:26 +00:00
martin
ca3e144785 We preprocess .s files, so add ${INCLUDES} to AFLAGS 2015-08-30 18:20:27 +00:00
uebayasi
ce0411ffa7 A makeoptions `DEFWARNINGS', forcibly disabling all ${CC} warnings, is only
used by hpcmips's NULLCONF, which doesn't even build for other causes.

If some source doen't build and needs a workaround, that should be deal with
by modifying per-file ${CC} options (e.g. COPTS.foo.c+=-fno-xxx).  Let's not
use DEFWARNINGS any longer.
2015-08-30 14:06:17 +00:00
ryoon
ef8ca4bc6c loadfirmware is not NetBSD function. Fix error message. 2015-08-30 13:09:48 +00:00
skrll
983a464c2f Note where we're tracking dwc2 from now. 2015-08-30 13:03:00 +00:00
skrll
c7ae7fb6cf Update for latest dwc2 2015-08-30 13:02:42 +00:00
skrll
9c7e1469fe Merge conflicts 2015-08-30 12:59:59 +00:00
skrll
a0d8cb2cf5 KNF 2015-08-30 12:26:29 +00:00
jnemeth
8eaf165929 update client OS version as well 2015-08-30 10:49:57 +00:00
skrll
775ad73910 Whitespace 2015-08-30 10:48:15 +00:00
jnemeth
aca6703611 PR/49616 - Andreas Gustafsson -- bring modload example into era of MODULAR 2015-08-30 10:46:52 +00:00
martin
6e6b8dea4c Remove double spl(x), found by brainy. 2015-08-30 09:46:57 +00:00
mlelstv
aefad6da47 wishful thinking? 2015-08-30 08:46:44 +00:00
christos
d97cdf2252 Add NOLINT 2015-08-30 08:33:29 +00:00
uebayasi
e7a049ec66 Include opt_diagnostic.h. 2015-08-30 07:55:45 +00:00
uebayasi
b86d2cc9aa Generate opt_diagnostic.h for DIAGNOSTIC; define unused _DIAGNOSTIC until
thoroughly populated.
2015-08-30 07:52:30 +00:00
christos
e526101dfa print the configuration information early so that it does not get intermingled
with possible error prints.
2015-08-30 07:50:34 +00:00
uebayasi
f5d8ce0f6b Typo. 2015-08-30 07:35:11 +00:00
uebayasi
8e50ed8849 Move splash logic, keep Makefile.kern.inc clean. 2015-08-30 07:33:53 +00:00