]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoUse _once() to initialize the pthread key for thread-local storage to hold
jhb [Mon, 21 Dec 2009 19:43:23 +0000 (19:43 +0000)]
Use _once() to initialize the pthread key for thread-local storage to hold
the results of localtime() instead of using a pthread mutex directly.

MFC after: 1 week

14 years agoImplement NFSv4 ACL support for UFS.
trasz [Mon, 21 Dec 2009 19:39:10 +0000 (19:39 +0000)]
Implement NFSv4 ACL support for UFS.

Reviewed by: rwatson

14 years agoAdd support of using environment variable BURNCD_SPEED to specify
delphij [Mon, 21 Dec 2009 19:27:52 +0000 (19:27 +0000)]
Add support of using environment variable BURNCD_SPEED to specify
recodring speed.

PR: bin/140530
Submitted by: Alexander Best <alexbestms wwu.de>
MFC after: 1 month

14 years agoPlug a memory leak.
delphij [Mon, 21 Dec 2009 19:18:27 +0000 (19:18 +0000)]
Plug a memory leak.

PR: bin/141835
Submitted by: Henning Petersen <henning.petersen t-online.de>
MFC after: 2 weeks

14 years agoPlug a memory leak.
delphij [Mon, 21 Dec 2009 19:15:30 +0000 (19:15 +0000)]
Plug a memory leak.

PR: bin/141836
Submitted by: Henning Petersen <henning.petersen at t-online.de>
MFC after: 2 weeks

14 years agoCast time_t values to intmax_t and use %jd with printf.
jh [Mon, 21 Dec 2009 17:41:57 +0000 (17:41 +0000)]
Cast time_t values to intmax_t and use %jd with printf.

OK'ed by: delphij
Approved by: trasz (mentor)

14 years agoRemove non-working special case for pipe(2) from amd64-fbsd32.c and
jh [Mon, 21 Dec 2009 17:38:13 +0000 (17:38 +0000)]
Remove non-working special case for pipe(2) from amd64-fbsd32.c and
i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer
argument properly and re-add special handling for pipe(2) return value
to print_syscall_ret().

PR: bin/120870
Approved by: trasz (mentor)

14 years agoNote that sockstat(1) does not display kernel-owned sockets.
des [Mon, 21 Dec 2009 17:23:04 +0000 (17:23 +0000)]
Note that sockstat(1) does not display kernel-owned sockets.

Submitted by: infofarmer@
MFC after: 2 weeks

14 years agoDon't hide an error if the initial attempt to program a watchdog from
ru [Mon, 21 Dec 2009 15:50:37 +0000 (15:50 +0000)]
Don't hide an error if the initial attempt to program a watchdog from
within watchdogd(8) fails.  This is also consistent with watchdog(8).

14 years agoIf none of the watchdogs supports the requested timeout value, the
ru [Mon, 21 Dec 2009 15:12:56 +0000 (15:12 +0000)]
If none of the watchdogs supports the requested timeout value, the
code returns EOPNOTSUPP, not EINVAL.

14 years agoMove cursor position after putting a character.
nyan [Mon, 21 Dec 2009 14:59:23 +0000 (14:59 +0000)]
Move cursor position after putting a character.

MFC after: 1 week

14 years agoAdd "FreeBSD-" to the beginning of the filenames for the ISO images.
kensmith [Mon, 21 Dec 2009 14:42:35 +0000 (14:42 +0000)]
Add "FreeBSD-" to the beginning of the filenames for the ISO images.
People who collect ISOs from more than just us have been requesting
this for a while.

MFC after: 1 week

14 years ago- Eliminated hard sentence breaks.
ru [Mon, 21 Dec 2009 14:39:46 +0000 (14:39 +0000)]
- Eliminated hard sentence breaks.
- Fixed spelling of EINVAL.
- Sorted sections.

14 years agoRemoved one more Alpha leftover.
ru [Mon, 21 Dec 2009 12:32:13 +0000 (12:32 +0000)]
Removed one more Alpha leftover.

14 years agoVI_OBJDIRTY vnode flag mirrors the state of OBJ_MIGHTBEDIRTY vm object
kib [Mon, 21 Dec 2009 12:29:38 +0000 (12:29 +0000)]
VI_OBJDIRTY vnode flag mirrors the state of OBJ_MIGHTBEDIRTY vm object
flag. Besides providing the redundand information, need to update both
vnode and object flags causes more acquisition of vnode interlock.
OBJ_MIGHTBEDIRTY is only checked for vnode-backed vm objects.

