]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoAdd the MBR partitioning scheme to g_part. This does not yet
Marcel Moolenaar [Wed, 13 Jun 2007 04:27:36 +0000 (04:27 +0000)]
Add the MBR partitioning scheme to g_part. This does not yet
support the ability to install boot code.

17 years agoMake 'ar' write test a tad more portable.
Tim Kientzle [Wed, 13 Jun 2007 03:40:02 +0000 (03:40 +0000)]
Make 'ar' write test a tad more portable.

17 years agoRead support for the new GNU tar sparse formats added in gtar 1.15 and
Tim Kientzle [Wed, 13 Jun 2007 03:35:37 +0000 (03:35 +0000)]
Read support for the new GNU tar sparse formats added in gtar 1.15 and
gtar 1.16.

17 years agoAdd some options to libarchive_test:
Tim Kientzle [Wed, 13 Jun 2007 03:30:46 +0000 (03:30 +0000)]
Add some options to libarchive_test:
   -k: like make -k, try to keep going after errors.
   -q: quiet

17 years agoFix a broken function declaration.
Tim Kientzle [Wed, 13 Jun 2007 03:29:15 +0000 (03:29 +0000)]
Fix a broken function declaration.

17 years agosctp_process_inpcb() wants an offset parameter in size_t,
Xin LI [Wed, 13 Jun 2007 02:37:00 +0000 (02:37 +0000)]
sctp_process_inpcb() wants an offset parameter in size_t,
so define it as what it is expected.  This fixes WARNS=3
without NO_WERROR build.

17 years agoRegen.
Stephane E. Potvin [Wed, 13 Jun 2007 02:18:12 +0000 (02:18 +0000)]
Regen.

17 years agoOptions spring cleanup:
Stephane E. Potvin [Wed, 13 Jun 2007 02:08:04 +0000 (02:08 +0000)]
Options spring cleanup:
- Add and document the KVM and KVM_SUPPORT options that
are needed for the ifmcstats(3) makefile
- Garbage collect unused variables
- Add missing inclusion of bsd.own.mk where needed

Approved by: kan (mentor)
Reviewed by: ru

17 years ago- Fixed cookie handling to calc an RTO when
Randall Stewart [Wed, 13 Jun 2007 01:31:53 +0000 (01:31 +0000)]
- Fixed cookie handling to calc an RTO when
  its an INIT collision case.
- Fixed RTO calc to maintain a seperate variable to track
  if a RTO calc as been done, this allows the RTO var to be
  doubled during initial timeouts.
- Reduces the amount of stack used by process control.
- Use a constant for the peer chunk overhead.
- Name change to spell candidate correctly.

17 years agoCatch up with USB cleanups and fix the world
Maksim Yevmenkin [Wed, 13 Jun 2007 00:32:00 +0000 (00:32 +0000)]
Catch up with USB cleanups and fix the world

17 years ago - Include opt_sched.h for SCHED_STATS.
Jeff Roberson [Tue, 12 Jun 2007 23:27:31 +0000 (23:27 +0000)]
 - Include opt_sched.h for SCHED_STATS.

17 years agoFix yet another (make install) stopper with wrong sourcefilter.3 links
Andrey A. Chernov [Tue, 12 Jun 2007 22:32:52 +0000 (22:32 +0000)]
Fix yet another (make install) stopper with wrong sourcefilter.3 links

17 years agoRemove compat macros. md5 the same.
Warner Losh [Tue, 12 Jun 2007 21:35:18 +0000 (21:35 +0000)]
Remove compat macros.  md5 the same.

17 years agoRecoverdisk is now part of the base system.
Poul-Henning Kamp [Tue, 12 Jun 2007 21:33:11 +0000 (21:33 +0000)]
Recoverdisk is now part of the base system.

17 years agoAdd recoverdisk to the base system, it is far too useful to live
Poul-Henning Kamp [Tue, 12 Jun 2007 21:31:39 +0000 (21:31 +0000)]
Add recoverdisk to the base system, it is far too useful to live
in obscurity over in src/tools.

(Repocopied)

17 years agofix cassert failure by adjusting padding
Kip Macy [Tue, 12 Jun 2007 21:19:12 +0000 (21:19 +0000)]
fix cassert failure by adjusting padding

