Commit Graph

243364 Commits

Author SHA1 Message Date
knakahara
461bf703a5 eliminate unused softint for gif(4) Rx 2016-06-24 06:32:47 +00:00
knakahara
ccd8e6e6b3 eliminate gif(4) Tx softint
- remove gif_si from struct gif_softc
- directly call gifintr() from gif_output()
- rename gifintr() to gif_start()
- remove Tx softint processing from gif_set_tunnel() and gif_delete_tunnel()
2016-06-24 04:38:12 +00:00
palle
6dd7e5917a sun4v: Fix build issue introduced in previous commit - bus stuff is kernel only, so protect this with _KERNEL 2016-06-23 20:32:40 +00:00
skrll
70699ce203 Fix UVMHIST builds for kernels that don't include usb 2016-06-23 07:32:12 +00:00
pgoyette
b8fd0470b4 One more removal of a redefined symbol while loading dtrace module.
Should finish the issues with PR kern/51265
2016-06-23 06:44:52 +00:00
ozaki-r
e1b6735f05 Fix typo in a comment 2016-06-23 06:40:48 +00:00
pgoyette
df0e13d590 On NetBSD we already have strpbrk() in libkern, so we don't need to
provide another copy in the module.  Removes another 'redefined symbol'
error when loading the module.

Related to PR kern/51265
2016-06-23 05:19:42 +00:00
pgoyette
b491c2af6f When importing modules from the boot loader we should check for duplicate
module names both in the built-in list and in the list of previously
"pushed" modules.

While here, delay allocating the new 'struct module' until we've passed
the duplicate-name checks.
2016-06-23 04:41:03 +00:00
pgoyette
37f3aa12f4 Import fix from FreeBSD - see [1], [2] references below...
Fix DTrace's panic() action.

It would previously call into some unfinished Solaris compatibility code
and return without actually calling panic(9). The compatibility code is
unneeded, however, so just remove it and have dtrace_panic() call vpanic(9)
directly.

Fixes immediate problem in PR-51265.  However, this now reveals another
redefined symbol 'strpbrk' in the required module "solaris".


[1] https://svnweb.freebsd.org/changeset/base/281916
[2] http://lists.freebsd.org/pipermail/svn-src-head/2015-April/071019.html
2016-06-23 04:35:35 +00:00
abhinav
8dc887f792 Make all the global variables and functions static.
While there, remove unused variables and function prototypes.
Ok from christos
2016-06-23 03:58:13 +00:00
palle
21d6f4c7cd sun4v: add cbus driver - from OpenBSD 2016-06-22 20:12:59 +00:00
kre
bd9b00916f Remove tests of "dawn" and "sunset" in preparation for removing
them from parsedate() itself sometime soon.
2016-06-22 15:01:38 +00:00
knakahara
e41ad56b34 fix: locking about IFQ_ENQUEUE and ALTQ
- If NET_MPSAFE is not defined, IFQ_LOCK is nop. Currently, that means
  IFQ_ENQUEUE() of some paths such as bridge_enqueue() is called parallel
  wrongly.
- If ALTQ is enabled, Tx processing should call if_transmit() (= IFQ_ENQUEUE
  + ifp->if_start()) instead of ifp->if_transmit() to call ALTQ_ENQUEUE()
  and ALTQ_DEQUEUE().
  Furthermore, ALTQ processing is always required KERNEL_LOCK currently.
2016-06-22 10:44:31 +00:00
ozaki-r
4b54d200aa Remove unnecessary NULL checks of ifa->ifa_addr
If it's NULL, it should be a bug. There many IFADDR_FOREACH that don't do
NULL check. If it can be NULL, they should fire already.
2016-06-22 07:48:17 +00:00
skrll
0895dad130 KNF . Sort includes 2016-06-22 07:44:02 +00:00
nonaka
110bebd9f8 remove unused variable. 2016-06-22 05:39:49 +00:00
alnsn
ff92ad9fb1 Fix a typo: s/can be use/can be used/ 2016-06-21 21:53:55 +00:00
palle
3eb861951f sun4v: vbus_attach() bugfix - use device_private() 2016-06-21 20:36:02 +00:00
wiz
7d97070d76 Bump date for previous. 2016-06-21 14:31:48 +00:00
nonaka
8961de9db9 Add sdhc(4) at acpi. 2016-06-21 14:13:58 +00:00
nonaka
e496ed15f6 add sdhc(4) at acpi to i386 and amd64 GENERIC kernel config. 2016-06-21 11:37:25 +00:00
nonaka
038e2d2d24 Add sdhc(4) at acpi support 2016-06-21 11:35:47 +00:00
nonaka
6af4cd3352 Pass bus_dma(9) tag to allow for porting sdhc(4) at acpi. 2016-06-21 11:33:32 +00:00
ozaki-r
4badfc204a Make sure returning ifp from in6_select* functions psref-ed
To this end, callers need to pass struct psref to the functions
and the fuctions acquire a reference of ifp with it. In some cases,
we can simply use if_get_byindex, however, in other cases
(say rt->rt_ifp and ia->ifa_ifp), we have no MP-safe way for now.
In order to take a reference anyway we use non MP-safe function
if_acquire_NOMPSAFE for the latter cases. They should be fixed in
the future somehow.
2016-06-21 10:25:27 +00:00
ozaki-r
f7107c248e Protect if_byindex with pserialize 2016-06-21 10:21:04 +00:00
ozaki-r
e8cb777b69 Tweak route get outputs to make tests work
"expire" value of route get output is unexpectedly a negative value
on rump kernel for some reasons and the tests almost always fail
on babylon5. So just ignore it to make tests work for now. Should
fix it in the future.
2016-06-21 10:18:27 +00:00
dholland
350ce5f0f9 Revert version 1.19 (make ufid_ino in struct ulfs_ufid 64-bit) -- via
a twisty maze of marginal if not illegal type punning it breaks the
cleaner.