Remove VI_OBJDIRTY and make sure that OBJ_MIGHTBEDIRTY is set only for
vnode-backed vm objects.

Suggested and reviewed by: alc
Tested by: pho
MFC after: 3 weeks

14 years agoFix a handful of issues with via agp support.
rnoland [Mon, 21 Dec 2009 03:28:05 +0000 (03:28 +0000)]
Fix a handful of issues with via agp support.

  * Read the pci capability register to identify AGP 3 support
  * Add missing smaller aperture sizes for AGP3 chips.
  * Fix the aperture size calculation on AGP2 chips.
    All sizes between 32M and 256M reported as 256M.
  * Add \n to error string.

This all seems to get the CLE266 EPIA-M board agp working properly, now
back to work on drm.

MFC after: 2 weeks

14 years agoFix indentation.
ed [Sun, 20 Dec 2009 22:55:27 +0000 (22:55 +0000)]
Fix indentation.

14 years agoDisable jumbo frame support for PCIe VT6130/VT6132 controllers.
yongari [Sun, 20 Dec 2009 19:45:46 +0000 (19:45 +0000)]
Disable jumbo frame support for PCIe VT6130/VT6132 controllers.
Quite contrary to VT6130 datasheet which says it supports up to 8K
jumbo frame, VT6130 does not seem to send jumbo frame that is
larger than 4K in length. Trying to send a frame that is larger
than 4K cause TX MAC hang.
Even though it's possible to allow 4K jumbo frame for VT6130, I
think it's meaningless to allow 4K jumbo frame. I'm not sure VT6132
also has the same limitation but I guess it uses the same MAC of
VT6130.

14 years agoVT6130 datasheet was wrong. If VT6130 receive a jumbo frame the
yongari [Sun, 20 Dec 2009 19:11:32 +0000 (19:11 +0000)]
VT6130 datasheet was wrong. If VT6130 receive a jumbo frame the
controller will split the jumbo frame into multiple RX buffers.
However it seems the hardware always dma the frame to 8 bytes
boundary for the split frames. Only the first part of the fragment
can have 4 byte alignment and subsequent buffers should be 8 bytes
aligned. Change RX buffer the alignment requirement to 8 bytes from
4 bytes.

14 years agoCorrect fragment bit definition in comments.
yongari [Sun, 20 Dec 2009 18:53:34 +0000 (18:53 +0000)]
Correct fragment bit definition in comments.

14 years agoAdd VIA CX700/VX800 chipsets SATA/PATA support.
mav [Sun, 20 Dec 2009 16:23:11 +0000 (16:23 +0000)]
Add VIA CX700/VX800 chipsets SATA/PATA support.

PR: kern/121521
Tested by: Alex Deiter

14 years agoFairly set master/slave shared PIO/WDMA timings on ITE 821x controllers.
mav [Sun, 20 Dec 2009 15:03:57 +0000 (15:03 +0000)]
Fairly set master/slave shared PIO/WDMA timings on ITE 821x controllers.
Previous implementation could only limit mode, but not rise it back.

14 years agoAvoid sharing the file descriptor of the output file with traced
jh [Sun, 20 Dec 2009 11:00:53 +0000 (11:00 +0000)]
Avoid sharing the file descriptor of the output file with traced
processes by setting the FD_CLOEXEC flag for the output file.

PR: bin/140493
Submitted by: Erik Lax
OK'ed by: delphij
Approved by: trasz (mentor)

14 years agoAdd fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
jh [Sun, 20 Dec 2009 10:58:34 +0000 (10:58 +0000)]
Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.

OK'ed by: delphij
Approved by: trasz (mentor)

14 years agoThe service command is an easy interface to the rc.d system.
dougb [Sun, 20 Dec 2009 01:34:12 +0000 (01:34 +0000)]
The service command is an easy interface to the rc.d system.
Its primary purpose is to start and stop services provided by
the rc.d scripts, however it can also be used to list the scripts
using various criteria.

14 years agoSwap VGE_TXQTIMER and VGE_RXQTIMER register definition. Pending
yongari [Sat, 19 Dec 2009 20:45:23 +0000 (20:45 +0000)]
Swap VGE_TXQTIMER and VGE_RXQTIMER register definition. Pending
timer for Tx queue is at 0x3E.

14 years agoRemove a warning in DELAY about large delays. In kern_shutdown.c
marcel [Sat, 19 Dec 2009 20:42:56 +0000 (20:42 +0000)]
Remove a warning in DELAY about large delays. In kern_shutdown.c
we use excessive delays quite habitually.

