Gleb Smirnoff
85efd7165f
Correct format is 'options<space><tab>'.
...
Submitted by: ru
2005-05-16 09:05:46 +00:00
Gleb Smirnoff
73e872668d
Make NETGRAPH_DEBUG a kernel option, so that it can't be turned off
...
without hacking source.
In collaboration with: ru, julian
2005-05-16 08:25:55 +00:00
Warner Losh
ce86397a98
Add convenience functions to get port and interface.
2005-05-16 06:58:43 +00:00
Warner Losh
6b1fe67d59
Print a warning once when trying to bring up interface before firmware load.
2005-05-15 21:02:51 +00:00
Yoshihiro Takahashi
f4acf7e936
Remove old epson note support.
2005-05-15 09:07:42 +00:00
Yoshihiro Takahashi
6959aa373c
- Add color tables for 16 colors mode and 8 colors mode, use a different
...
table on the pc98 console.
- Remove old epson note support.
2005-05-15 09:07:04 +00:00
Yoshihiro Takahashi
8763b97d37
- Mask an underline attribute on the pc98 console. It enables to use the same
...
color on the pc98 and the others.
- Remove old epson note support.
2005-05-15 08:59:00 +00:00
Yoshihiro Takahashi
b4d6f74dce
Remove the ADJUST_CLOCK ioctl on pc98. It's not used at all.
2005-05-15 07:35:49 +00:00
Bill Paul
433d61bb56
Add support for NdisMEthIndicateReceive() and MiniportTransferData().
...
The Ralink RT2500 driver uses this API instead of NdisMIndicateReceivePacket().
Drivers use NdisMEthIndicateReceive() when they know they support
802.3 media and expect to hand their packets only protocols that want
to deal with that particular media type. With this API, the driver does
not manage its own NDIS_PACKET/NDIS_BUFFER structures. Instead, it
lets bound protocols have a peek at the data, and then they supply
an NDIS_PACKET/NDIS_BUFFER combo to the miniport driver, into which
it copies the packet data.
Drivers use NdisMIndicateReceivePacket() to allow their packets to
be read by any protocol, not just those bound to 802.3 media devices.
To make this work, we need an internal pool of NDIS_PACKETS for
receives. Currently, we check to see if the driver exports a
MiniportTransferData() method in its characteristics structure,
and only allocate the pool for drivers that have this method.
This should allow the RT2500 driver to work correctly, though I
still have to fix ndiscvt(8) to parse its .inf file properly.
Also, change kern_ndis.c:ndis_halt_nic() to reap timers before
acquiring NDIS_LOCK(), since the reaping process might entail sleeping
briefly (and we can't sleep with a lock held).
2005-05-15 04:27:59 +00:00
Darren Reed
05793fcbf0
Enable IPFilter to correctly determine if BPF has been optioned into the
...
kernel it is being compiled against and subsequently enable using BPF for
packet matching in ipf rules.
2005-05-15 03:34:17 +00:00
George V. Neville-Neil
403cbcf59f
Fixes for various nits found by the Coverity tool.
...
In particular 2 missed return values and an inappropriate bcopy from
a possibly NULL pointer.
Reviewed by: jake
Approved by: rwatson
MFC after: 1 week
2005-05-15 02:28:30 +00:00
Gleb Smirnoff
32247f8629
- When carp interface is destroyed, and it affects global preemption
...
suppresion counter, decrease the latter. [1]
- Add sysctl to monitor preemption suppression.
PR: kern/80972 [1]
Submitted by: Frank Volf [1]
MFC after: 1 week
2005-05-15 01:44:26 +00:00
Yoshihiro Takahashi
914ee8ba4b
Fix my copyright.
2005-05-14 10:51:16 +00:00
Yoshihiro Takahashi
dfe1941a9c
cosmetic change.
2005-05-14 10:26:31 +00:00
Yoshihiro Takahashi
b22bf66063
- Move bus dependent defines to {isa,cbus}_dmareg.h.
...
- Use isa/isareg.h rather than <arch>/isa/isa.h.
Tested on: i386, pc98
2005-05-14 10:14:56 +00:00
Gleb Smirnoff
8253c060cf
Move queue element routines upper, so that all related
...
declarations are in one place, to improve readability.
No functional changes.
2005-05-14 10:07:17 +00:00
Gleb Smirnoff
1489164f6b
Use uma(9) for allocating netgraph items:
...
- ng_getqblk() simply runs uma_zalloc().
- ng_free_item() simply frees.
- ngq_mtx is pushed down under NETGRAPH_DEBUG.
- NGQF_FREE is removed.
Increase default maxalloc to 512.
Reviewed by: julian
2005-05-14 09:25:18 +00:00
Yoshihiro Takahashi
24072ca35b
- Move timerreg.h to <arch>/include and split i8253 specific defines into
...
i8253reg.h, and add some defines to control a speaker.
- Move PPI related defines from i386/isa/spkr.c into ppireg.h and use them.
- Move IO_{PPI,TIMER} defines into ppireg.h and timerreg.h respectively.
- Use isa/isareg.h rather than <arch>/isa/isa.h.
Tested on: i386, pc98
2005-05-14 09:10:02 +00:00
Yoshihiro Takahashi
bc3729b63f
MFi386: revision 1.614.
2005-05-14 08:52:04 +00:00
Alan Cox
7daa3570e4
Revert revision 1.164: pmap_qremove() does not require protection by
...
VM_LOCK_GIANT.
Discussed with: jeff
2005-05-14 05:09:11 +00:00
Peter Grehan
edaccfc8bb
Remove incorrect configuration setting that limited the Kauai ATA controller
...
to be master-only. The slave ATAPI drive on the Mac-Mini is now recognised.
2005-05-14 02:11:45 +00:00
Paul Saab
fdace17f81
Fix for a bug where the "nexthole" sack hint is out of sync with the
...
real next hole to retransmit from the scoreboard, caused by a bug
which did not update the "nexthole" hint in one case in
tcp_sack_option().
Reported by: Daniel Eriksson
Submitted by: Mohan Srinivasan
2005-05-13 18:02:02 +00:00
Xin LI
9242b38b0d
Bump __FreeBSD_version for POSIX ttyname_r(3) changes.
...
Forgotten by: me
Reminded by: mezz
2005-05-13 17:31:32 +00:00
Gleb Smirnoff
b3cf6808ce
In div_output() explicitly set m->m_nextpkt to NULL. If divert socket
...
is not userland, but ng_ksocket, then m->m_nextpkt may be non-NULL. In
this case we would panic in sbappend.
2005-05-13 11:44:37 +00:00
Gleb Smirnoff
0f4a3524dd
When used as divert socket we need to decouple stack when node is entered
...
from socket side. Use ng_queue_fn() instead of ng_send_fn().
2005-05-13 11:40:08 +00:00
Gleb Smirnoff
aacdb11479
Since there is no way to queue a function call to node, create
...
ng_queue_fn() - a queue version of ng_send_fn().
2005-05-13 11:35:02 +00:00
Peter Edwards
34ddec12b1
lockmgr(...,LK_DRAIN,...) requires a balancing LK_RELEASE: recent
...
INVARIANTS dependent checks in userret() pinpointed a missing
invocation here.
Remove an unused variable while here.
Reviewed By: bp@
Reported By: yongari@
MFC After: 3 days
2005-05-13 11:27:48 +00:00
Søren Schmidt
265da99ce9
Cleanup comments
2005-05-13 10:25:19 +00:00
Søren Schmidt
bb8a0cf2cf
Fix more ATAPI breakage.
...
Apparently some devices are very picky on details :)
2005-05-13 07:58:05 +00:00
Jacques Vidrine
032e56ae9b
Default hyperthreading on in -CURRENT. No seatbelts in CURRENT (^_^)
...
Requested by: peter, jhb
2005-05-13 00:57:04 +00:00
Jacques Vidrine
f6108b6158
Add a knob for disabling/enabling HTT, "machdep.hyperthreading_allowed".
...
Default off due to information disclosure on multi-user systems.
Submitted by: cperciva
Reviewed by: jhb
2005-05-13 00:10:56 +00:00
Nate Lawson
a6761eb377
If there is a problem during probe, be sure to free up any resources
...
allocated for it. The normal exit case handles this correctly so we
use it as well for errors.
Submitted by: pjd
Obtained from: Coverity Prevent
2005-05-12 22:35:08 +00:00
Robert Watson
83ae2ce161
Remove unimplemented ACL types.
...
Reported by: Hervé Kergourlay <herve dot kergourlay at atempo dot com>
2005-05-12 22:01:18 +00:00
John Baldwin
a4c24c66bc
Actually use the iterating variable in the for loop when trying to avoid
...
overflow.
Reported by: Vladislav Shabanov vs at rambler-co dot ru
MFC after: 1 week
Glanced at: alfred
2005-05-12 20:04:48 +00:00
Gleb Smirnoff
35fd572dcb
- Gather statistics about failed mbuf+cluster+ng_item allocations.
...
- Adjust comments and variables names in nfinfo.
2005-05-12 13:52:49 +00:00
Yoshihiro Takahashi
77bcc9ce35
Move the pc98 keymap define into pckbdtables.h because it should be used
...
only on the pckbd driver.
2005-05-12 13:39:31 +00:00
Yoshihiro Takahashi
164e09ddb4
- Move the NPX_DEBUG option to options.{i386,pc98} and use opt_npx.h.
...
- Move npx related defines to {i386,pc98}/include/npx.h to remove #include
{isa,cbus}.h.
2005-05-12 12:47:41 +00:00
Yoshihiro Takahashi
d6c331a30d
Remove unused IO_NPX* defines.
2005-05-12 12:36:31 +00:00
Peter Grehan
10b00dd4f3
The final test in unlock_and_deallocate() to determine if GIANT needs to be
...
unlocked wasn't updated to check for OBJ_NEEDGIANT. This caused a WITNESS
panic when debug_mpsafevm was set to 0.
Approved by: jeffr
2005-05-12 04:09:41 +00:00
Pawel Jakub Dawidek
07ebf8c8c3
We don't use 'mp' variable, but we do want to mount devfs, ehh.
2005-05-12 01:49:51 +00:00
Paul Saab
0077b0163f
When looking for the next hole to retransmit from the scoreboard,
...
or to compute the total retransmitted bytes in this sack recovery
episode, the scoreboard is traversed. While in sack recovery, this
traversal occurs on every call to tcp_output(), every dupack and
every partial ack. The scoreboard could potentially get quite large,
making this traversal expensive.
This change optimizes this by storing hints (for the next hole to
retransmit and the total retransmitted bytes in this sack recovery
episode) reducing the complexity to find these values from O(n) to
constant time.
The debug code that sanity checks the hints against the computed
value will be removed eventually.
Submitted by: Mohan Srinivasan, Noritoshi Demizu, Raja Mukerji.
2005-05-11 21:37:42 +00:00
Olivier Houchard
e85d3fc3c8
Don't forget to copy the TP when forking, or bad things will happen to the
...
child process if it tries to use threads.
2005-05-11 21:20:42 +00:00
Christian Brueffer
befb7f333f
Fix three typos in comments. Two of them obtained from OpenBSD.
...
MFC after: 3 days
2005-05-11 21:10:35 +00:00
Pawel Jakub Dawidek
b8bc5373e1
Remove unised variable introduced by accident in rev 1.168.
...
Found by: Coverity Prevent analysis tool
2005-05-11 19:50:34 +00:00
Pawel Jakub Dawidek
3ac6c13bd4
cp can't be NULL.
...
Noticed by: Coverity Prevent analysis tool
2005-05-11 19:36:56 +00:00
Pawel Jakub Dawidek
b957751627
gp can't be NULL.
...
Noticed by: Coverity Prevent analysis tool
2005-05-11 19:35:43 +00:00
Pawel Jakub Dawidek
f850b2781f
Plug memory leaks.
...
Found by: Coverity Prevent analysis tool
2005-05-11 19:27:38 +00:00
Alexander Kabaev
42e1d99cc8
Do not dereference dvp pointer before doing a NULL check.
...
Noticed by: Coverity Prevent analysis tool.
2005-05-11 19:08:38 +00:00
Alexander Kabaev
59195c3a3d
Plug a potential memory leak.
...
Noticed by: Coverity Prevent analysis tool.
2005-05-11 18:53:14 +00:00
Søren Schmidt
c46e1f5333
Add new Intel PCI ID's for the ICH7 chips (untested).
2005-05-11 18:29:15 +00:00