17 years agoFix typo in filename from mismerged earlier rev of this file.
Bruce M Simpson [Tue, 12 Jun 2007 21:05:31 +0000 (21:05 +0000)]
Fix typo in filename from mismerged earlier rev of this file.

17 years ago - Fix kse by moving the upcalls list back out of the zero'd section.
Jeff Roberson [Tue, 12 Jun 2007 20:22:06 +0000 (20:22 +0000)]
 - Fix kse by moving the upcalls list back out of the zero'd section.
   I had tested this with the wrong libpthread.

17 years agoUse if_capenable to allow LRO enabled drivers to bypass
Andrew Gallatin [Tue, 12 Jun 2007 19:53:44 +0000 (19:53 +0000)]
Use if_capenable to allow LRO enabled drivers to bypass
the MTU check in ether_input().

17 years ago - Garbage collect unused concurrency functions.
Jeff Roberson [Tue, 12 Jun 2007 19:50:31 +0000 (19:50 +0000)]
 - Garbage collect unused concurrency functions.

17 years ago - Garbage collect unused concurrency functions.
Jeff Roberson [Tue, 12 Jun 2007 19:49:39 +0000 (19:49 +0000)]
 - Garbage collect unused concurrency functions.
 - Remove unused kse fields from struct proc.
 - Group remaining fields and #ifdef KSE them.
 - Move some kern_kse.c only prototypes out of proc and into kern_kse.

Discussed with: Julian

17 years agoFirst pass at removing __OtherBSD__. We can't blindly remove all of
Warner Losh [Tue, 12 Jun 2007 19:40:20 +0000 (19:40 +0000)]
First pass at removing __OtherBSD__.  We can't blindly remove all of
them in bulk because there is at least one feature that's
unimplemented on FreeBSD that needs to be done and these are good
placeholders.

17 years agoUse the new IFCAP_LRO to enable/disable LRO.
Andrew Gallatin [Tue, 12 Jun 2007 19:15:16 +0000 (19:15 +0000)]
Use the new IFCAP_LRO to enable/disable LRO.

17 years agoFix a typo which crept in from an earlier version of this file.
Bruce M Simpson [Tue, 12 Jun 2007 19:08:38 +0000 (19:08 +0000)]
Fix a typo which crept in from an earlier version of this file.

17 years agoDon't pretend to support !BSD systems.
Warner Losh [Tue, 12 Jun 2007 19:01:32 +0000 (19:01 +0000)]
Don't pretend to support !BSD systems.

17 years agoRemove usb_kthread_create*. They are now unused.
Warner Losh [Tue, 12 Jun 2007 18:52:29 +0000 (18:52 +0000)]
Remove usb_kthread_create*.  They are now unused.

17 years agounifdef -D__FreeBSD__ -U__NetBSD__ -U__OpenBSD__
Warner Losh [Tue, 12 Jun 2007 18:52:07 +0000 (18:52 +0000)]
unifdef -D__FreeBSD__ -U__NetBSD__ -U__OpenBSD__
Use kthread_create directly

17 years agoAdd missing userland support files from previous commit for the new
Bruce M Simpson [Tue, 12 Jun 2007 18:03:37 +0000 (18:03 +0000)]
Add missing userland support files from previous commit for the new
multicast source filter API functions.

17 years agoSpaces to tab
Gregory Neil Shapiro [Tue, 12 Jun 2007 17:33:56 +0000 (17:33 +0000)]
Spaces to tab

17 years agoAdd a new rc.conf variable, sendmail_rebuild_aliases, which tells
Gregory Neil Shapiro [Tue, 12 Jun 2007 17:33:23 +0000 (17:33 +0000)]
Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
/etc/rc.d/sendmail whether or not to run newaliases if the database
is missing or the aliases text file is newer than aliases.db.

In my opinion, the aliases file should never be automatically rebuilt.
The current text form could represent a work in progress.  Therefore,
in FreeBSD 7.0, this new option will default to "NO".  When this rc.d
change is MFC'ed, it will need to remain "YES" to maintain backward
compatibility.

PR: conf/86252
Approved by: re (kensmith)
MFC after: 3 days

17 years agoEliminate usb_thread_t.
Warner Losh [Tue, 12 Jun 2007 17:30:54 +0000 (17:30 +0000)]
Eliminate usb_thread_t.