14 years agoLet access overriding to TTYs depend on the cdev_priv, not the vnode.
ed [Sat, 19 Dec 2009 18:42:12 +0000 (18:42 +0000)]
Let access overriding to TTYs depend on the cdev_priv, not the vnode.

Basically this commit changes two things, which improves access to TTYs
in exceptional conditions. Basically the problem was that when you ran
jexec(8) to attach to a jail, you couldn't use /dev/tty (well, also the
node of the actual TTY, e.g. /dev/pts/X). This is very inconvenient if
you want to attach to screens quickly, use ssh(1), etc.

The fixes:

- Cache the cdev_priv of the controlling TTY in struct session. Change
  devfs_access() to compare against the cdev_priv instead of the vnode.
  This allows you to bypass UNIX permissions, even across different
  mounts of devfs.

- Extend devfs_prison_check() to unconditionally expose the device node
  of the controlling TTY, even if normal prison nesting rules normally
  don't allow this. This actually allows you to interact with this
  device node.

To be honest, I'm not really happy with this solution. We now have to
store three pointers to a controlling TTY (s_ttyp, s_ttyvp, s_ttydp).
In an ideal world, we should just get rid of the latter two and only use
s_ttyp, but this makes certian pieces of code very impractical (e.g.
devfs, kern_exit.c).

Reported by: Many people

14 years agoReference the correct man page for firmware(9).
bcr [Sat, 19 Dec 2009 16:36:57 +0000 (16:36 +0000)]
Reference the correct man page for firmware(9).

PR:             docs/140986
Submitted by:   Glen Barber (glen dot j dot barber at gmail dot com)
MFC after:      4 days
Reviewed by:    sam
Approved by:    sam, jkois (mentor)

14 years agoApply fix for Solaris bug 6462803: zfs snapshot -r failed because
delphij [Sat, 19 Dec 2009 11:49:20 +0000 (11:49 +0000)]
Apply fix for Solaris bug 6462803: zfs snapshot -r failed because
filesystem was busy
(onnv revision 8989)

Submitted by: mm
Approved by: pjd
Obtained from: OpenSolaris
MFC after: 2 weeks

14 years agoApply fix for Solaris bug 6801979: zfs recv can fail with E2BIG
delphij [Sat, 19 Dec 2009 11:47:22 +0000 (11:47 +0000)]
Apply fix for Solaris bug 6801979: zfs recv can fail with E2BIG
(onnv revision 8986)

Requested by: mm
Submitted by: pjd
Obtained from: OpenSolaris
MFC after: 2 weeks

14 years agoApply fix Solaris bug 6462803 zfs snapshot -r failed because
delphij [Sat, 19 Dec 2009 11:43:39 +0000 (11:43 +0000)]
Apply fix Solaris bug 6462803 zfs snapshot -r failed because
filesystem was busy.

Submitted by: mm
Approved by: pjd
MFC after: 2 weeks

14 years agoInterpret VAPPEND correctly in vaccess_acl_nfs4(9).
trasz [Sat, 19 Dec 2009 11:41:52 +0000 (11:41 +0000)]
Interpret VAPPEND correctly in vaccess_acl_nfs4(9).

14 years agoFix a problem with how mergemaster handles the hard links for /.cshrc
dougb [Sat, 19 Dec 2009 05:20:26 +0000 (05:20 +0000)]
Fix a problem with how mergemaster handles the hard links for /.cshrc
and /.profile. The problem is that install(1) will unlink the old file
before it installs the new one, which means that in the best case we
have to compare the changes for the old file twice.

So, change the logic to first test to see if the link exists, then
install the file. Then if the link was there and we're using -i, just
create the link in /root and be done with it. Otherwise display the
message to the user and give them the option.

Because we are now sorting things before doing the comparison we can
know conclusively that the files in / should be the sources, and the
files in /root will be the targets, so adjust the paths accordingly.

While I'm here, split a too-long error message into two lines and
just return at the end of handling these files instead of setting
the variable that says "do nothing" and then returning at the end
of the function anyway.

14 years agoFix an indentation issue, no functional changes
dougb [Sat, 19 Dec 2009 01:32:34 +0000 (01:32 +0000)]
Fix an indentation issue, no functional changes

14 years agoIn the places where find is used that the user may see the results,
dougb [Sat, 19 Dec 2009 01:30:45 +0000 (01:30 +0000)]
In the places where find is used that the user may see the results,
first pipe it to sort so that order of processing will be deterministic
and like things will be grouped together.

