Commit Graph

228951 Commits

Author SHA1 Message Date
christos
7a7434fee0 import from FreeBSD 2014-08-01 13:50:55 +00:00
wiz
fc7115c3f4 Fix an off by one bug in apropos.
The bug is in the html output where some garbage characters are
seen in the context match output.

From Abhinav Upadhyay in PR 49058.
2014-08-01 12:55:00 +00:00
skrll
caf15fb7f4 Whitespace. 2014-08-01 05:53:31 +00:00
msaitoh
b35dbdb2a7 wm(4): Add internal SERDES support older than 82575. 2014-08-01 05:01:41 +00:00
msaitoh
c1a223be39 We suport internal SEDES function older than 82575. 2014-08-01 04:57:25 +00:00
matt
5f1230b24d powerpc*-netbsd*: include netbsd-elf.h after sysv4.h 2014-07-31 22:58:40 +00:00
mrg
332faa4f02 call ->pr_abort(so) now instead of generic PRU_ABORT.
fixes kern/49056, and appears to remove the only missed PRU_ABORT call.
2014-07-31 20:28:59 +00:00
pooka
e1b2b6b0a7 add missing \n
from Robert Millan <rmh@freebsd.org> via rumpkernel-users
2014-07-31 15:55:08 +00:00
rtr
da517405a0 release mbuf on failure of PRU_SEND 2014-07-31 15:16:06 +00:00
isaki
7dd697a463 Remove the variable not used anymore.
sync with x68k/pmap_bootstrap.c,v 1.21 (in 2001).
2014-07-31 14:41:19 +00:00
rtr
a6b73d7819 * remove declarations of unp_bind, unp_discard, unp_disconnect1, unp_drop,
unp_shutdown1, unp_internalize and unp_output functions from sys/un.h
  and  instead declare them as static in uipc_usrreq.c with prototype
  declarations as necessary.

* remove struct lwp * parameter from unp_output() while here and just
  use curlwp instead.

as discussed with rmind
2014-07-31 14:12:57 +00:00
roy
604a247d2a Note import of dhcpcd-6.4.3 2014-07-31 14:05:57 +00:00
rtr
833e041dec split PRU_CONNECT, PRU_RCVOOB and PRU_SENDOOB into separate functions
(all implemented as EOPNOTSUPP).
2014-07-31 13:21:33 +00:00
maxv
2c7a581fe9 Just return sys_open(). COMPAT_10 will be handled internally.
ok christos@
2014-07-31 12:35:33 +00:00
joerg
a86549a1aa Fix macro spelling. 2014-07-31 12:11:37 +00:00
skrll
3dc5e80777 Comments. 2014-07-31 10:44:58 +00:00
skrll
4f9156401c Trailing whitespace 2014-07-31 08:04:57 +00:00
skrll
4b08fc3334 Trailing whitespace. 2014-07-31 07:14:42 +00:00
skrll
7ab1673c04 Trailing whitespace 2014-07-31 07:14:03 +00:00
ozaki-r
a2084f3bc9 Define IFADDR_FOREACH_SAFE for on-the-fly element removal in a loop
We have to use it when we purge an address element in an ifaddr loop.

This change restores the original behavior that was accidentally degraded.
2014-07-31 06:35:47 +00:00
matt
4bb3f00485 Remove a leftover _XXX 2014-07-31 06:26:06 +00:00
rtr
81c514052c add missing KASSERT(req != PRU_XXX) to mpls_usrreq() for PRUs that have
already been split.
2014-07-31 05:37:00 +00:00
rtr
cdb54b43bf fix missed conversion to call to pr_connect() from pr_generic() when
PRU_CONNECT split was done.

-                       error = (*so->so_proto->pr_usrreqs->pr_generic)(so,
-                           PRU_CONNECT, NULL, nam, NULL, l);
+                       error = (*so->so_proto->pr_usrreqs->pr_connect)(so, nam);