17 years agoRemove USBDEV() macro. We do not need a macro that is defined as its
Warner Losh [Tue, 12 Jun 2007 16:52:07 +0000 (16:52 +0000)]
Remove USBDEV() macro.  We do not need a macro that is defined as its
only argument.  It was used inconsistently in the tree, so remove it.

17 years agoclalloc and clfree are useles. Remove them. Remove dead code that's
Warner Losh [Tue, 12 Jun 2007 16:41:29 +0000 (16:41 +0000)]
clalloc and clfree are useles.  Remove them.  Remove dead code that's
always been dead for years, but has been obfuscated by these macros.

17 years agoAdd regression test for SSM code.
Bruce M Simpson [Tue, 12 Jun 2007 16:29:22 +0000 (16:29 +0000)]
Add regression test for SSM code.

17 years agoImport rewrite of IPv4 socket multicast layer to support source-specific
Bruce M Simpson [Tue, 12 Jun 2007 16:24:56 +0000 (16:24 +0000)]
Import rewrite of IPv4 socket multicast layer to support source-specific
and protocol-independent host mode multicast. The code is written to
accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work.

This change only pertains to FreeBSD's use as a multicast end-station and
does not concern multicast routing; for an IGMPv3/MLDv2 router
implementation, consider the XORP project.

The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6,
which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html

Summary
 * IPv4 multicast socket processing is now moved out of ip_output.c
   into a new module, in_mcast.c.
 * The in_mcast.c module implements the IPv4 legacy any-source API in
   terms of the protocol-independent source-specific API.
 * Source filters are lazy allocated as the common case does not use them.
   They are part of per inpcb state and are covered by the inpcb lock.
 * struct ip_mreqn is now supported to allow applications to specify
   multicast joins by interface index in the legacy IPv4 any-source API.
 * In UDP, an incoming multicast datagram only requires that the source
   port matches the 4-tuple if the socket was already bound by source port.
   An unbound socket SHOULD be able to receive multicasts sent from an
   ephemeral source port.
 * The UDP socket multicast filter mode defaults to exclusive, that is,
   sources present in the per-socket list will be blocked from delivery.
 * The RFC 3678 userland functions have been added to libc: setsourcefilter,
   getsourcefilter, setipv4sourcefilter, getipv4sourcefilter.
 * Definitions for IGMPv3 are merged but not yet used.
 * struct sockaddr_storage is now referenced from <netinet/in.h>. It
   is therefore defined there if not already declared in the same way
   as for the C99 types.
 * The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF
   which are then interpreted as interface indexes) is now deprecated.
 * A patch for the Rhyolite.com routed in the FreeBSD base system
   is available in the -net archives. This only affects individuals
   running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces.
 * Make IPv6 detach path similar to IPv4's in code flow; functionally same.
 * Bump __FreeBSD_version to 700048; see UPDATING.

This work was financially supported by another FreeBSD committer.

Obtained from:  p4://bms_netdev
Submitted by:   Wilbert de Graaf (original work)
Reviewed by:    rwatson (locking), silence from fenner,
net@ (but with encouragement)

17 years agoExpand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate from
Warner Losh [Tue, 12 Jun 2007 15:37:19 +0000 (15:37 +0000)]
Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate from
usb_port.h.  They aren't needed, and are a legacy of this code's past.

17 years ago- Document support for Realtek ALC660 and Analog Devices AD1988B.
Joel Dahl [Tue, 12 Jun 2007 15:26:41 +0000 (15:26 +0000)]
- Document support for Realtek ALC660 and Analog Devices AD1988B.
- Fix minor typos.

17 years agoDelete description of non-existent options: "-4" and "-6".
Motoyuki Konno [Tue, 12 Jun 2007 13:28:55 +0000 (13:28 +0000)]
Delete description of non-existent options: "-4" and "-6".

ntpd's "-4" and "-6" options are described in the original documentation
(contrib/ntp/html/ntpd.html).  It may be original's doc bug.

PR: docs/112642
Submitted by: Seth Hieronymus<shieronymus@speakeasy.net>
Discussed with: ume
MFC after: 1 week

17 years agoDrop the argument to the OUT macro because it can't emit
Yaroslav Tykhiy [Tue, 12 Jun 2007 12:17:25 +0000 (12:17 +0000)]
Drop the argument to the OUT macro because it can't emit
anything but the pattern space anyway.  Apply style(9)
to the macro.

Tested with: md5(1)