14 years agoAdd rudimentary WOL support. While I'm here remove enabling
yongari [Fri, 18 Dec 2009 22:14:28 +0000 (22:14 +0000)]
Add rudimentary WOL support. While I'm here remove enabling
busmastering/memory address in resume path. Bus driver will handle
that.

14 years agoMake sure to enable Next Page bit for IP1001. Otherwise the PHY
yongari [Fri, 18 Dec 2009 21:57:51 +0000 (21:57 +0000)]
Make sure to enable Next Page bit for IP1001. Otherwise the PHY
fails to re-establishe 1000baseT link after downgrading to
10/100Mbps link.

14 years agoFix ub_env_enum(): syscall() returns 0 when properly invoked.
marcel [Fri, 18 Dec 2009 21:12:37 +0000 (21:12 +0000)]
Fix ub_env_enum(): syscall() returns 0 when properly invoked.

14 years agoMake the wchan names of pts(4) fit in top(1).
ed [Fri, 18 Dec 2009 20:11:29 +0000 (20:11 +0000)]
Make the wchan names of pts(4) fit in top(1).

Just like a similar change we made to the TTY code about half a year
ago, make these strings look similar.

Suggested by: Jille Timmermans <jille@quis.cx>

14 years agoDocument more VIA Velocity family controllers to vge(4). Previously
yongari [Fri, 18 Dec 2009 18:45:36 +0000 (18:45 +0000)]
Document more VIA Velocity family controllers to vge(4). Previously
it mentioned only VT6122. While I'm here remove the mention of
VT3119 which seems to be VIA's internal model name and VT3119
wouldn't be available to end users.

Reviewed by: brueffer

14 years agoAdd new "hw.psm.tap_enabled" tunable and sysctl.
dumbbell [Fri, 18 Dec 2009 17:46:57 +0000 (17:46 +0000)]
Add new "hw.psm.tap_enabled" tunable and sysctl.

This tunable allows one to enable (1) or disable (0) gestures like tap
and tap-hold on Synaptics TouchPad when the Extended mode isn't enabled
(ie. "hw.psm.synaptics_support" not set).

By default, the value is -1 in order to keep the current behaviour of
not enabling/disabling gestures explicitly.

PR: kern/139272
Submitted by: David Horn <dhorn2000 AT gmail DOT com>
Reviewed by: David Horn <dhorn2000 AT gmail DOT com>

14 years agoAdded proper attribution.
ru [Fri, 18 Dec 2009 17:22:21 +0000 (17:22 +0000)]
Added proper attribution.

Requested by: luigi

14 years agoMention the unification of rc.firewall and rc.firewall6.
ume [Fri, 18 Dec 2009 16:35:28 +0000 (16:35 +0000)]
Mention the unification of rc.firewall and rc.firewall6.

Suggested by: David Horn <dhorn2000__at__gmail.com>

14 years ago- Add missing newlines to some error messages.
jhb [Fri, 18 Dec 2009 16:14:31 +0000 (16:14 +0000)]
- Add missing newlines to some error messages.
- Add interrupt descriptions when using mulitple MSI-X interrupts.

Reviewed by: jfv

14 years ago- Create a separate section in in the MI NOTES file for PCI wireless NIC
jhb [Fri, 18 Dec 2009 16:13:21 +0000 (16:13 +0000)]
- Create a separate section in in the MI NOTES file for PCI wireless NIC
  drivers and move bwi(4) there from the PCI Ethernet NIC section.
- Move ath(4) and ral(4) to the MI NOTES file.

Reviewed by: rpaulo

14 years agoRecognize Intel CPUs with Family 0x6, Models 0x1E and 0x1F.
jkoshy [Fri, 18 Dec 2009 15:01:46 +0000 (15:01 +0000)]
Recognize Intel CPUs with Family 0x6, Models 0x1E and 0x1F.

Submitted by: Marc Unangst <mju at panasas dot com>

14 years agoRemove duplicate devstat_start_transaction_bio() call. It is already called
mav [Fri, 18 Dec 2009 14:41:30 +0000 (14:41 +0000)]
Remove duplicate devstat_start_transaction_bio() call. It is already called
from geom_disk. Dulicate call causes wrong queue depth and busy accounting.

14 years agoSignal 0 is used to check the permission for current process to signal
kib [Fri, 18 Dec 2009 14:27:18 +0000 (14:27 +0000)]
Signal 0 is used to check the permission for current process to signal
target one. Since r184058, linux_do_tkill() calls tdsignal() instead of
kill(), without checking for validity of supplied signal number. Prevent
panic when supplied signal is 0 by finishing work after checks.

