57156 Commits

Author SHA1 Message Date
luigi
8cff694705 MFC: protect against multiple inclusions 2007-01-31 10:44:04 +00:00
rodrigc
80d7753e80 MFC: 1.148, 1.149:
Properly parse "longname", "longnames", "shortname", "shortnames",
"nowin95", "win95" mount options.

Requested by:	Tomas Doskocil <dosky gravastar cz>
2007-01-31 02:49:44 +00:00
yongari
d21ea94b3a MFC if_re.c rev 1.83 to RELENG_6.
It seems that enabling Tx and Rx before setting descriptor DMA
  addresses shall access invalid descriptor DMA addresses on PCIe
  hardwares and then panicked the system.
  To fix it set descriptor DMA addresses before enabling Tx and Rx
  such that hardware can see valid descriptor DMA addresses. Also
  set RL_EARLY_TX_THRESH before starting Tx and Rx.
2007-01-31 00:24:11 +00:00
mlaier
f7b44dde77 Revert 1.1.2.2 as linker_release_module is not in RELENG_6. Will have to
look for a better way and will compile test "trivial changes" in the future.

Noticed by:	marcel, tinderbox
Pointy hat to:	mlaier
2007-01-30 23:54:49 +00:00
marius
8ecbc56a10 Check the return value of bus_setup_intr() when setting up the
over-temperature and power-fail interrupts.
2007-01-30 15:44:16 +00:00
marius
e5776944de MFC: if_re.c 1.82, if_rlreg.h 1.64
o In re_newbuf() and re_encap() if re_dma_map_desc() aborts the mapping
  operation as it ran out of free descriptors or if there are too many
  segments in the first place, call bus_dmamap_unload() in order to
  unload the already loaded segments.
  For trying to map the defragmented mbuf (chain) in re_encap() this
  introduces re_dma_map_desc() setting arg.rl_maxsegs to 0 as a new
  failure mode. Previously we just ignored this case, corrupting our
  view of the TX ring.
o In re_txeof():
  - Don't clear IFF_DRV_OACTIVE unless there are at least 4 free TX
    descriptors. Further down the road re_encap() will bail if there
    aren't at least 4 free TX descriptors, causing re_start() to
    abort and prepend the dequeued mbuf again so it makes no sense
    to pretend we could process mbufs again when in fact we won't.
    While at it replace this magic 4 with a macro RL_TX_DESC_THLD
    throughout this driver.
  - Don't cancel the watchdog timeout as soon as there's at least one
    free TX descriptor but instead only if all descriptors have been
    handled. It's perfectly normal, especially in the DEVICE_POLLING
    case, that re_txeof() is called when only a part of the enqueued
    TX descriptors have been handled, causing the watchdog to be
    disarmed prematurely.
o In re_encap():
  - If m_defrag() fails just drop the packet like other NIC drivers
    do. This should only happen when there's a mbuf shortage, in which
    case it was possible to end up with an IFQ full of packets which
    couldn't be processed as they couldn't be defragmented as they
    were taking up all the mbufs themselves. This includes adjusting
    re_start() to not trying to prepend the mbuf (chain) if re_encap()
    has freed it.
  - Remove dupe initialization of members of struct rl_dmaload_arg to
    values that didn't change since trying to process the fragmented
    mbuf chain.
    While at it remove an unused member from struct rl_dmaload_arg.
o In re_start() remove a abandoned, banal comment. The corresponding
  code was moved to re_attach() some time ago.
2007-01-30 14:16:24 +00:00
marius
69e76ab1f9 MFC: if_re.c 1.80, if_rlreg.h 1.63
- Use the re_tick() callout instead of if_slowtimo() for driving
  re_watchdog() in order to avoid races accessing if_timer.
- Use bus_get_dma_tag() so re(4) works on platforms requiring it;
  though for RELENG_6 this is a NOOP so far and just MFC'ed for diff
  reduction.
- Remove invalid BUS_DMA_ALLOCNOW when creating the parent DMA tag
  and the tags that are used for static memory allocations.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
- Remove an unused variable in re_intr().
2007-01-30 14:00:59 +00:00
mlaier
d53838eb86 MFC, subr_firmware.c 1.7:
In case we are supplied with an imagename that matches a module, but not a
  firmware in that module (eventhough this is a programming error) - drop
  the reference to the module again.

  Submitted by:	Benjamin Close