17 years agoDon't forget to clear out the hold space for each subsequent file
Yaroslav Tykhiy [Tue, 12 Jun 2007 12:05:24 +0000 (12:05 +0000)]
Don't forget to clear out the hold space for each subsequent file
when in -i mode so that each file gets a clean context of its own.

Add a regression test for the bug.

Tested with: regression tests

17 years agoAdd cust_pkg() which iteratively tries to install packages.
Poul-Henning Kamp [Tue, 12 Jun 2007 11:35:29 +0000 (11:35 +0000)]
Add cust_pkg() which iteratively tries to install packages.

Move /usr/local/etc to /etc/local so that installed packages can be frobbed.

Use a more compatible 512MB card geometry.

17 years ago- Restructure so bindx functions are not done inline to socket option
Randall Stewart [Tue, 12 Jun 2007 11:21:00 +0000 (11:21 +0000)]
- Restructure so bindx functions are not done inline to socket option
  but are a seperate call that can be re-used if needed.
- 64 bit issues
  o re-arrange cookie so it is better 64 bit aligned
  o For wire level things we need the packed attribute.

17 years agoThere is a symbolic antonym for REPLACE as a flag to cspace()
Yaroslav Tykhiy [Tue, 12 Jun 2007 10:56:38 +0000 (10:56 +0000)]
There is a symbolic antonym for REPLACE as a flag to cspace()
and mf_fgets(): APPEND.  So use it instead of a 0 constant for
clarity.

Tested with: md5(1)

17 years agoThe maximum size of the sum of all segment lengths in a given DMA mapping
Pyun YongHyeon [Tue, 12 Jun 2007 10:51:47 +0000 (10:51 +0000)]
The maximum size of the sum of all segment lengths in a given DMA mapping
should be 65535 + link layer headers.

Pointed out by: gallatin

17 years agoCatch up with variable name changes in struct lagg_protos.
Andrew Thompson [Tue, 12 Jun 2007 10:07:57 +0000 (10:07 +0000)]
Catch up with variable name changes in struct lagg_protos.

17 years agoRemove duplicate. Was that a bug? :-)
Philip Paeps [Tue, 12 Jun 2007 09:20:31 +0000 (09:20 +0000)]
Remove duplicate.  Was that a bug? :-)

17 years ago- add myself
Chin-San Huang [Tue, 12 Jun 2007 09:05:06 +0000 (09:05 +0000)]
- add myself

Approved by: rafan (mentor)

17 years ago - Move some common code out of sched_fork_exit() and back into fork_exit().
Jeff Roberson [Tue, 12 Jun 2007 07:47:09 +0000 (07:47 +0000)]
 - Move some common code out of sched_fork_exit() and back into fork_exit().

17 years agonon-functional cleanup
Andrew Thompson [Tue, 12 Jun 2007 07:29:11 +0000 (07:29 +0000)]
non-functional cleanup
- remove dead code
- use consistent variable names
- gc unused defines
- whitespace cleanup

17 years agoSolve a complex exit race introduced with thread_lock:
Jeff Roberson [Tue, 12 Jun 2007 07:24:46 +0000 (07:24 +0000)]
Solve a complex exit race introduced with thread_lock:
 - Add a count of exiting threads, p_exitthreads, to struct proc.
 - Increment p_exithreads when we set the deadthread in thread_exit().
 - When we thread_stash() a deadthread use an atomic to drop the count.
 - Spin until the p_exithreads count reaches 0 in thread_wait().
 - Lock the last exiting thread momentarily to be certain that it has
   exited cpu_throw().
 - Restructure thread_wait().  It does not need a loop as there will only
   ever be one thread.

Tested by: moose@opera.com
Reported by: kris, moose@opera.com

17 years agoNuke duplicated __FBSDID.
Pyun YongHyeon [Tue, 12 Jun 2007 04:33:21 +0000 (04:33 +0000)]
Nuke duplicated __FBSDID.

17 years agoAdd checks for contigmalloc(9) failure.
Pyun YongHyeon [Tue, 12 Jun 2007 04:30:30 +0000 (04:30 +0000)]
Add checks for contigmalloc(9) failure.