Found and tested by: scf
MFC after: 3 days

14 years ago- Fixed incorrect watchdog timeout setting: MSB of a 2-byte
ru [Fri, 18 Dec 2009 12:10:42 +0000 (12:10 +0000)]
- Fixed incorrect watchdog timeout setting: MSB of a 2-byte
  value is obtained by dividing it by 256, not by 2550; also,
  one second is 10^9 nanoseconds, not 1800000000 nanoseconds.

- Due to rounding error, setting watchdog to a really small
  timeout (<1 sec) was turning the watchdog off.  It should
  set the watchdog to a small timeout instead.

- Implemented error checking in ipmi_wd_event(), as required
  by watchdog(9).

PR: kern/130512
Submitted by: Dmitrij Tejblum

- Additionally, check that the timeout value is within the
  supported range, and if it's too large, act as required by
  watchdog(9).

MFC after: 3 days

14 years agoKeep list sorted.
thompsa [Fri, 18 Dec 2009 00:36:30 +0000 (00:36 +0000)]
Keep list sorted.

14 years agoAdd a bunch of new 3G ids obtained from from various operating systems and
thompsa [Fri, 18 Dec 2009 00:34:58 +0000 (00:34 +0000)]
Add a bunch of new 3G ids obtained from from various operating systems and
Internet sources.

Obtained from: Linux, NetBSD, OpenBSD, etc

14 years agoServerworks OSB4 has no 0x4a (piomode) register, do not touch it.
mav [Thu, 17 Dec 2009 23:42:09 +0000 (23:42 +0000)]
Serverworks OSB4 has no 0x4a (piomode) register, do not touch it.
Also OSB4 has some problems with UDMA transfers, limit it to WDMA2.

14 years agoAdd some experimental code to log traffic with tcpdump,
luigi [Thu, 17 Dec 2009 23:11:16 +0000 (23:11 +0000)]
Add some experimental code to log traffic with tcpdump,
similar to pflog(4).
To use the feature, just put the 'log' options on rules
you are interested in, e.g.

ipfw add 5000 count log ....

and run
tcpdump -ni ipfw0 ...

net.inet.ip.fw.verbose=0 enables logging to ipfw0,
net.inet.ip.fw.verbose=1 sends logging to syslog as before.

More features can be added, similar to pflog(), to store in
the MAC header metadata such as rule numbers and actions.
Manpage to come once features are settled.

14 years agoUse the EVENTHANDLER system to hook into the usb device configuration and
thompsa [Thu, 17 Dec 2009 21:42:10 +0000 (21:42 +0000)]
Use the EVENTHANDLER system to hook into the usb device configuration and
perform a function such as ejecting a 3G autoinstaller disk. The eventhandler
system properly tracks threads and is safe to unload, remove the
setting/clearing of a function pointer in the kernel by u3g(4) which included a
tsleep for safety.

14 years agoIf the runcount is non-zero in eventhandler_deregister() then one or more
thompsa [Thu, 17 Dec 2009 21:17:13 +0000 (21:17 +0000)]
If the runcount is non-zero in eventhandler_deregister() then one or more
threads are executing the eventhandler, sleep in this case to make it safe for
module unload. If the runcount was up then an entry would have been marked
EHE_DEAD_PRIORITY so use this as a trigger to do the wakeup in
eventhandler_prune_list().

Reviewed by: jhb

14 years agoNationalise Easter -> Pasen
edwin [Thu, 17 Dec 2009 20:41:59 +0000 (20:41 +0000)]
Nationalise Easter -> Pasen

MFC after: 1 week

14 years agoRemove unused member variable of softc.
yongari [Thu, 17 Dec 2009 19:48:54 +0000 (19:48 +0000)]
Remove unused member variable of softc.

14 years agoDocument newly added loader tunable and sysctl variables.
yongari [Thu, 17 Dec 2009 18:37:11 +0000 (18:37 +0000)]
Document newly added loader tunable and sysctl variables.
 o hw.vge.msi_disable
 o dev.vge.%d.int_holdoff
 o dev.vge.%d.rx_coal_pkt
 o dev.vge.%d.tx_coal_pkt

14 years agoActually clear interrupts. Writing 0 has no effect.
yongari [Thu, 17 Dec 2009 18:03:05 +0000 (18:03 +0000)]
Actually clear interrupts. Writing 0 has no effect.