2007-01-30 12:46:05 +00:00
marius
6ff8b235bb MFC: 1.70 (partial), 1.74
- Sync descriptions of RL_HWREV_8168_SPIN{1,2} with HEAD (merge botch
  of rev. 1.70 in rev. 1.46.2.17).
- Consistently use if_printf() only in interface methods: if_start(),
  if_watchdog, etc., or in functions used only in these methods.
  In all other functions in the driver use device_printf().
2007-01-30 10:55:32 +00:00
csjp
0776883b09 MFC auditing hooks for sparc64
NOTE: this is compile tested only
2007-01-29 21:32:18 +00:00
csjp
673e917e32 MFC the AUDIT_SYSCALL_{EXIT|ENTER} macros. This unbreaks auditing for
amd64 by allocating and committing audit records for syscalls. It should
be noted that the submission of userspace records are not affected by
this bug.
2007-01-29 17:48:33 +00:00
glebius
0c31167d40 Bump __FreeBSD_version for MFC of ng_deflate(4) and ng_pred1(4)
netgraph nodes and new features in ng_ppp(4).
2007-01-28 17:19:19 +00:00
glebius
d47bcebbb2 Merge the ng_deflate(4) and ng_pred1(4) nodes.
Submitted by:	Alexander Motin <mav alkar.net>
2007-01-28 17:14:57 +00:00
glebius
1c62bdd5f6 Sync ng_ppp(4) node with HEAD. This includes the rewrite of the PPP
stack and new options to specify the compression and encryption mode.

Submitted by:	Alexander Motin <mav alkar.net>
2007-01-28 17:14:08 +00:00
sam
fd2d039aca sync w/ HEAD: factor common code in ath_tx_start to be used for
raw packet injection support
2007-01-28 06:10:12 +00:00
nyan
092247bb9f MFi386: revision 1.38.2.1.
Sync with HEAD including support for reading any %crX register as well
  as some space savings.
2007-01-28 05:49:02 +00:00
nyan
8fd98330ce MFi386: revision 1.616.2.8.
MFC: Sync sizes of physmap[], phys_avail[], and dump_avail[] and bump up
  the sizes to handle systems with very fragmented memory maps.
2007-01-28 05:44:56 +00:00
sam
c9bcbf1a6d MFC: half- and quarter-rate channel support
enable write of most hw.ath sysctl knobs
     remove public safety band bandaids w/ more recent hal available
     allow net80211 to install default rate sets
2007-01-28 04:10:40 +00:00
sam
c48f416515 MFC: half- and quarter-rate channel support
900MHz channel support
     support for respecifying the channel set after attach
     default rate sets
2007-01-28 04:07:54 +00:00
rodrigc
9575ae8b5f MFC: 1.199, 1.200, 1.219, 1.222
Cleanups to vfs_donmount() function to better handle
"mount -u -o ro", "mount -r /usr", "mount -ar".

PR:		104687
2007-01-28 01:56:50 +00:00
rodrigc
d56be0347f MFC: mount.h 1.200, 1.217
vfs_mount.c 1.198, 1.243

Add vfs_mount_error() and vfs_deleteopt() functions.
2007-01-27 21:02:57 +00:00
sam
8b8355605d sync with HEAD 2007-01-27 07:26:09 +00:00
sam
2cf1d55a79 MFC: track v0.9.20.3 hal 2007-01-27 07:12:58 +00:00
sam
8ad5e94d1f MFC: v0.9.20.3 hal 2007-01-27 07:07:32 +00:00
sam
640d88ed17 MFC 1.203: drop softc lock when passing rx frames up the stack 2007-01-27 06:37:41 +00:00
sam
4829b269f2 MFC 1.202: split wi_start int locked+unlocked variants and use the
unlocked one from the isr to eliminate a recursive lock
2007-01-27 06:36:51 +00:00
sam
db0b7c17c9 MFC: nuke compatibility cruft 2007-01-27 05:51:29 +00:00
sam
db49794249 MFC 1.156: mark tx/rx descriptors COHERENT 2007-01-27 05:46:57 +00:00
scottl
b04d835340 MFC rev 1.26: Fix multicast. 2007-01-27 00:05:56 +00:00
cvs2svn
7fc74e4ad3 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-01-26 10:19:09 +00:00
sam
473caab65c MFC 1.10: reduce user-visible namespace to just what is needed 2007-01-26 06:48:07 +00:00
sam
b6c9f6e18e MFC 1.88: add entry points required by newer broadcom wireless driver 2007-01-26 06:45:33 +00:00
sam
a41bee3053 MFC: device-independent implementation of AMRR tx rate control algorithm 2007-01-26 06:40:28 +00:00
glebius
139fbb1227 MFC 1.4:
Update ip and tcp pointers after m_pullup().

  Submitted by:	Alexander Motin <mav alkar.net>