17 years agoIncrease a maximum segment size of DMA to 4096. Previously it used
Pyun YongHyeon [Tue, 12 Jun 2007 02:35:01 +0000 (02:35 +0000)]
Increase a maximum segment size of DMA to 4096. Previously it used
MCLBYTES for the segment size but it used too many Tx descriptors in
TSO case.
While I'm here adjust maximum size of the sum of all segment lengths
in a given DMA mapping to 65535, the maximum size, in bytes, of a IP
packet.

17 years agoAdd nfe(4) to the list of drivers supported by GENERIC kernel.
Pyun YongHyeon [Tue, 12 Jun 2007 02:24:30 +0000 (02:24 +0000)]
Add nfe(4) to the list of drivers supported by GENERIC kernel.
While I'm here comment out nve(4) as nfe(4) will take over.

Approved by: re

17 years agoAllow nfe(4) override nve(4).
Pyun YongHyeon [Tue, 12 Jun 2007 02:21:02 +0000 (02:21 +0000)]
Allow nfe(4) override nve(4).

17 years agoXref altq(4).
Pyun YongHyeon [Tue, 12 Jun 2007 02:19:56 +0000 (02:19 +0000)]
Xref altq(4).

17 years agonfe(4) supports altq(4).
Pyun YongHyeon [Tue, 12 Jun 2007 02:19:11 +0000 (02:19 +0000)]
nfe(4) supports altq(4).

17 years agoAdd nfe(4) to the list of device drivers use the miibus interface.
Pyun YongHyeon [Tue, 12 Jun 2007 02:18:04 +0000 (02:18 +0000)]
Add nfe(4) to the list of device drivers use the miibus interface.

17 years agoBring overhauled nfe(4) into tree.
Pyun YongHyeon [Tue, 12 Jun 2007 02:16:02 +0000 (02:16 +0000)]
Bring overhauled nfe(4) into tree.

o s/printf/device_printf/g
o Nuke OpenBSDism.
o Nuke NetBSD/OpenBSD specific DMA sync operations.(we don't have a way
   to sync a single descriptor within a DMA map.)
o Remove recursive mutex.
o bus_dma(9) clean up.
o 40bit DMA address support.
o Add protection for Rx map load failure.
o Fix a long standing bug for watchdog timeout. [1]
o Add additional protections, missing Tx completion interrupt, losing
   start Tx command, for watchdog timeout.
o Switch to taskqueue(9) API to handle interrupts.
o Use our own timer for watchdog instead of if_watchdog/if_timer
   interface.
o Advertise VLAN header length/capability correctly to upper layer.
o Remove excessive kernel stack consumption in nfe_encap().
o Handle highly fragmented mbuf chains correctly.
o Enable etherenet address reprogramming with ifconfig(8).
o Add ALTQ/TSO, MSI/MSIX support.
o Increased Rx ring to 256 descriptors from 128.
o Align Tx/Rx descriptor ring on sizeof(struct nfe_desc64) boundary.
o Remove alignment restrictions on Tx/Rx buffers.
o Rewritten jumbo frame support code.
o Add support for hardware assistend VLAN tag insertion/stripping.
o Add support for Tx/Rx flow control based on patches from Peer Chen. [2]
o Add a routine that detects whether ethernet address swap routines is
   required. [3]
o Add a workaround that take MAC/PHY out of power down mode.
o Add suspend/resume support.
o style(9) and code clean up.

Special thanks to Shigeaki Tagashira, the original porter of nfe(4),
who submitted lots of patches, performed uncountable number of
regression tests and maintained nfe(4) for a long time. Without his
enthusiastic help and support I could never have completed this
overhauling task.

The only weak point of nfe(4) compared to nve(4) is instability of
manual half-duplex media selection on certain hardwares(auto sensing
media type should work for all cases, though). This was a long
standing bug of nfe(4) and I still have no idea why it doesn't work
on some hardwares.

Obtained from: OpenBSD [1]
Submitted by: Peer Chen < pchen at nvidia dot com > [2], [3]
Reviewed by: Shigeaki Tagashira < shigeaki AT se DOT hiroshima-u DOT ac DOT jp >
Tested by: Shigeaki Tagashira, current
Discussed with: current
Silence from: obrien

17 years agoReset the pointer to the ioctl buffer after it gets changed.
Andrew Thompson [Tue, 12 Jun 2007 00:52:40 +0000 (00:52 +0000)]
Reset the pointer to the ioctl buffer after it gets changed.