14 years agoImplement interrupt moderation scheme supported by VT61xx
yongari [Thu, 17 Dec 2009 18:00:25 +0000 (18:00 +0000)]
Implement interrupt moderation scheme supported by VT61xx
controllers. TX/RX interrupt mitigation is controlled by
VGE_TXSUPPTHR and VGE_RXSUPPTHR register. These registers suppress
generation of interrupts until the programmed frames counter equals
to the registers. VT61xx also supports interrupt hold off timer
register. If this interrupt hold off timer is active all interrupts
would be disabled until the timer reaches to 0. The timer value is
reloaded whenever VGE_ISR register written. The timer resolution is
about 20us.

Previously vge(4) used single shot timer to reduce Tx completion
interrupts. This required VGE_CRS1 register access in Tx
start/completion handler to rearm new timeout value and it did not
show satisfactory result(more than 50k interrupts under load). Rx
interrupts was not moderated at all such that vge(4) used to
generate too many interrupts which in turn made polling(4) better
approach under high network load.

This change activates all interrupt moderation mechanism and
initial values were tuned to generate interrupt less than 8k per
second. That number of interrupts wouldn't add additional packet
latencies compared to polling(4). These interrupt parameters could
be changed with sysctl.
dev.vge.%d.int_holdoff
dev.vge.%d.rx_coal_pkt
dev.vge.%d.tx_coal_pkt
Interface has be brought down and up again before change take
effect.

With interrupt moderation there is no more need to loop in
interrupt handler. This loop always added one more register access.
While I'm here remove dead code which tried to implement subset of
interrupt moderation.

14 years agoDon't panic due to unlocking an unowned mutex if we fail during attach.
gavin [Thu, 17 Dec 2009 17:46:08 +0000 (17:46 +0000)]
Don't panic due to unlocking an unowned mutex if we fail during attach.

PR: kern/139053
Reviewed by: scottl
Approved by: ed (mentor)
MFC after: 2 weeks

14 years agoNow that ipfw is split into multiple files, we need
luigi [Thu, 17 Dec 2009 17:44:34 +0000 (17:44 +0000)]
Now that ipfw is split into multiple files, we need
to list them all in the Makefile for the module,
otherwise it won't load due to missing symbols.

The problem only affected head with ipfw built as a module.

Reported by David Horn

14 years agoRemove unused VGE_ETHER_ALIGN definition.
yongari [Thu, 17 Dec 2009 17:38:06 +0000 (17:38 +0000)]
Remove unused VGE_ETHER_ALIGN definition.

14 years agosimplify and document lookup_next_rule()
luigi [Thu, 17 Dec 2009 17:27:12 +0000 (17:27 +0000)]
simplify and document lookup_next_rule()

14 years agoSync getline() with comm(1):
jh [Thu, 17 Dec 2009 17:03:47 +0000 (17:03 +0000)]
Sync getline() with comm(1):

 - Prevent overflowing of the buffer length variable in getline() by
   limiting its maximum value.
 - Exit if reallocf(3) fails in getline(). Failure was silently
   considered as end-of-file.

Reviewed by: ghelmer
Approved by: trasz (mentor)

14 years agoThe input line length limit mentioned on the manual page was removed by
jh [Thu, 17 Dec 2009 16:59:19 +0000 (16:59 +0000)]
The input line length limit mentioned on the manual page was removed by
r176119.

Approved by: trasz (mentor)

14 years agoFix debug messages of bd_io().
nyan [Thu, 17 Dec 2009 13:14:11 +0000 (13:14 +0000)]
Fix debug messages of bd_io().

MFC after: 1 week

14 years ago- Partially revert r200417. config.h brings several definitions,
stas [Thu, 17 Dec 2009 12:42:45 +0000 (12:42 +0000)]
- Partially revert r200417.  config.h brings several definitions,
  that appears to be actually used.  Without config.h included
  cross-build of world failed (at least for ARM).

14 years agosimplify the code that finds the next rule after reinjections
luigi [Thu, 17 Dec 2009 12:27:54 +0000 (12:27 +0000)]
simplify the code that finds the next rule after reinjections

MFC after: 1 week

14 years agorewind(3) is already declared to return 'void', so no need for an explicit cast
rse [Thu, 17 Dec 2009 08:42:44 +0000 (08:42 +0000)]
rewind(3) is already declared to return 'void', so no need for an explicit cast

14 years agoDEBUG is either defined or not defined for the 'calender' sources, so use #ifdef...
rse [Thu, 17 Dec 2009 08:41:06 +0000 (08:41 +0000)]
DEBUG is either defined or not defined for the 'calender' sources, so use #ifdef and not just #if -- both to be semantically correct and also to be aligned with the rest of the 'calendar' sources

