121394 Commits

Author SHA1 Message Date
brueffer
a7766135e5 MFC:
Autogenerate hardware notes for msk(4).
2007-03-27 07:30:54 +00:00
brueffer
7f80d30a62 MFC: rev. 1.19
Add Xref to msk(4).
2007-03-27 07:21:16 +00:00
alc
54ceb8be24 MFC revision 1.534
Replace diagnostic printf()s by assertions.  Use consistent style for
  similar assertions.

MFC revision 1.545
  Remove stale KSE code.

MFC revision 1.580
  Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
2007-03-27 06:15:01 +00:00
alc
85231f2556 MFC revision 1.547
Introduce pmap_try_insert_pv_entry(), a function that conditionally
  creates a pv entry if the number of entries is below the high water mark
  for pv entries.

  Use pmap_try_insert_pv_entry() in pmap_copy() instead of
  pmap_insert_entry().  This avoids possible recursion on a pmap lock in
  get_pv_entry().

  Eliminate the explicit low-memory checks in pmap_copy().  The check that
  the number of pv entries was below the high water mark was largely
  ineffective because it was located in the outer loop rather than the
  inner loop where pv entries were allocated.  Instead of checking, we
  attempt the allocation and handle the failure.
2007-03-27 04:42:26 +00:00
yongari
83883fc711 MFC msk(4) to RELENG_6
Add msk(4) to the list of drivers supported by GENERIC kernel.
2007-03-27 02:33:00 +00:00
yongari
85d9decbbd MFC devices.c, rev. 1.171 to RELENG_6
Add msk(4) to the list of supported network interface.
2007-03-27 02:31:34 +00:00
yongari
2302a1991e MFC loader.conf, rev. 1.114 to RELENG_6
Add an entry for the msk(4) module.
2007-03-27 02:29:45 +00:00
yongari
9b62a8caf0 MFC miibus.4, rev. 1.19 to RELENG_6
Add msk(4) to the list of device drivers use the miibus interface.
2007-03-27 02:28:15 +00:00
yongari
bfa30bc97f MFC altq.4, rev. 1.23 to RELENG_6
Add msk(4) to the list of drivers supporting ALTQ.
2007-03-27 02:26:33 +00:00
yongari
deaf7987e8 MFC vlan.4, rev. 1.33 to RELENG_6
Add msk(4) to the list of devices supporting full VLAN processing
   in the hardware.
2007-03-27 02:24:47 +00:00
yongari
10c14bf621 MFC msk(4) to RELENG_6
Add a man page for msk(4)
2007-03-27 02:23:05 +00:00
yongari
0a744e8a9e MFC msk(4) to RELENG_6
Hook up msk(4) to the build.
2007-03-27 02:20:20 +00:00
yongari
8b87f9315c MFC msk(4) to RELENG_6
Add msk(4), a driver for Marvell/SysKonnect Yukon II Gigabit Ethernet
  controller. Due to lack of documentation, this driver is based on the
  code from sk(4) and Marvell's myk(4) driver for FreeBSD. I've also
  adopted the OpenBSD interface name, msk(4) in order to reduce naming
  differences between BSDs.
2007-03-27 02:16:15 +00:00
le
0cb6f2ee56 MFC:
Drop the ipw softc lock before calling back into net80211, fixing a
   LOR/deadlock.

   Tested by:   Denis Shaposhnikov <dsh_AT_vlink.ru>, le@
   LOR id:      205
2007-03-27 01:15:57 +00:00
alc
b4c742cb67 MFC
Acquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful.
  For example, during a buildworld more than half of the calls do not
  generate an IPI because the only TLB entry invalidated is on the calling
  processor.  This revision pushes down the acquisition and release of
  smp_ipi_mtx into smp_tlb_shootdown() and smp_targeted_tlb_shootdown() and
  instead uses sched_pin() and sched_unpin() in pmap_invalidate_*() so that
  thread migration doesn't lead to a missed TLB invalidation.
2007-03-26 04:22:25 +00:00
alc
03b81dcdd1 MFC revision 1.546
Eliminate unnecessary invalidations of the entire TLB by pmap_remove().
  Specifically, on mappings with PG_G set pmap_remove() not only performs
  the necessary per-page invlpg invalidations but also performs an
  unnecessary invalidation of the entire set of non-PG_G entries.
2007-03-25 22:01:24 +00:00
rik
32d6705a6f MFC: -j 1.95 -j 1.96
rik         2007-03-18 23:28:53 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_bridge.c
  Log:
  Give a chance for packet to appear with a correct input interfaces
  in case of multiple interfaces with the same MAC in the same bridge.
  This commit do not solve the entire problem. Only case where packet
  arrived from such interface.

  PR:     kern/109815
  MFC after:      7 days
  Submitted by:   Eygene Ryabinkin and rik@
  Discussed with: bms@, thompsa@, yar@

  Revision  Changes    Path
  1.96      +50 -30    src/sys/net/if_bridge.c