without this change KASSERT() would be triggered if raw send needs to
perform a connect.
2014-07-31 05:13:53 +00:00
msaitoh
0a750eb0a6 Fix fiber link problem (PR#44776 and PR#30880). Tested with 82543GC, 82544EI,
82545EM, 82546GB 82571EB and 82572EI fiber cards.
- Don't use the RXCFG interrupt. It's not required and the interrupt is very
  heavy (a lot of interrupts). Same as {Free,Open}BSD.
- Modify wm_tbi_mediachange() to be close to em_setup_fiber_serdes_link()
  of {Free,Open}BSD. At least, don't forget to set duplex setting.
- WM_T_82545 is not 1000base-SX but 1000base-LX. Same as FreeBSD. Tested with
  my own 82545EM card.
2014-07-31 03:50:09 +00:00
rtr
892163b8e9 split PRU_DISCONNECT, PRU_SHUTDOWN and PRU_ABORT function out of
pr_generic() usrreq switches and put into separate functions

   xxx_disconnect(struct socket *)
   xxx_shutdown(struct socket *)
   xxx_abort(struct socket *)

   - always KASSERT(solocked(so)) even if not implemented
   - replace calls to pr_generic() with req =
PRU_{DISCONNECT,SHUTDOWN,ABORT}
     with calls to pr_{disconnect,shutdown,abort}() respectively

rename existing internal functions used to implement above functionality
to permit use of the names for xxx_{disconnect,shutdown,abort}().

   - {l2cap,sco,rfcomm}_disconnect() ->
{l2cap,sco,rfcomm}_disconnect_pcb()
   - {unp,rip,tcp}_disconnect() -> {unp,rip,tcp}_disconnect1()
   - unp_shutdown() -> unp_shutdown1()

patch reviewed by rmind
2014-07-31 03:39:35 +00:00
msaitoh
60824f6cf1 Fix a bug that I added in rev. 1.273. Some old card stopped at the attach
function with ""Please update the Bootagent" message. The code to clear the
SWSM_SMBI bit is only for 8257[1234] and 82583.
2014-07-31 02:54:46 +00:00
ozaki-r
705f336a73 Make carp_suppress_preempt global back
It is still accessed by if_pfsync.c.

This unbreaks the build of i386 kernel.
2014-07-31 02:37:25 +00:00
ozaki-r
f46609a687 Define IFNET_EMPTY() and replace !IFNET_FIRST() with it
No functional change.
2014-07-31 02:21:51 +00:00
matt
4423977ff5 Use symbolic constant for SPR. Fix comment. 2014-07-31 01:04:00 +00:00
matt
bf50eedd07 Don't use numeric constants for SPR. Use the symbolic name (SPR_PIR).
Add DBSR_BRT to KASSERT
2014-07-31 01:01:55 +00:00
ozaki-r
24c5a7a88b KNF 2014-07-31 00:58:02 +00:00
ozaki-r
1c41592329 Make local functions/variables static
No functional change.
2014-07-31 00:56:23 +00:00
joerg
76da57e7f2 Replace mfpir with mfspr r, 286. The Power ISA and GAS disagree on the
semantics of this instruction, so prefer the well defined replacement.
2014-07-30 23:56:01 +00:00
matt
e2c2dd7510 Fix diagnostic trap to be correct. PSL_EE@l would be sign-extended and this
could never match the result of the andi. before it.
2014-07-30 23:27:55 +00:00
joerg
d335762e53 Correct last, ha+l uses lis+addi, so use h+l. 2014-07-30 23:15:23 +00:00
joerg
efa045c031 Build 32bit constant with lis+ori, not lis+addi. The instructions
differ on the sign extension handling of the immediate.
2014-07-30 22:45:21 +00:00
skrll
d9fb42e132 Apply some errata workarounds 2014-07-30 20:52:18 +00:00
joerg
b5268e2784 Second argument of config_rootfound is void *, so discard const
explicitly.
2014-07-30 19:33:56 +00:00
roy
648f3093d2 Sync 2014-07-30 15:47:32 +00:00
roy
b15082aeb8 Import dhcpcd-6.4.3 with the following changes:
*  Correct DHCPv6 Prefix Delegation option decoding
  *  Poll interfaces on BSD for IFF_RUNNING if link state cannot be obtained
  *  Check for an IA to use in DHCPv6 lease validation
  *  Warn about exceeding IDGEN_RETRIES when a stable private address cannot
     be obtained
  *  Fix DHCP option overload handling, thanks to Tobias Stoeckmann
2014-07-30 15:44:09 +00:00
palle
9f7740bf7a Fix ALTERNATE_GLOBALS so it at least works on sun4u - using a scratch register is not a good idea... 2014-07-30 13:50:33 +00:00
ozaki-r
64d3f382b2 Call etherinit from ifinit1 only when it is required
This unbreaks the builds of kernels that don't build if_ethersubr.c.
2014-07-30 13:32:09 +00:00
skrll
e1c6069cc7 Use lower case. No functional change. 2014-07-30 13:31:17 +00:00
macallan
3b8bcbb861 fix tpyo 2014-07-30 12:45:44 +00:00
msaitoh
e55f8c9174 regen. 2014-07-30 12:35:11 +00:00
msaitoh
d28d31ae57 Add Intel Xeon E3-1200 v3 Host Bridge, DRAM. 2014-07-30 12:34:12 +00:00
joerg
edb8772400 pq3pci_config_addr_read is only used in a #if 0 block, so hide it under
the same condition.
2014-07-30 10:50:54 +00:00
rtr
ad6ae402db split PRU_CONNECT function out of pr_generic() usrreq switches and put
into seaparate functions

  xxx_listen(struct socket *, struct mbuf *)

  - always KASSERT(solocked(so)) and KASSERT(nam != NULL)
  - replace calls to pr_generic() with req = PRU_CONNECT with
    pr_connect()
  - rename existin {l2cap,sco,rfcomm}_connect() to
    {l2cap,sco,rfcomm}_connect_pcb() respectively to permit
    naming consistency with other protocols functions.
  - drop struct lwp * parameter from unp_connect() and at_pcbconnect()
    and use curlwp instead where appropriate.

patch reviewed by rmind
2014-07-30 10:04:25 +00:00
ozaki-r
eb39a9c3b5 Fix typo in comment 2014-07-30 07:44:00 +00:00
skrll
2240c051e2 Fixup some comments. 2014-07-30 07:20:34 +00:00