17 years agoEliminate now-unused SUSER_ALLOWJAIL arguments to priv_check_cred(); in
Robert Watson [Tue, 12 Jun 2007 00:12:01 +0000 (00:12 +0000)]
Eliminate now-unused SUSER_ALLOWJAIL arguments to priv_check_cred(); in
some cases, move to priv_check() if it was an operation on a thread and
no other flags were present.

Eliminate caller-side jail exception checking (also now-unused); jail
privilege exception code now goes solely in kern_jail.c.

We can't yet eliminate suser() due to some cases in the KAME code where
a privilege check is performed and then used in many different deferred
paths.  Do, however, move those prototypes to priv.h.

Reviewed by: csjp
Obtained from: TrustedBSD Project

17 years ago - Add a missing PROC_SUNLOCK() in tdsignal()
Jeff Roberson [Mon, 11 Jun 2007 23:27:03 +0000 (23:27 +0000)]
 - Add a missing PROC_SUNLOCK() in tdsignal()

17 years agoClean up, and sometimes remove, a number of audit-related implementation
Robert Watson [Mon, 11 Jun 2007 22:10:54 +0000 (22:10 +0000)]
Clean up, and sometimes remove, a number of audit-related implementation
comments.

Obtained from: TrutstedBSD Project

17 years ago - Move p_ru to the zero'd section of the proc to keep stats accurate.
Jeff Roberson [Mon, 11 Jun 2007 21:59:39 +0000 (21:59 +0000)]
 - Move p_ru to the zero'd section of the proc to keep stats accurate.

17 years agoAdd CPU_XSCALE_81342 before I forget again.
Olivier Houchard [Mon, 11 Jun 2007 21:31:13 +0000 (21:31 +0000)]
Add CPU_XSCALE_81342 before I forget again.

17 years agoIntroduce pmap_kenter_supersection(), which maps 16MB super-sections into
Olivier Houchard [Mon, 11 Jun 2007 21:29:26 +0000 (21:29 +0000)]
Introduce pmap_kenter_supersection(), which maps 16MB super-sections into
the kernel pmap.
Document a bit more the behavior of the xscale core 3.

17 years agoRe-acquire the PROC_SLOCK before calling calcru(), and release it after,
Olivier Houchard [Mon, 11 Jun 2007 21:05:41 +0000 (21:05 +0000)]
Re-acquire the PROC_SLOCK before calling calcru(), and release it after,
since calcru() expects it to be locked.

Reviewed by: attilio

17 years ago- Validate incoming addresses and sizes for connectx and bindx.
Randall Stewart [Mon, 11 Jun 2007 21:05:29 +0000 (21:05 +0000)]
- Validate incoming addresses and sizes for connectx and bindx.
- For non-sys call version pass the msg_flags.

17 years agoBump __FreeBSD_version for TCP LRO support.
Andre Oppermann [Mon, 11 Jun 2007 20:19:11 +0000 (20:19 +0000)]
Bump __FreeBSD_version for TCP LRO support.

17 years agoAdd reporting and toggling of TCP LRO (large receive offload) support to
Andre Oppermann [Mon, 11 Jun 2007 20:15:20 +0000 (20:15 +0000)]
Add reporting and toggling of TCP LRO (large receive offload) support to
ifconfig(8).

17 years agoCorrect corrupt read when the read starts at a non-aligned offset.
Remko Lodder [Mon, 11 Jun 2007 20:14:44 +0000 (20:14 +0000)]
Correct corrupt read when the read starts at a non-aligned offset.

PR: kern/77234
MFC After: 1 week
Approved by: imp (mentor)
Requested by: many many people
Submitted by: Andriy Gapon <avg at icyb dot net dot ua>

17 years agoAdd IFCAP_LRO flag for drivers to announce their TCP Large Receive Offload
Andre Oppermann [Mon, 11 Jun 2007 20:08:11 +0000 (20:08 +0000)]
Add IFCAP_LRO flag for drivers to announce their TCP Large Receive Offload
capabilities.

17 years agoExclude inet_addr.c from the build.
Olivier Houchard [Mon, 11 Jun 2007 19:38:38 +0000 (19:38 +0000)]
Exclude inet_addr.c from the build.
It only provides inet_aton(), which is already provided by the libc. This
causes multiple symbol definitions when linking statically.

Reviewed by:    darrenr

17 years agoFix a spacing nit.
Warner Losh [Mon, 11 Jun 2007 19:36:37 +0000 (19:36 +0000)]
Fix a spacing nit.