2007-03-25 21:33:38 +00:00
alc
dddc0eb780 MFCrevision 1.560
Don't invalidate the TLB in pmap_qenter() unless the old mapping was
  valid.  Most often, it isn't.
2007-03-25 20:53:45 +00:00
maxim
5674640ce8 o ommitted -> omitted.
PR:		docs/110809
Submitted by:	naddy
2007-03-25 18:31:45 +00:00
njl
8d2f88308e MFC: add acpi_hpet to the build (pointed out as missing by kib@) 2007-03-24 16:00:44 +00:00
maxim
8f9174c29d o Revert last: addr2ascii() is still there.
Pointed out by:	bmah
2007-03-23 21:56:06 +00:00
maxim
3b813a3b83 MFC rev. 1.75: kill addr2ascii() man page. 2007-03-23 21:37:32 +00:00
maxim
2bb628e2a5 o Kill EOL whitespaces. HEAD is OK already. 2007-03-23 21:35:32 +00:00
maxim
8d19c86f56 MFC rev. 1.20: add ENVIRONMENT section. 2007-03-23 21:03:19 +00:00
njl
a4dac9cda4 MFC: always return ok when getting number of units 2007-03-23 20:02:39 +00:00
njl
a628096ab1 MFC: validity checking of _TMP values 2007-03-23 19:48:31 +00:00
njl
a302799d1a MFC: acpi_dock (docking station) and acpi_hpet (high-perf timer) support 2007-03-23 19:45:53 +00:00
delphij
dba390aeb5 MFC revision 1.2
date: 2007/03/16 03:50:53;  author: delphij;  state: Exp;  lines: +9 -1
Mention a limitation that was inherted from RFC1952, making
it impossible to obtain correct file size from a file that
is larger than 4GB before compression.

PR:		bin/110329
2007-03-23 01:55:20 +00:00
emaste
ed6f44303b MFC r1.64:
KERN_PROC_ALL produces a kinfo_proc for each thread in a process, which
  caused fstat to produce duplicated output for threaded processes.  Instead
  use KERN_PROC_PROC to get just one kinfo_proc per process.
2007-03-23 01:00:40 +00:00
cvs2svn
2690c32189 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-03-22 18:16:44 +00:00
glebius
655a90dccf Carefully merge revs 1.123, 1.124, omitting the 1.120 change. This
should fix resets of the long living TCP connections with
EHOSTDOWN message.

PR:		100172
Submitted by:	"Andrew - Supernews" <andrew supernews.net>
2007-03-22 10:55:13 +00:00
yongari
7734c56e52 MFC e1000phy.c rev. 1.17, 1.18 to RELENG_6
rev. 1.17
  o style(9) fixes

rev. 1.18
  o Add support code for newer Marvell PHYs.
  o Remove unused static global variable e1000phy_debug.
  o Take advantage of mii_phy_dev_probe().
  o Use MII_ANEGTICKS/MII_ANEGTICKS_GIGE instead of magic number 5.
  o Add IFM_NONE as e1000phy(4) supports it without issues.
  o Nuke magic PHY programming sequence in PHY reset and follow correct
    reset sequence. [1]
  o Make manual media selection work for all supported media types.
  o Don't set MIIF_NOISOLATE so e1000phy(4) can be used in
    configurations with multiple PHYs.
  o In 1000baseT, when setting the link manually, one side must be the
    master and the other the slave. If LINK0 is set, program the PHY
    to be a master, otherwise it's a slave.
  o When we lost a link, reset mii_ticks immediately so it correctly
    check number of seconds elapsed in autonegotiation phase.
  o Announce link loss right after it happens.
  o After kicking autonegotiation, report PHY status instead of
    returning immediatly.
  o When link state check is in progress, check auto negotiation
    completion bit only when auto negotiation is enbaled.
  o When PHY is resolved to a master, show it with IFM_FLAG2.
2007-03-22 04:05:17 +00:00
yongari
07e0e536b4 MFC e1000phyreg.h, rev. 1.4 to RELENG_6
Add additional Marvell PHY registers.
2007-03-22 03:59:04 +00:00
yongari
89d4e0593d MFC miidevs, rev. 1.37 to RELENG_6
Add a bunch of new Marvell PHY ids.
2007-03-22 03:57:00 +00:00
simokawa
ed53df7d5f MFC: rev 1.12
Add a description about hw.firewire.hold_count.
2007-03-22 02:47:23 +00:00
jkim
ea434b5330 MFC: Sync bge(4) with -CURRENT (minus if_bge.c 1.185 and 1.186)
- Support for BCM5754/5755/5786/5787.
- Support for IPMI/ASF mode (disabled by default)
- Fix lots of bugs including style(9) nits.