2007-01-25 21:44:06 +00:00
glebius
0ac6b4cbce MFC 1.7, 1.8:
Return value PKT_ALIAS_FOUND_HEADER_FRAGMENT isn't an error case. The
  packet shouldn't be dropped.

  Submitted by:		Alexander Motin <mav alkar.net>

  Correctly calculate length of IP header.

  Submitted by:		Eugene Hartmann <eugene tpsb.com.ru>
2007-01-25 21:42:47 +00:00
glebius
4785e43cc0 MFC 1.20 - 1.24:
- Use bitcount32() from sys/systm.h instead of my own.
- Use hash functions with better distribution.
- Break long line.
2007-01-25 21:39:00 +00:00
glebius
051c9c045c MFC 1.13:
Recognize 802.1q frames in Ethernet input and process them.

  PR:		kern/101162
  Submitted by:	CoolDavid (Tseng Guo-Fu) <cooldavid cdpa.nsysu.edu.tw>
2007-01-25 21:35:43 +00:00
sam
d034c91e3a MFC 1.43: add rate control debug msg bit 2007-01-25 17:39:21 +00:00
jhb
3461e34b80 MFC: Fix some edge cases in detach. 2007-01-23 22:17:48 +00:00
jhb
f1ec4073c1 MFC: Wrap propagate_priority() in a critical section to prevent unwanted
preemptions.
2007-01-23 22:16:33 +00:00
jhb
75b2243602 MFC: Fix some edge cases in detach() and a memory leak if we fail to talk
to the BMC.
2007-01-23 21:55:47 +00:00
njl
46f5331e05 MFC: support for separate CPU Cx idle states 2007-01-23 07:21:23 +00:00
flz
212ccfedee MFC:
Fix USB printer Xerox WorkCentre M15 adding a quirk to bypass
  reported bidirectional functionality.

      src/sys/dev/usb/usbdevs: rev 1.276 -> 1.277
      src/sys/dev/usb/usb_quirks.c: rev 1.54 -> 1.55

PR:		usb/104704
Submitted by:	Eygene <rea-fbsd@codelabs.ru>
2007-01-22 17:57:30 +00:00
markus
1e7347a81f MFC rev. 1.83:
Fix a buffer overflow iff USB_DEBUG is set, hw.usb.ums.debug is > 5 and the
  total size of all input reports is < 6.

Approved by:	emax (mentor)
2007-01-21 02:27:40 +00:00
thompsa
b705141809 MFC Rapid Spanning Tree support.
This fully syncs bridgestp* and if_bridge* to HEAD with the exception of the
default spanning tree protocol being v1 and not rstp.
2007-01-21 00:18:34 +00:00
delphij
3ff5fce992 MFC revision 1.4
date: 2006/12/20 17:10:53;  author: delphij;  state: Exp;  lines: +5 -0
On amd64 platform, use linux32 headers so 32-bit Linux applications
would be able to work with aac(4).

This approach is used by some other drivers as well.  However, we
need a more generic way to do this in order to avoid having to
special case headers in individual drivers for each platform.

Obtained from:  Adaptec (version b11518)
2007-01-20 07:05:55 +00:00
ume
2d5a33fd89 MFC 1.74: Avoid infinite loop if nicmp6 and nip6 are not on the same mbuf.
NetBSD PR 34994+35333
2007-01-20 06:22:31 +00:00
csjp
df19c08d41 MFC audit_private.h revision 1.12
MFC audit_arg.c revision 1.7

- Change the type we are using for struct sockaddr storage
2007-01-20 02:24:06 +00:00
csjp
ce9f3ca787 MFC if_tap.c revision 1.65
- Do not unconditionally report success on write(2)
2007-01-20 02:23:39 +00:00
jhb
bd48914a94 MFC: Change the life cycle of bpf interface objects to close attach/detach
races with bpf(4).  This includes shims to preserve the ABI for any old
modules.  For more details see the commit log for 1.166 of sys/net/bpf.c.
2007-01-19 23:01:34 +00:00