17 years agoPrefer __packed to __attribute__((__packed__)).
Warner Losh [Mon, 11 Jun 2007 19:34:53 +0000 (19:34 +0000)]
Prefer __packed to __attribute__((__packed__)).

OK'd by sam@ months ago...

17 years agoExclude wlan_scan_* from PAE like the rest of wlan.
Andrew Thompson [Mon, 11 Jun 2007 19:29:42 +0000 (19:29 +0000)]
Exclude wlan_scan_* from PAE like the rest of wlan.

17 years agoRemove some ioctls that were ill-thought out. There is no user
Matt Jacob [Mon, 11 Jun 2007 19:15:49 +0000 (19:15 +0000)]
Remove some ioctls that were ill-thought out. There is no user
impact as no softwware using these ioctls was ever committed.

Redo locking for ispioctl.

17 years agoMove the oversize ethernet frame size check into DIAGNOSTIC,
Andrew Gallatin [Mon, 11 Jun 2007 18:45:49 +0000 (18:45 +0000)]
Move the oversize ethernet frame size check into DIAGNOSTIC,
as was proposed when it was originally added.  This allows
LRO to work on non-DIAGNOSTIC kernels without consuming
any mbuf flags.

Discussed with: sam

17 years agoCreate group ftp by default. This is gid 14 as this is the historical
Ceri Davies [Mon, 11 Jun 2007 18:36:39 +0000 (18:36 +0000)]
Create group ftp by default.  This is gid 14 as this is the historical
id used by sysinstall when enabling anonymous FTP.

Change the default group used by sysinstall for setting up anonymous FTP
from operator to ftp; there is no reason to use operator and there are
potential security issues when doing so.

PR: 93284
Approved by: ru (mentor)
Reviewed by: simon

17 years agoBack out the previous commit which added an M_LRO mbuf flag
Andrew Gallatin [Mon, 11 Jun 2007 18:26:25 +0000 (18:26 +0000)]
Back out the previous commit which added an M_LRO mbuf flag
to defeat the mtu check in ether_input.  Mbuf flags are too scarce.
Discussed with: sam

17 years agoCheck against maxsegsz being zero in bus_dma_tag_create and return EINVAL
Matt Jacob [Mon, 11 Jun 2007 17:57:24 +0000 (17:57 +0000)]
Check against maxsegsz being zero in bus_dma_tag_create and return EINVAL
if it is.

Reviewed by: scott long

17 years agoOnly try and set a segment lim size to 1 << 32 iff bus_size_t > 4.
Matt Jacob [Mon, 11 Jun 2007 17:56:17 +0000 (17:56 +0000)]
Only try and set a segment lim size to 1 << 32 iff bus_size_t > 4.

17 years agoSilence a gcc warning in a more canonical way (evl = NULL rather than &evl).
Warner Losh [Mon, 11 Jun 2007 15:29:02 +0000 (15:29 +0000)]
Silence a gcc warning in a more canonical way (evl = NULL rather than &evl).
I saw warnings here at one point on the arm build.

17 years agoAllow drivers, such as cxgb and mxge, which support LRO to bypass
Andrew Gallatin [Mon, 11 Jun 2007 14:59:56 +0000 (14:59 +0000)]
Allow drivers, such as cxgb and mxge, which support LRO to bypass
the MTU check in ether_input() on LRO merged frames.

Discussed with: kmacy

17 years agoSmall LRO related fixes for mxge:
Andrew Gallatin [Mon, 11 Jun 2007 14:01:10 +0000 (14:01 +0000)]
Small LRO related fixes for mxge:
- Allow LRO to be enabled / disabled at runtime
- Fix a double-free at module unload time.
- Only update timestamp in lro merge when it is present in the frame
Sponsored by: Myricom

17 years agoWhen we return from a "show" function without printing anything except
Bruce Evans [Mon, 11 Jun 2007 13:02:15 +0000 (13:02 +0000)]
When we return from a "show" function without printing anything except
a warning, return 1 instead of 0 to indicate that we didn't print
anything, so that top-level callers don't print a spurious newline.
This is mainly to fix output formatting when stderr is redirected.  It
also helps in some cases when stderr is interleaved with stdout,
depending on the details of the interleaving (this program has the
usual null explicit support for syncing stderr with stdout).