14 years agoremove external reference to not (or at least no longer) existing variable 'myname'
rse [Thu, 17 Dec 2009 08:37:02 +0000 (08:37 +0000)]
remove external reference to not (or at least no longer) existing variable 'myname'

14 years agoAdd Australian, New Zealand and Ukraian calendars to the "all" target".
edwin [Thu, 17 Dec 2009 07:18:06 +0000 (07:18 +0000)]
Add Australian, New Zealand and Ukraian calendars to the "all" target".

MFC after: 1 week

14 years agoAdd a null pointer check so "name" can be used as a key parameter in
jamie [Thu, 17 Dec 2009 05:06:56 +0000 (05:06 +0000)]
Add a null pointer check so "name" can be used as a key parameter in
jailparam_get.

PR: bin/141692
Submitted by: delphij
MFC after: 3 days

14 years agoFix argument order in a call to mtx_init.
mjacob [Thu, 17 Dec 2009 00:22:56 +0000 (00:22 +0000)]
Fix argument order in a call to mtx_init.

MFC after: 1 week

14 years agoFix argument order in a call to mtx_init.
mjacob [Thu, 17 Dec 2009 00:21:12 +0000 (00:21 +0000)]
Fix argument order in a call to mtx_init.

MFC after: 1 week

14 years agoRevert 200606.
imp [Wed, 16 Dec 2009 21:53:56 +0000 (21:53 +0000)]
Revert 200606.

14 years agoAdd "Velocity" to probe message which will make it clearer which
yongari [Wed, 16 Dec 2009 20:03:43 +0000 (20:03 +0000)]
Add "Velocity" to probe message which will make it clearer which
ethernet controller was recognized. VIA consistently calls
"Velocity" family for gigabit ethernet controllers. For fast
ethernet controllers they uses "Rhine" family(vr(4) controllers))
and vr(4) already shows "Rhine" in probe message.

14 years agoAdd new flag VGE_FLAG_SUSPENDED to mark suspended state and
yongari [Wed, 16 Dec 2009 19:49:23 +0000 (19:49 +0000)]
Add new flag VGE_FLAG_SUSPENDED to mark suspended state and
remove suspended member in softc.

14 years agoAdd hardware MAC statistics support. This statistics could be
yongari [Wed, 16 Dec 2009 19:41:40 +0000 (19:41 +0000)]
Add hardware MAC statistics support. This statistics could be
extracted from dev.vge.%d.stats sysctl node.

14 years agoMake man page reflect the output columns
julian [Wed, 16 Dec 2009 19:37:38 +0000 (19:37 +0000)]
Make man page reflect the output columns

MFC after: 1 week

14 years agoRewrite RX filter setup and simplify code.
yongari [Wed, 16 Dec 2009 19:32:44 +0000 (19:32 +0000)]
Rewrite RX filter setup and simplify code.
Now promiscuous mode and multicast handling is performed in single
function, vge_rxfilter().

14 years agoremove a duplicate sysctl entry
luigi [Wed, 16 Dec 2009 18:03:35 +0000 (18:03 +0000)]
remove a duplicate sysctl entry

14 years agoAll vge(4) controllers support RX/TX checksum offloading for VLAN
yongari [Wed, 16 Dec 2009 18:03:25 +0000 (18:03 +0000)]
All vge(4) controllers support RX/TX checksum offloading for VLAN
tagged frames so add checksum offloading capabilities. Also add
missing VLAN hardware tagging control in ioctl handler and let
upper stack know current VLAN capabilities.

14 years agoLarge I/Os on Promise controllers reported to cause UDMA ICRC errors and
mav [Wed, 16 Dec 2009 17:42:02 +0000 (17:42 +0000)]
Large I/Os on Promise controllers reported to cause UDMA ICRC errors and
subsequent timeouts. Restore previous limit for now, at least until
I will have hardware to experiment.

PR:             kern/141438

14 years agoFix compiling FREEBSD_COMPAT[4,5,6] without FREEBSD_COMPAT7.
imp [Wed, 16 Dec 2009 17:17:40 +0000 (17:17 +0000)]
Fix compiling FREEBSD_COMPAT[4,5,6] without FREEBSD_COMPAT7.

Note: Not sure this is the right way to do compat, but it makes the
headers consistent with the implementations.

14 years agoAdd entries to NOTES for the modular phy support so that these options are
jhb [Wed, 16 Dec 2009 16:24:32 +0000 (16:24 +0000)]
Add entries to NOTES for the modular phy support so that these options are
documented.