This will need to be done over, but it requires substantially more
mechanism and compat ioctls. Booo.
2016-06-21 06:14:40 +00:00
ozaki-r
f91dfc925e Make a bunch of test names self-descriptive 2016-06-21 05:04:16 +00:00
knakahara
36a04107c0 fix ATF net/carp failure 2016-06-21 03:54:04 +00:00
ozaki-r
57a1dc91ad Bump kernel version for ip_moptions and ip6_moptions changes
And maybe if_output_lock changes also needed a bump?
2016-06-21 03:34:22 +00:00
ozaki-r
43c5ab376f Replace ifp of ip_moptions and ip6_moptions with if_index
The motivation is the same as the mbuf's rcvif case; avoid having a pointer
of an ifnet object in ip_moptions and ip6_moptions, which is not MP-safe.

ip_moptions and ip6_moptions can be stored in a PCB for inet or inet6
that's life time is different from ifnet one and so an ifnet object can be
disappeared anytime we get it via them. Thus we need to look up an ifnet
object by if_index every time for safe.
2016-06-21 03:28:27 +00:00
ozaki-r
f634cbd046 Introduce if_index_t 2016-06-21 03:07:54 +00:00
ozaki-r
51db7a24e2 Fix nd6_output (if_output_lock conversion mistake) 2016-06-21 02:14:11 +00:00
knakahara
10b439df13 fix: kern/51259 2016-06-20 22:59:36 +00:00
maya
aa71a1dbfd Fix DEBUG build
While here, if DIAGNOSTIC panic to KASSERTMSG.

ok mlelstv@
2016-06-20 20:19:43 +00:00
christos
f4c1c0d146 put back commented out name resolution code that was gc'ed after previous
refactoring.
2016-06-20 19:14:35 +00:00
skrll
1326a919f5 Fix a comment 2016-06-20 14:18:30 +00:00
msaitoh
f2d4b942df B260 "Slot Power Limit" ECN. PCIe 3.1 ECN. September 18, 2015. 2016-06-20 10:02:43 +00:00
ozaki-r
bdb88f5405 Get rid of invalid KASSERT
The mbuf being checked is allocated in ieee80211_getmgtframe just above,
so checking NULL of its CTX is meaningless.

Pointed out by mlelstv@
2016-06-20 08:57:18 +00:00
knakahara
42837aa3a5 wm(4) can enable IFEF_START_MPSAFE now. 2016-06-20 08:34:59 +00:00
knakahara
69c0ff04b9 apply if_start_lock() to L2 callers which call ifp->if_start() of device derivers 2016-06-20 08:30:58 +00:00
knakahara
910b5ef147 introduce if_start_lock()
if_start_lock() calls ifp->if_start() holding KERNEL_LOCK if it is required.
2016-06-20 08:24:36 +00:00
knakahara
edf75a0767 fix: i386 build failure 2016-06-20 08:18:59 +00:00
knakahara
ded2d2ff82 fix: should not assert IFEF_OUTPUT_MPSAFE in bridge_output() 2016-06-20 08:14:41 +00:00
hannken
cd8006c457 Prevent use after free. Don't free an interrupt source still in use.
Ok: Kengo NAKAHARA
2016-06-20 08:14:06 +00:00
martin
115160e654 Fix a few bounds and instruction sequences generated in the PLT; exercised
by ASLR and verified to work with the aslr fixed random debug sysctls.
2016-06-20 08:12:25 +00:00
knakahara
bf1a57d3d3 fix: i386/ALL build failure 2016-06-20 08:08:13 +00:00
knakahara
0fb3bf480b tentative fix for ATF(net/if_bridge/t_bridge) 2016-06-20 07:23:56 +00:00
skrll
4fbf0ce543 More debug. 2016-06-20 07:13:07 +00:00
skrll
0ef85034cd Set ssc as early as possible 2016-06-20 07:12:00 +00:00