Return 1 instead of -1 after printing the "malloc failed" warning, since
the return value is boolean.

17 years agoAdd missing \n to printf
Poul-Henning Kamp [Mon, 11 Jun 2007 12:19:34 +0000 (12:19 +0000)]
Add missing \n to printf

17 years agoMFp4 (missed in net80211 megaupdate)
Andrew Thompson [Mon, 11 Jun 2007 10:56:06 +0000 (10:56 +0000)]
MFp4 (missed in net80211 megaupdate)
 - Use a seperate taskqueue+thread for reset tasks since iwi_ops will
   block.
 - Return from iwi_ops if the interface has been downed
 - The firmware will fail if we are already associated
 - Add myself to the copyright

17 years agoAdd wlan_scan_ap and wlan_scan_sta to platforms that include wlan.
Andrew Thompson [Mon, 11 Jun 2007 08:26:40 +0000 (08:26 +0000)]
Add wlan_scan_ap and wlan_scan_sta to platforms that include wlan.

17 years agoFix what seems to be a copy-paste buglet (`moused_type' is used
Giorgos Keramidas [Mon, 11 Jun 2007 08:19:04 +0000 (08:19 +0000)]
Fix what seems to be a copy-paste buglet (`moused_type' is used
in the description of `moused_flags', instead of the later), and
add a description of `moused_XXX_flags' where `XXX' is the port
name of a non-default moused invocation -- including an example
of using "-3" with the default moused(8) instance, but no special
flags for moused(8) invocations handling 3-button USB mice (which
seems a very common scenario these days).

MFC after: 3 days

17 years agoFix an aliasing bug which was finally detected by gcc-4.2. fdlibm has
Bruce Evans [Mon, 11 Jun 2007 07:48:52 +0000 (07:48 +0000)]
Fix an aliasing bug which was finally detected by gcc-4.2.  fdlibm has
hundreds of similar aliasing bugs, but all except this one seem to have
been fixed by Cygnus and/or NetBSD before the modified version of fdlibm
was imported into FreeBSD in 1994.

PR: standards/113147
Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>

17 years agoAdd new files in the net80211 changes.
Andrew Thompson [Mon, 11 Jun 2007 07:26:35 +0000 (07:26 +0000)]
Add new files in the net80211 changes.

17 years agoAdd inet_ntoa_r, a reentrant version of inet_ntoa. This is
Xin LI [Mon, 11 Jun 2007 07:21:21 +0000 (07:21 +0000)]
Add inet_ntoa_r, a reentrant version of inet_ntoa.  This is
available on a lot of platforms, as well as libkern for years.

Submitted by: "MQ"

17 years agoUse tabs after #define.
Stefan Farfeleder [Mon, 11 Jun 2007 06:25:19 +0000 (06:25 +0000)]
Use tabs after #define.

Obtained from: NetBSD
Spotted by: njl

17 years agoExpand DECLARE_USB_DMA_T inline in the one place it is used and eliminate
Warner Losh [Mon, 11 Jun 2007 06:21:50 +0000 (06:21 +0000)]
Expand DECLARE_USB_DMA_T inline in the one place it is used and eliminate
from usb_port.h.

17 years agoEliminate USB_ATTACH_SETUP and USB_MATCH_SETUP. They are no longer in
Warner Losh [Mon, 11 Jun 2007 06:18:34 +0000 (06:18 +0000)]
Eliminate USB_ATTACH_SETUP and USB_MATCH_SETUP.  They are no longer in
the tree.

17 years agoPrefer device_printf over printf.
Warner Losh [Mon, 11 Jun 2007 06:14:42 +0000 (06:14 +0000)]
Prefer device_printf over printf.

17 years agoMinor tweak.
Warner Losh [Mon, 11 Jun 2007 06:03:32 +0000 (06:03 +0000)]
Minor tweak.

17 years agoPrefer device_printf to printf
Warner Losh [Mon, 11 Jun 2007 06:01:05 +0000 (06:01 +0000)]
Prefer device_printf to printf
Eliminate rue_unit from softc

# saves ~200 bytes

17 years agoPrefer device_printf to printf
Warner Losh [Mon, 11 Jun 2007 05:50:47 +0000 (05:50 +0000)]
Prefer device_printf to printf
Remove keu_unit from softc

# this change saves about 180 bytes in the module, all in text