PR: docs/141358
Submitted by: Bruce Cran

14 years ago- Prevent overflowing of the buffer length variable in getline() by
jh [Wed, 16 Dec 2009 14:34:48 +0000 (14:34 +0000)]
- Prevent overflowing of the buffer length variable in getline() by
  limiting its maximum value.
- Exit if reallocf(3) fails in getline(). Failure was silently
  considered as end-of-file.

Reviewed by: ghelmer
Approved by: trasz (mentor)

14 years agobring back a couple of #include that are supplied by nesting,
luigi [Wed, 16 Dec 2009 13:00:37 +0000 (13:00 +0000)]
bring back a couple of #include that are supplied by nesting,
and explain why they are used.

14 years agoichsmb: add another pci id
avg [Wed, 16 Dec 2009 12:25:27 +0000 (12:25 +0000)]
ichsmb: add another pci id

This is SMBus controller found in Intel Platform Controller Hub (PCH),
which is a general name that refers to Intel 5 Series chipsets and
3400 Series chipsets.

Submitted by: Dmitry S. Luhtionov <mitya@cabletv.dp.ua>
MFC after: 3 days

14 years agoVarious cosmetic cleanup of the files:
luigi [Wed, 16 Dec 2009 10:48:40 +0000 (10:48 +0000)]
Various cosmetic cleanup of the files:
- move global variables around to reduce the scope and make them
  static if possible;
- add an ipfw_ prefix to all public functions to prevent conflicts
  (the same should be done for variables);
- try to pack variable declaration in an uniform way across files;
- clarify some comments;
- remove some misspelling of names (#define V_foo VNET(bar)) that
  slipped in due to cut&paste
- remove duplicate static variables in different files;

MFC after: 1 month

14 years ago(no commit message)
matteo [Wed, 16 Dec 2009 04:19:23 +0000 (04:19 +0000)]

14 years agoForgot to bump .Dd, so do it with this commit. Chose local time over
imp [Wed, 16 Dec 2009 03:29:00 +0000 (03:29 +0000)]
Forgot to bump .Dd, so do it with this commit.  Chose local time over
UTC time for the date...

14 years agoQuick fix to make this compile:
imp [Wed, 16 Dec 2009 03:26:37 +0000 (03:26 +0000)]
Quick fix to make this compile:
Remove redundant extern declearations.
If the maintainer has a better fix, then feel free to back this out.

14 years agoDocmuent NO_KERNEL{CLEAN,CONFIG,DEPEND,OBJ} as necessary. Update
imp [Wed, 16 Dec 2009 03:25:43 +0000 (03:25 +0000)]
Docmuent NO_KERNEL{CLEAN,CONFIG,DEPEND,OBJ} as necessary.  Update
documentation on KERNFAST meaning.

14 years agoAdd NO_KERNELOBJ flag, similar to NO_KERNEL{CONFIG,DEPEND,CLEAN},
imp [Wed, 16 Dec 2009 02:54:34 +0000 (02:54 +0000)]
Add NO_KERNELOBJ flag, similar to NO_KERNEL{CONFIG,DEPEND,CLEAN},
which disables doing a make obj.  Use it when you know it will work
only.  KERNFAST now implies NO_KERNELOBJ, since you don't need to keep
doing obj when doing incremental kernel builds.

14 years agoAdd INCLUDE_CONFIG_FILE, and a note in comments about how to also
dougb [Wed, 16 Dec 2009 02:17:43 +0000 (02:17 +0000)]
Add INCLUDE_CONFIG_FILE, and a note in comments about how to also
include the comments with CONFIGARGS

14 years agoAdd two new debugging tunables for x86bios instead of abusing bootverbose,
jkim [Tue, 15 Dec 2009 22:44:28 +0000 (22:44 +0000)]
Add two new debugging tunables for x86bios instead of abusing bootverbose,
i.e., debug.x86bios.call and debug.x86bios.int.

14 years agomore splitting of ip_fw2.c, now extract the 'table' routines
luigi [Tue, 15 Dec 2009 21:24:12 +0000 (21:24 +0000)]
more splitting of ip_fw2.c, now extract the 'table' routines
and the sockopt routines (the upper half of the kernel).

Whoever is the author of the 'table' code (Ruslan/glebius/oleg ?)
please change the attribution in ip_fw_table.c. I have copied
the copyright line from ip_fw2.c but it carries my name and I have
neither written nor designed the feature so I don't deserve
the credit.

MFC after: 1 month