Tested by:	net, stable
2007-03-21 22:53:22 +00:00
cperciva
f0fef48c73 Fix previous commit due to libarchive 1.x vs libarchive 2.x differences.
Submitted by:	Henrik Nymann Jensen
Pointy hat to:	cperciva
2007-03-21 19:19:00 +00:00
oleg
2d4a432a17 MFC rev. 1.102-1.105
- style(9) cleanup
- Use separate thread for servicing dummynet(4).
  Utilize taskqueue(9) API.
- Convert
        net.inet.ip.dummynet.curr_time
        net.inet.ip.dummynet.searches
        net.inet.ip.dummynet.search_steps
  to SYSCTL_LONG nodes. It will prevent frequent wrap around on 64bit archs.
- Implement simple mechanics for dummynet(4) internal time correction.
  Under certain circumstances (system high load, dummynet lock contention, etc)
  dummynet's tick counter can be significantly slower than it should be.
  (I've observed up to 25% difference on one of my production servers).
  Since this counter used for packet scheduling, it's accuracy is vital for
  precise bandwidth limitation.

  Introduce new sysctl nodes:
  net.inet.ip.dummynet.
    tick_lost           - number of ticks coalesced by taskqueue thread.
    tick_adjustment     - number of time corrections done.
    tick_diff           - adjusted vs non-adjusted tick counter difference
    tick_delta          - last vs 'standard' tick differnece (usec).
    tick_delta_sum      - accumulated (and not corrected yet) time
                          difference (usec).
- Use non-recursive mutex. MTX_RECURSE is unnecessary since rev. 1.70
- Pay respect to net.isr.direct: use netisr_dispatch() instead of ip_input()
- purge_flow_set():
    Do not leak memory while purging queues which are not bound to pipe.
2007-03-21 17:25:15 +00:00
cperciva
a5760e447c MFC revision 1.13: Don't forget to increment the raw_position counter,
even when operating in non-buffered mode.
2007-03-21 15:26:02 +00:00
cperciva
3f174ff209 MFC revisions 1.5[6789]:
* Remove unused pathlen argument from write_entry function.
 * Fix logic bug in deciding if do_chdir should be called.
 * Don't consider an lstat(2) failure to be an error.
 * Correct warning message when lstat(2) fails.
2007-03-21 15:15:57 +00:00
sam
50ad12ffaa MFC: power save fix:
When dispatching frames saved on the power save queue to a
station exiting power save mode prepend them to the driver's
send q instead of appending them.  This insures the packets
are not misordered wrt any packets already q'd for the station.

This corrects a problem noticed when using a VoIP phone talking
to an ath card in ap mode; the misordered packets caused noise.

Submitted by:	"J.R. Oldroyd" <jr@opal.com>
2007-03-21 05:01:44 +00:00
sam
d27615575e MFC 1.79: when starting up an ibss master use a random address for the bssid
Obtained from:	Atheros
2007-03-21 04:56:38 +00:00
nyan
a2b5e4e7ca MFi386: revision 1.13.8.4.
MFC: Fix the cdboot twiddle display.
2007-03-21 03:41:25 +00:00
bms
0912cc2790 Sync with HEAD. 2007-03-21 00:45:13 +00:00
bms
b60ca7d2f2 MFC rev 1.53:
Remove obsolete polling members from documentation for struct ifnet.

Submitted by:	Aniruddha Bohra
2007-03-20 23:24:25 +00:00
brian
72a4b5e81b MFC: Don't free the buffer with the sysctl value before printing it. 2007-03-20 23:15:45 +00:00
will
cb065a2c70 MFC: r1.18: Allow overriding the HOME environment as per the man page. 2007-03-20 20:22:18 +00:00
bms
310665f00d MFC:
In regular forwarding path, reject packets destined for 169.254.0.0/16
  link-local addresses. See RFC 3927 section 2.7.

  Revision  Changes    Path
  1.96      +1 -1      src/sys/netinet/in.c
  1.324     +6 -0      src/sys/netinet/ip_input.c
2007-03-19 22:57:58 +00:00
brueffer
e5b973305a MFC:
- Add cxgb(4) entry, remove stale wx(4) entry
- (gigabit|fast) ethernet -> (Gigabit|Fast) Ethernet

Approved by:	rwatson (mentor)
2007-03-19 21:42:39 +00:00
brian
17ce8d3714 MFC: Default output to stdout as the man page suggests.
Only go through our cylinder group and inode info when we need to.
2007-03-19 19:16:49 +00:00