The NetBSD Project

CVS log for src/sys/net/if_tap.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / net

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.127.4.1 / (download) - annotate - [select for diffs], Fri Jan 6 13:54:58 2023 UTC (3 weeks, 2 days ago) by martin
Branch: netbsd-10
Changes since 1.127: +3 -2 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #38):

	sys/net/if_tap.c: revision 1.128

tap: link up an interface cloned from /dev/tap

Fix PR 57155 (partially)

Revision 1.128 / (download) - annotate - [select for diffs], Fri Jan 6 01:54:22 2023 UTC (3 weeks, 2 days ago) by ozaki-r
Branch: MAIN
CVS Tags: HEAD
Changes since 1.127: +3 -2 lines
Diff to previous 1.127 (colored)

tap: link up an interface cloned from /dev/tap

Fix PR 57155 (partially)

Revision 1.127 / (download) - annotate - [select for diffs], Sun Apr 10 09:50:46 2022 UTC (9 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.126: +3 -3 lines
Diff to previous 1.126 (colored)

fix various typos in comments and output/log messages.

Revision 1.126 / (download) - annotate - [select for diffs], Thu Mar 31 19:30:17 2022 UTC (9 months, 4 weeks ago) by pgoyette
Branch: MAIN
Changes since 1.125: +15 -21 lines
Diff to previous 1.125 (colored)

For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).

Revision 1.125 / (download) - annotate - [select for diffs], Mon Mar 28 12:33:22 2022 UTC (10 months ago) by riastradh
Branch: MAIN
Changes since 1.124: +3 -6 lines
Diff to previous 1.124 (colored)

driver(9): devsw_detach never fails.  Make it return void.

Prune a whole lotta dead branches as a result of this.  (Some logic
calling this is also wrong for other reasons; devsw_detach is final
-- you should never have any reason to decide to roll it back.  To be
cleaned up in subsequent commits...)

XXX kernel ABI change to devsw_detach signature requires bump

Revision 1.124 / (download) - annotate - [select for diffs], Sun Sep 26 15:58:33 2021 UTC (16 months ago) by thorpej
Branch: MAIN
Changes since 1.123: +11 -17 lines
Diff to previous 1.123 (colored)

Use seltrue_filtops rather than rolling our own with filt_seltrue.

Revision 1.123 / (download) - annotate - [select for diffs], Sun Sep 26 01:16:10 2021 UTC (16 months ago) by thorpej
Branch: MAIN
Changes since 1.122: +4 -4 lines
Diff to previous 1.122 (colored)

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.121.4.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:35 2021 UTC (19 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.121: +3 -11 lines
Diff to previous 1.121 (colored) next main 1.122 (colored)

Sync w/ HEAD.

Revision 1.122 / (download) - annotate - [select for diffs], Wed Jun 16 00:21:19 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.121: +3 -11 lines
Diff to previous 1.121 (colored)

if_attach and if_initialize cannot fail, don't test return value

These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around.  And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail.  (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint.  This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken.  However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:04 2021 UTC (2 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.120: +4 -4 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Sync w/ HEAD.

Revision 1.121 / (download) - annotate - [select for diffs], Fri Dec 18 01:31:49 2020 UTC (2 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.120: +4 -4 lines
Diff to previous 1.120 (colored)

Use sel{record,remove}_knote().

Revision 1.120 / (download) - annotate - [select for diffs], Fri Oct 30 22:51:08 2020 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.119: +15 -6 lines
Diff to previous 1.119 (colored)

use c99 initializers

Revision 1.119 / (download) - annotate - [select for diffs], Sun Sep 27 13:44:47 2020 UTC (2 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.118: +8 -4 lines
Diff to previous 1.118 (colored)

tap: Report link state based on if the interface has been opened or not

While a nice addition, it does render tap(4) useless as a bridge(4)
endpoint. We now have vether(4) for use as bridge endpoint.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Sep 26 19:38:45 2020 UTC (2 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.117: +3 -63 lines
Diff to previous 1.117 (colored)

tap: Remove media from this virtual interface

It serves no purpose at all.

Revision 1.106.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:15 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.106.2.2: +8 -2 lines
Diff to previous 1.106.2.2 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:57 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.106.2.1: +22 -8 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored)

Merge changes from current as of 20200406

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:06 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.115: +10 -13 lines
Diff to previous 1.115 (colored) next main 1.116 (colored)

Sync with head.

Revision 1.117 / (download) - annotate - [select for diffs], Tue Feb 4 05:46:32 2020 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored)

Use ifmedia_fini().

Revision 1.116 / (download) - annotate - [select for diffs], Wed Jan 29 04:28:27 2020 UTC (3 years ago) by thorpej
Branch: MAIN
Changes since 1.115: +9 -12 lines
Diff to previous 1.115 (colored)

Adopt <net/if_stats.h>.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Jan 6 20:31:35 2020 UTC (3 years ago) by christos
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.114: +19 -2 lines
Diff to previous 1.114 (colored)

Add missing packet filter hooks, byte accounting.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Fri Nov 1 09:34:27 2019 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.113: +10 -4 lines
Diff to previous 1.113 (colored) next main 1.114 (colored)

Pull up following revision(s) (requested by knakahara in ticket #387):

	sys/net/if_gre.c: revision 1.176
	sys/net/if_l2tp.c: revision 1.40
	sys/dev/pci/ixgbe/ix_txrx.c: revision 1.56
	sys/net/if_tap.c: revision 1.114

Fix missing kpreempt_disable() before softint_schedule() like if_vmx.c:r1.51.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Oct 16 06:53:34 2019 UTC (3 years, 3 months ago) by knakahara
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.113: +10 -4 lines
Diff to previous 1.113 (colored)

Fix missing kpreempt_disable() before softint_schedule() like if_vmx.c:r1.51.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:45 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.106: +62 -61 lines
Diff to previous 1.106 (colored)

Sync with HEAD

Revision 1.113 / (download) - annotate - [select for diffs], Wed May 29 10:07:30 2019 UTC (3 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.112: +3 -8 lines
Diff to previous 1.112 (colored)

Even if we don't use MII(4), use the common path of SIOC[GS]IFMEDIA in
sys/net/if_ethersubr.c if we can.
 - Add ec_ifmedia into struct ethercom.
 - ec_mii in struct ethercom is kept and used as it is. It might be used in
   future. Note that some Ethernet drivers which _DOESN'T_ use mii(4) use
   ec_mii for keeping the if_media. Those should be changed in future.

Revision 1.112 / (download) - annotate - [select for diffs], Tue May 21 09:18:37 2019 UTC (3 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.111: +35 -32 lines
Diff to previous 1.111 (colored)

 KNF. No functional change.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Apr 26 11:51:56 2019 UTC (3 years, 9 months ago) by pgoyette
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

Some more empty-string --> NULL conversions for module dependencies

Revision 1.110 / (download) - annotate - [select for diffs], Tue Apr 16 04:26:02 2019 UTC (3 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.109: +2 -11 lines
Diff to previous 1.109 (colored)

 The path of SOICSIFMEDA or TAPGIFNAME calls are as follows:

 doifioctl()

    pre-convert (if_cvtcmd_43_hook & ifreqo2n)

    (*ifp->if_ioctl)(ifp, cmd, data);

    post-convert (ifreqn2o)

so it's not required to check OSIOCSIFMEDIA and OTAPGIFNAME in if_tap.c.
Those two command is converted to new command in if_cvtcmd_43_hook and
always new commands are seen in tap_ioctl().

OK'd by pgoyette.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Mar 25 09:59:59 2019 UTC (3 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

Put the #ifdef where it belongs (after defining the out2 label which is
referenced only inside #ifdef block)

Revision 1.108 / (download) - annotate - [select for diffs], Mon Mar 25 09:32:25 2019 UTC (3 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.107: +25 -13 lines
Diff to previous 1.107 (colored)

Resequence the activities in tapdetach() so that no new units can be
created, either by opening /dev/tap or ifconfig tapx create, before
checking to see if we have any active units.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:44 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.105.2.1: +4 -4 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.107 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (4 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:10 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.105: +5 -5 lines
Diff to previous 1.105 (colored)

Sync with HEAD

Revision 1.106 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:02 2018 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728
Branch point for: phil-wifi
Changes since 1.105: +5 -5 lines
Diff to previous 1.105 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Dec 19 03:32:35 2017 UTC (5 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.104: +6 -3 lines
Diff to previous 1.104 (colored)

Don't set IFEF_MPSAFE unless NET_MPSAFE at this point

Because recent investigations show that interfaces with IFEF_MPSAFE need to
follow additional restrictions to work with the flag safely. We should enable it
on an interface by default only if the interface surely satisfies the
restrictions, which are described in if.h.

Note that enabling IFEF_MPSAFE solely gains a few benefit on performance because
the network stack is still serialized by the big kernel locks by default.

Revision 1.99.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 10:10:25 2017 UTC (5 years, 1 month ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.99.6.1: +16 -6 lines
Diff to previous 1.99.6.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #427):
	sys/arch/amiga/dev/if_bah_zbus.c: 1.17
	sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
	sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
	sys/arch/usermode/dev/if_veth.c: 1.9
	sys/dev/ic/an.c: 1.66
	sys/dev/ic/athn.c: 1.17
	sys/dev/ic/atw.c: 1.162
	sys/dev/ic/bwi.c: 1.33
	sys/dev/ic/dwc_gmac.c: 1.41-1.42
	sys/dev/ic/malo.c: 1.10
	sys/dev/ic/rt2560.c: 1.31
	sys/dev/ic/rt2661.c: 1.36
	sys/dev/ic/rt2860.c: 1.29
	sys/dev/ic/rtw.c: 1.127
	sys/dev/ic/rtwvar.h: 1.46
	sys/dev/ic/smc90cx6.c: 1.71
	sys/dev/ic/smc90cx6var.h: 1.12
	sys/dev/ic/wi.c: 1.244
	sys/dev/pci/if_ipw.c: 1.66
	sys/dev/pci/if_iwi.c: 1.104
	sys/dev/pci/if_iwm.c: 1.76
	sys/dev/pci/if_iwn.c: 1.86
	sys/dev/pci/if_rtwn.c: 1.13
	sys/dev/pci/if_wm.c: 1.541
	sys/dev/pci/if_wpi.c: 1.79
	sys/dev/pci/ixgbe/ixgbe.c: 1.106
	sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
	sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
	sys/dev/scsipi/if_se.c: 1.95
	sys/dev/usb/if_upl.c: 1.60
	sys/net/if.c: 1.396
	sys/net/if.h: 1.241
	sys/net/if_arc.h: 1.23
	sys/net/if_arcsubr.c: 1.78
	sys/net/if_bridge.c: 1.136-1.137
	sys/net/if_etherip.c: 1.39
	sys/net/if_faith.c: 1.56
	sys/net/if_gif.c: 1.131
	sys/net/if_loop.c: 1.96
	sys/net/if_mpls.c: 1.30
	sys/net/if_pppoe.c: 1.129
	sys/net/if_srt.c: 1.27
	sys/net/if_stf.c: 1.102
	sys/net/if_tap.c: 1.100
	sys/net/if_vlan.c: 1.105
	sys/netinet/ip_carp.c: 1.91
	sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
	sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
 if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
 Return if bah_attach_subr() failed.
 If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
 If error occured in bcmeth_ccb_attach(), free resources and return.
 If error occured in pq3etsec_attach(), free resources and return.
 If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
 If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
   failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
 If if_initialize() failed in the attach function, free resources and return.
 If if_attach() failed in the attach function, free resources and return.
 - If if_initialize() failed in the attach function, free resources and return.
 - KNF
 - If if_attach() failed in the attach function, free resources and return.
 - KNF
 Fix compile error.
 Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice

Revision 1.67.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:02 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.67.2.3: +182 -165 lines
Diff to previous 1.67.2.3 (colored) next main 1.68 (colored)

update from HEAD

Revision 1.104 / (download) - annotate - [select for diffs], Thu Nov 30 20:25:55 2017 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.103: +3 -2 lines
Diff to previous 1.103 (colored)

add fo_name so we can identify the fileops in a simple way.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Nov 29 19:27:52 2017 UTC (5 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored)

set IFEF_MPSAFE

Revision 1.102 / (download) - annotate - [select for diffs], Wed Nov 29 19:21:44 2017 UTC (5 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.101: +38 -62 lines
Diff to previous 1.101 (colored)

Make tap(4) MP-safe.

Revision 1.99.6.1 / (download) - annotate - [select for diffs], Wed Nov 8 22:20:59 2017 UTC (5 years, 2 months ago) by snj
Branch: netbsd-8
Changes since 1.99: +3 -2 lines
Diff to previous 1.99 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #349):
	sys/net/if_l2tp.c: revision 1.14
	sys/net/if_tap.c: revision 1.101
	sys/net/if_tun.c: revision 1.141
	sys/net/if_vlan.c: revision 1.106
Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use
if_link_state_change

Revision 1.101 / (download) - annotate - [select for diffs], Mon Oct 30 16:01:19 2017 UTC (5 years, 3 months ago) by ozaki-r
Branch: MAIN
Changes since 1.100: +3 -2 lines
Diff to previous 1.100 (colored)

Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use if_link_state_change

Revision 1.100 / (download) - annotate - [select for diffs], Mon Oct 23 09:32:33 2017 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.99: +16 -6 lines
Diff to previous 1.99 (colored)

 - If if_initialize() failed in the attach function, free resources and return.
 - KNF

Revision 1.80.2.7 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:11 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.2.6: +62 -63 lines
Diff to previous 1.80.2.6 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

Sync with HEAD

Revision 1.99.4.3 / (download) - annotate - [select for diffs], Wed May 17 02:40:58 2017 UTC (5 years, 8 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.99.4.2: +3 -2 lines
Diff to previous 1.99.4.2 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

Actually return the retrun value that we computed.

Revision 1.99.4.2 / (download) - annotate - [select for diffs], Wed May 17 01:44:18 2017 UTC (5 years, 8 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.99.4.1: +13 -4 lines
Diff to previous 1.99.4.1 (colored) to branchpoint 1.99 (colored)

At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:38 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.99: +3 -2 lines
Diff to previous 1.99 (colored)

Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:05 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.94: +64 -65 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

Sync with HEAD

Revision 1.84.2.6 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84.2.5: +68 -58 lines
Diff to previous 1.84.2.5 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

Sync with HEAD

Revision 1.99 / (download) - annotate - [select for diffs], Sun Feb 12 09:47:31 2017 UTC (5 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2, netbsd-8
Changes since 1.98: +10 -10 lines
Diff to previous 1.98 (colored)

Whitespace

Revision 1.98 / (download) - annotate - [select for diffs], Sun Feb 12 08:51:45 2017 UTC (5 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.97: +6 -6 lines
Diff to previous 1.97 (colored)

Convert to kmem(9)

Revision 1.97 / (download) - annotate - [select for diffs], Sun Feb 12 08:47:12 2017 UTC (5 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

Typo in comment

Revision 1.96 / (download) - annotate - [select for diffs], Sun Feb 12 08:40:19 2017 UTC (5 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.95: +11 -12 lines
Diff to previous 1.95 (colored)

KNF (sort #include <sys/...>) and remove a duplicate

Revision 1.95 / (download) - annotate - [select for diffs], Tue Feb 7 11:17:50 2017 UTC (5 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.94: +43 -43 lines
Diff to previous 1.94 (colored)

KNF and trailing whitespace.  No functional change.

Revision 1.80.2.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:58 2017 UTC (5 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.2.5: +2 -4 lines
Diff to previous 1.80.2.5 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.84.2.5 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:50 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84.2.4: +2 -4 lines
Diff to previous 1.84.2.4 (colored) to branchpoint 1.84 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.94 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:06 2016 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.93: +2 -4 lines
Diff to previous 1.93 (colored)

Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net

Revision 1.84.2.4 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:21 2016 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84.2.3: +3 -4 lines
Diff to previous 1.84.2.3 (colored) to branchpoint 1.84 (colored)

Sync with HEAD

Revision 1.80.2.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:08 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.2.4: +73 -37 lines
Diff to previous 1.80.2.4 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.93 / (download) - annotate - [select for diffs], Sun Oct 2 14:17:07 2016 UTC (6 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Changes since 1.92: +3 -4 lines
Diff to previous 1.92 (colored)

MFREE -> m_free

Revision 1.92 / (download) - annotate - [select for diffs], Mon Aug 15 05:10:33 2016 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.91: +2 -18 lines
Diff to previous 1.91 (colored)

remove MODULAR/COMPAT_40 ifdef.

Revision 1.91 / (download) - annotate - [select for diffs], Sun Aug 14 11:03:21 2016 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.90: +22 -14 lines
Diff to previous 1.90 (colored)

fix rump tests.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Aug 8 16:40:39 2016 UTC (6 years, 5 months ago) by kre
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)


create++, destroy--

Revision 1.89 / (download) - annotate - [select for diffs], Mon Aug 8 09:51:39 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Typo (missing ampersand)

Revision 1.88 / (download) - annotate - [select for diffs], Mon Aug 8 09:42:33 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.87: +7 -8 lines
Diff to previous 1.87 (colored)

Final part of fixing if_tap.  The module needs to attach its cdevsw (and
detach it later).

Revision 1.87 / (download) - annotate - [select for diffs], Mon Aug 8 09:23:13 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.86: +9 -2 lines
Diff to previous 1.86 (colored)

Add the devsw_attach stuff, since the tap device can be accessed via
/dev/tap

This is a partial fix for the build.  The rump tap component will be
fixed shortly.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Aug 8 07:35:12 2016 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.85: +12 -2 lines
Diff to previous 1.85 (colored)

Partial fix - restore creation of our sysctl subtree for _MODULE
builds (it's already handled for built-in builds via registration
in a link-set).

XXX The build is still broken in rump...

Revision 1.85 / (download) - annotate - [select for diffs], Sun Aug 7 17:38:34 2016 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.84: +41 -12 lines
Diff to previous 1.84 (colored)

modularize some more drivers and merge the module glue

Revision 1.84.2.3 / (download) - annotate - [select for diffs], Tue Jul 26 05:54:40 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84.2.2: +3 -3 lines
Diff to previous 1.84.2.2 (colored) to branchpoint 1.84 (colored)

Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.84.2.2 / (download) - annotate - [select for diffs], Tue Jul 19 06:27:00 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84.2.1: +3 -9 lines
Diff to previous 1.84.2.1 (colored) to branchpoint 1.84 (colored)

Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Mon Jul 18 03:50:00 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.84: +10 -2 lines
Diff to previous 1.84 (colored)

Rump drivers are always installed via devsw_attach() so we need to
always allocate a 'struct localcount' for these drivers whenever they
are built as modules.

Revision 1.80.2.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:21 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.2.3: +3 -3 lines
Diff to previous 1.80.2.3 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:16 2016 UTC (6 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.80.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:32 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.2.2: +3 -3 lines
Diff to previous 1.80.2.2 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.83 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:12 2016 UTC (6 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:10 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80.2.1: +5 -5 lines
Diff to previous 1.80.2.1 (colored) to branchpoint 1.80 (colored)

Sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Thu Aug 20 14:40:19 2015 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.81: +4 -4 lines
Diff to previous 1.81 (colored)

include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:22 2015 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.80: +5 -5 lines
Diff to previous 1.80 (colored)

Sync with HEAD

Revision 1.81 / (download) - annotate - [select for diffs], Wed Dec 17 09:41:30 2014 UTC (8 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.80: +5 -5 lines
Diff to previous 1.80 (colored)

Replace if_attach of if_tap with if_initialize and if_register

Revision 1.80 / (download) - annotate - [select for diffs], Fri Nov 7 09:26:08 2014 UTC (8 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.79: +21 -23 lines
Diff to previous 1.79 (colored)

Complete the initialization of tap_softc before if_attach

Basically we should complete the initializaiton of softc before if_attach
because once if_attach is called if_detach can be called for the softc
before returning from if_attach. In case of tap, mutex_destroy can be
called before mutex_init that comes after if_attach.

Revision 1.79 / (download) - annotate - [select for diffs], Fri Oct 3 06:46:02 2014 UTC (8 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (colored)

Remove unneeded #include

Revision 1.78 / (download) - annotate - [select for diffs], Fri Sep 5 09:22:22 2014 UTC (8 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.77: +11 -12 lines
Diff to previous 1.77 (colored)

Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

Revision 1.67.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:34 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.67.2.2: +47 -31 lines
Diff to previous 1.67.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:15 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.74: +5 -3 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

Rebase.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:40 2014 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.66.18.1 / (download) - annotate - [select for diffs], Tue Jun 3 15:18:45 2014 UTC (8 years, 7 months ago) by msaitoh
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-6-RELEASE
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by cube in ticket #1071):
	sys/net/if_tap.c			1.76

Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet().  Fixes kern/47506 and kern/46199.

Revision 1.66.20.1 / (download) - annotate - [select for diffs], Tue Jun 3 15:17:56 2014 UTC (8 years, 7 months ago) by msaitoh
Branch: netbsd-6-1
CVS Tags: netbsd-6-1-5-RELEASE
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by cube in ticket #1071):
	sys/net/if_tap.c			1.76

Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet().  Fixes kern/47506 and kern/46199.

Revision 1.66.14.1 / (download) - annotate - [select for diffs], Tue Jun 3 15:13:30 2014 UTC (8 years, 7 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

Pull up following revision(s) (requested by cube in ticket #1071):
	sys/net/if_tap.c			1.76

Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet().  Fixes kern/47506 and kern/46199.

Revision 1.66.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:09 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.66.8.1: +51 -39 lines
Diff to previous 1.66.8.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.70.2.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:12 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.70.2.1: +24 -27 lines
Diff to previous 1.70.2.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

sync with head

Revision 1.76 / (download) - annotate - [select for diffs], Wed May 7 22:53:34 2014 UTC (8 years, 8 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet().  Fixes kern/47506 and kern/46199.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Apr 20 22:39:51 2014 UTC (8 years, 9 months ago) by aymeric
Branch: MAIN
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored)

Call mutex_destroy() on sc_kqlock in tap_detach(). Found by LOCKDEBUG.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Mar 20 06:48:54 2014 UTC (8 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.73: +11 -13 lines
Diff to previous 1.73 (colored)

Mechanically replace simplelock with kmutex_t.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:30 2014 UTC (8 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.72: +13 -8 lines
Diff to previous 1.72 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:12 2014 UTC (8 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.71: +2 -9 lines
Diff to previous 1.71 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:36 2013 UTC (9 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.70: +24 -6 lines
Diff to previous 1.70 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Tue Aug 20 12:28:12 2013 UTC (9 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.70: +24 -6 lines
Diff to previous 1.70 (colored)

- deal with softint_establish failure
- establish softint only when necessary

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:01 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.67.2.1: +7 -10 lines
Diff to previous 1.67.2.1 (colored)

resync with head

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jan 28 15:05:03 2013 UTC (10 years ago) by yamt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.69: +6 -9 lines
Diff to previous 1.69 (colored)

use cprng_fast instead of getmicrouptime to generate "random" mac address
because the latter often produces the same addresses for subsequent tap
instances.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Jan 28 15:01:13 2013 UTC (10 years ago) by yamt
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

whitespace

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:47 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.67: +6 -7 lines
Diff to previous 1.67 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:43 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.66: +7 -8 lines
Diff to previous 1.66 (colored)

sync with head

Revision 1.68 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:39 2012 UTC (10 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.67: +6 -7 lines
Diff to previous 1.67 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Jun 2 21:36:47 2012 UTC (10 years, 7 months ago) by dsl
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

Revision 1.63.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:52 2011 UTC (11 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.63.4.1: +13 -18 lines
Diff to previous 1.63.4.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

sync with head

Revision 1.47.4.8 / (download) - annotate - [select for diffs], Thu Dec 9 04:11:39 2010 UTC (12 years, 1 month ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.47.4.7: +13 -18 lines
Diff to previous 1.47.4.7 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Pull up following revision(s) (requested by christos in ticket #1492):
	sys/net/if_tap.c: revision 1.66
PR/44131: Matthew Mondor: if_tap.c tap_dev_ioctl() not propagating error,
always returns 0.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Nov 22 21:31:51 2010 UTC (12 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.65: +13 -18 lines
Diff to previous 1.65 (colored)

PR/44131: Matthew Mondor: if_tap.c tap_dev_ioctl() not propagating error,
always returns 0.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:44 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63.2.1: +1 -1 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

Sync with HEAD.

Revision 1.42.2.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:54 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.2.5: +7 -11 lines
Diff to previous 1.42.2.5 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

sync with head.

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:18:01 2010 UTC (12 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.63: +7 -11 lines
Diff to previous 1.63 (colored)

sync with head

Revision 1.65 / (download) - annotate - [select for diffs], Wed May 19 20:41:59 2010 UTC (12 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Replace ether_nonstatic_aton with a
- better named one
- not suffering from buffer oveflow
- simpler
- handling different separators
- returning error codes for errors

Some ideas from one posted on tech-net by Jonathan A. Kollasch

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:20 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63: +6 -10 lines
Diff to previous 1.63 (colored)

Sync with HEAD.

Revision 1.47.4.6.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:21 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.47.4.6: +3 -2 lines
Diff to previous 1.47.4.6 (colored) next main 1.47.4.7 (colored)

sync to netbsd-5

Revision 1.64 / (download) - annotate - [select for diffs], Mon Apr 5 07:22:24 2010 UTC (12 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.63: +6 -10 lines
Diff to previous 1.63 (colored)

Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.

Revision 1.42.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:27 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.2.4: +9 -18 lines
Diff to previous 1.42.2.4 (colored) to branchpoint 1.42 (colored)

sync with head

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jan 19 22:08:01 2010 UTC (13 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.62: +7 -17 lines
Diff to previous 1.62 (colored)

Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Dec 20 09:36:06 2009 UTC (13 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567

Revision 1.61 / (download) - annotate - [select for diffs], Wed Dec 9 21:32:59 2009 UTC (13 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Thu Dec 3 09:44:35 2009 UTC (13 years, 1 month ago) by sborrill
Branch: netbsd-4
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Pull up the following revisions(s) (requested by plunky in ticket #1368):
	sys/net/if_tap.c:	revision 1.60

Fix a potential leak on tap device close; purging the send queue did not
actually release the dequeued mbufs.

Revision 1.47.4.7 / (download) - annotate - [select for diffs], Thu Dec 3 09:40:00 2009 UTC (13 years, 1 month ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1
Changes since 1.47.4.6: +3 -2 lines
Diff to previous 1.47.4.6 (colored) to branchpoint 1.47 (colored)

Pull up the following revisions(s) (requested by plunky in ticket #1173):
	sys/net/if_tap.c:	revision 1.60

Fix a potential leak on tap device close; purging the send queue
did not actually release the dequeued mbufs.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Nov 29 10:44:23 2009 UTC (13 years, 2 months ago) by plunky
Branch: MAIN
Changes since 1.59: +3 -2 lines
Diff to previous 1.59 (colored)

fix a potential leak on tap device close, purging the send queue
did not actually release the dequeued mbufs.

pointed out by Paul Forgey on tech-net

Revision 1.42.2.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:01 2009 UTC (13 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.2.3: +3 -3 lines
Diff to previous 1.42.2.3 (colored) to branchpoint 1.42 (colored)

sync with head

Revision 1.59 / (download) - annotate - [select for diffs], Tue Sep 15 19:38:15 2009 UTC (13 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

fix undefined result of stat(), found by clang static analyzer

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:23 2009 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.2.2: +3 -3 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored)

sync with head.

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:47 2009 UTC (13 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.52.2.1: +3 -3 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Sync with HEAD.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 23 17:53:17 2009 UTC (13 years, 6 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, jymxensuspend-base
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Avoid a kernel assertion failure upstream by using FSTATE_NOTFOUND
rather than FSTATE_FOUND when setting the unit number directly.

config_attach_pseudo() will convert it to FSTATE_FOUND just after the
assertion.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:20 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.52: +80 -18 lines
Diff to previous 1.52 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:15 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42.2.1: +137 -39 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored)

sync with head.

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:16 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.47.2.2: +80 -18 lines
Diff to previous 1.47.2.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Apr 11 23:05:26 2009 UTC (13 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.56: +17 -18 lines
Diff to previous 1.56 (colored)

Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 11 15:47:33 2009 UTC (13 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.55: +41 -3 lines
Diff to previous 1.55 (colored)

Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use
fbadop_stat.

Revision 1.47.4.6 / (download) - annotate - [select for diffs], Sat Apr 4 23:36:28 2009 UTC (13 years, 9 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.47.4.5: +12 -11 lines
Diff to previous 1.47.4.5 (colored) to branchpoint 1.47 (colored)

Pull up following revision(s) (requested by ad in ticket #661):
	sys/arch/xen/xen/xenevt.c: revision 1.32
	sys/compat/svr4/svr4_net.c: revision 1.56
	sys/compat/svr4_32/svr4_32_net.c: revision 1.19
	sys/dev/dmover/dmover_io.c: revision 1.32
	sys/dev/putter/putter.c: revision 1.21
	sys/kern/kern_descrip.c: revision 1.190
	sys/kern/kern_drvctl.c: revision 1.23
	sys/kern/kern_event.c: revision 1.64
	sys/kern/sys_mqueue.c: revision 1.14
	sys/kern/sys_pipe.c: revision 1.109
	sys/kern/sys_socket.c: revision 1.59
	sys/kern/uipc_syscalls.c: revision 1.136
	sys/kern/vfs_vnops.c: revision 1.164
	sys/kern/uipc_socket.c: revision 1.188
	sys/net/bpf.c: revision 1.144
	sys/net/if_tap.c: revision 1.55
	sys/opencrypto/cryptodev.c: revision 1.47
	sys/sys/file.h: revision 1.67
	sys/sys/param.h: patch
	sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.55 / (download) - annotate - [select for diffs], Sat Apr 4 10:12:51 2009 UTC (13 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.54: +12 -11 lines
Diff to previous 1.54 (colored)

Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.

Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.

thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.47.4.5 / (download) - annotate - [select for diffs], Wed Mar 18 05:23:44 2009 UTC (13 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3
Changes since 1.47.4.4: +30 -6 lines
Diff to previous 1.47.4.4 (colored) to branchpoint 1.47 (colored)

Pull up following revision(s) (requested by plunky in ticket #575):
	sys/net/if_tap.c: revision 1.54
Deprecate the SIOCSIFPHYADDR ioctl and the sysctl node in favour
of the generic SIOCALIFADDR.
As suggested by cube.

Revision 1.47.4.4 / (download) - annotate - [select for diffs], Wed Mar 18 05:19:59 2009 UTC (13 years, 10 months ago) by snj
Branch: netbsd-5
Changes since 1.47.4.3: +5 -5 lines
Diff to previous 1.47.4.3 (colored) to branchpoint 1.47 (colored)

Pull up following revision(s) (requested by plunky in ticket #572):
	sys/net/if_tap.c: revision 1.53
repair the SIOCSIFPHYADDR ioctl handler to be compatible with previous
versions which used a "struct sockaddr"

Revision 1.54 / (download) - annotate - [select for diffs], Fri Mar 13 18:40:10 2009 UTC (13 years, 10 months ago) by plunky
Branch: MAIN
Changes since 1.53: +30 -6 lines
Diff to previous 1.53 (colored)

Deprecate the SIOCSIFPHYADDR ioctl and the sysctl node in favour
of the generic SIOCALIFADDR.

As suggested by cube.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Mar 10 22:14:57 2009 UTC (13 years, 10 months ago) by plunky
Branch: MAIN
Changes since 1.52: +5 -5 lines
Diff to previous 1.52 (colored)

repair the SIOCSIFPHYADDR ioctl handler to be compatible with previous
versions which used a "struct sockaddr"

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:33:38 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.47.2.1: +4 -3 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored)

Sync with HEAD.

Revision 1.47.4.3 / (download) - annotate - [select for diffs], Fri Feb 6 00:59:47 2009 UTC (13 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2
Changes since 1.47.4.2: +4 -3 lines
Diff to previous 1.47.4.2 (colored) to branchpoint 1.47 (colored)

Pull up following revision(s) (requested by pooka in ticket #405):
	sys/net/if_tap.c: revision 1.52
Drop splnet() *after* tsleep instead of before.  Fixes a race condition
between sleep and wakeup.  (tested on NetBSD 4.0)

Revision 1.52 / (download) - annotate - [select for diffs], Sun Feb 1 21:25:06 2009 UTC (13 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.51: +4 -3 lines
Diff to previous 1.51 (colored)

Drop splnet() *after* tsleep instead of before.  Fixes a race condition
between sleep and wakeup.  (tested on NetBSD 4.0)

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:12 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.47: +11 -6 lines
Diff to previous 1.47 (colored)

Sync with HEAD.

Revision 1.38.6.7 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:31 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.38.6.6: +9 -4 lines
Diff to previous 1.38.6.6 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:26 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.46.2.1: +11 -6 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.47.4.2 / (download) - annotate - [select for diffs], Wed Nov 19 03:40:27 2008 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC1
Changes since 1.47.4.1: +4 -2 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored)

Pull up following revision(s) (requested by hans in ticket #89):
	sys/net/if_tap.c: revision 1.49
	sys/net/if_etherip.c: revision 1.24
call pmf_device_deregister in detach functions. requested by jmcneill.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Wed Nov 19 03:39:13 2008 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
Changes since 1.47: +5 -2 lines
Diff to previous 1.47 (colored)

Pull up following revision(s) (requested by hans in ticket #89):
	sys/net/if_tap.c: revision 1.48
	sys/net/if_etherip.c: revision 1.23
Add NULL pmf handlers. OK by cube.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:28 2008 UTC (14 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:13 2008 UTC (14 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

*** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Nov 3 00:52:07 2008 UTC (14 years, 2 months ago) by hans
Branch: MAIN
Changes since 1.48: +4 -2 lines
Diff to previous 1.48 (colored)

call pmf_device_deregister in detach functions. requested by jmcneill.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Nov 2 14:46:55 2008 UTC (14 years, 2 months ago) by hans
Branch: MAIN
Changes since 1.47: +5 -2 lines
Diff to previous 1.47 (colored)

Add NULL pmf handlers. OK by cube.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:41 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.46: +5 -2 lines
Diff to previous 1.46 (colored)

Sync with HEAD.

Revision 1.38.6.6 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:56 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.38.6.5: +3 -0 lines
Diff to previous 1.38.6.5 (colored) to branchpoint 1.38 (colored)

Sync with HEAD.

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:00 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.43.2.1: +5 -2 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Aug 26 11:06:59 2008 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.46: +5 -2 lines
Diff to previous 1.46 (colored)

tap_attach/tap_detach: selinit/seldestroy the selinfo structure.
Should fix PR/39237.

Revision 1.38.6.5 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:18 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.38.6.4: +8 -8 lines
Diff to previous 1.38.6.4 (colored) to branchpoint 1.38 (colored)

Sync with HEAD.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:58 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.43: +46 -19 lines
Diff to previous 1.43 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:50 2008 UTC (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.45: +10 -10 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Sync with head.

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:13 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.41.2.2: +10 -10 lines
Diff to previous 1.41.2.2 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jun 10 22:53:08 2008 UTC (14 years, 7 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.45: +10 -10 lines
Diff to previous 1.45 (colored)

device_private(device_lookup()) -> device_lookup_private()
ok cube@

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:47 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.41.2.1: +38 -11 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored)

sync with head

Revision 1.38.6.4 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:22 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.38.6.3: +69 -18 lines
Diff to previous 1.38.6.3 (colored) to branchpoint 1.38 (colored)

Sync with HEAD.

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 28 06:28:12 2008 UTC (14 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.44: +6 -4 lines
Diff to previous 1.44 (colored)

In tap_clone_destroy(), don't treat a pointer to the tap(4) softc
like it is a device_t.

In tap_clone_creator(), set cf_fstate to FSTATE_FOUND instead of
_NOTFOUND to avoid a panic in config_detach() on a DIAGNOSTIC
kernel.  XXX I'm not sure that that is the right fix.

These changes should put a stop to the crash described in kern/38759.

Revision 1.44 / (download) - annotate - [select for diffs], Wed May 21 13:56:15 2008 UTC (14 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.43: +34 -9 lines
Diff to previous 1.43 (colored)

Acquire kernel_lock in tap's fileops.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:27 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.41: +33 -9 lines
Diff to previous 1.41 (colored)

sync with head.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:41 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.42: +2 -5 lines
Diff to previous 1.42 (colored)

sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:03 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.42: +2 -5 lines
Diff to previous 1.42 (colored)

Convert to new 2 clause license

Revision 1.42 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.41: +33 -6 lines
Diff to previous 1.41 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.38.6.3 / (download) - annotate - [select for diffs], Sun Apr 6 09:58:52 2008 UTC (14 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.38.6.2: +3 -3 lines
Diff to previous 1.38.6.2 (colored) to branchpoint 1.38 (colored)

- after some discussion with agc@ i agreed it would be a good idea to move
  device_unregister_* to device_deregister_* to be more like the pmf(9)
  functions, especially since a lot of the time the function calls are next
  to each other.

- add device_register_name() support for dk(4).

Revision 1.38.6.2 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:23 2008 UTC (14 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.38.6.1: +9 -3 lines
Diff to previous 1.38.6.1 (colored) to branchpoint 1.38 (colored)

- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.38.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:07 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.38: +63 -65 lines
Diff to previous 1.38 (colored)

Sync with HEAD.

Revision 1.10.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:09 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.8: +23 -25 lines
Diff to previous 1.10.2.8 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:23 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.38: +42 -42 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

sync with head.

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:05 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.31.2.2: +44 -44 lines
Diff to previous 1.31.2.2 (colored) next main 1.32 (colored)

sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (14 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.40: +23 -25 lines
Diff to previous 1.40 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.10.2.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:41 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.7: +42 -42 lines
Diff to previous 1.10.2.7 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Mar 4 13:25:05 2008 UTC (14 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.39: +40 -40 lines
Diff to previous 1.39 (colored)

Split device_t/softc, and other related cosmetic changes.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:52 2008 UTC (14 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>

Revision 1.10.2.7 / (download) - annotate - [select for diffs], Wed Feb 27 08:37:01 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.6: +4 -4 lines
Diff to previous 1.10.2.6 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Feb 20 17:05:53 2008 UTC (14 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)

Revision 1.33.6.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:01 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.33.6.2: +3 -2 lines
Diff to previous 1.33.6.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Sync with HEAD.

Revision 1.10.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:06 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.5: +8 -9 lines
Diff to previous 1.10.2.5 (colored) to branchpoint 1.10 (colored)

sync with head

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:14 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.31.2.1: +27 -35 lines
Diff to previous 1.31.2.1 (colored)

sync with HEAD

Revision 1.35.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:49 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.35.4.1: +1 -0 lines
Diff to previous 1.35.4.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:15 2008 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs-base, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:10 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.35: +7 -9 lines
Diff to previous 1.35 (colored)

Sync with HEAD

Revision 1.33.6.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:28 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.33.6.1: +7 -9 lines
Diff to previous 1.33.6.1 (colored) to branchpoint 1.33 (colored)

Sync with HEAD.

Revision 1.33.8.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:51 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.33.8.1: +7 -9 lines
Diff to previous 1.33.8.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Dec 20 21:08:22 2007 UTC (15 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.35: +7 -9 lines
Diff to previous 1.35 (colored)

Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.

Revision 1.30.6.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:34 2007 UTC (15 years, 1 month ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.30.6.2: +21 -28 lines
Diff to previous 1.30.6.2 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:06 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.33: +21 -28 lines
Diff to previous 1.33 (colored)

Sync with HEAD.

Revision 1.33.8.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:53 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.33: +21 -28 lines
Diff to previous 1.33 (colored)

Sync with head.

Revision 1.10.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:17 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.4: +21 -28 lines
Diff to previous 1.10.2.4 (colored) to branchpoint 1.10 (colored)

sync with head

Revision 1.35 / (download) - annotate - [select for diffs], Wed Dec 5 17:20:00 2007 UTC (15 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Do not "return 1" from kqfilter for errors.  That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 5 08:05:57 2007 UTC (15 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.33: +20 -27 lines
Diff to previous 1.33 (colored)

lockmgr -> mutex

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:35 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.31: +9 -12 lines
Diff to previous 1.31 (colored)

sync with HEAD

Revision 1.10.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:03 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.3: +3 -10 lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:42 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.27.2.2: +10 -13 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Sync with head.

Revision 1.30.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:16 2007 UTC (15 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.30.6.1: +3 -10 lines
Diff to previous 1.30.6.1 (colored) to branchpoint 1.30 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Sep 10 10:35:54 2007 UTC (15 years, 4 months ago) by cube
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking2-base1, vmlocking-nbase, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs
Changes since 1.32: +3 -10 lines
Diff to previous 1.32 (colored)

Remove 3rd clause and my name from all the licences which were only in my
name.

Revision 1.30.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:58 2007 UTC (15 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.30: +9 -5 lines
Diff to previous 1.30 (colored)

Sync with HEAD.

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:13 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.2: +37 -27 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:11 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.30: +9 -5 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Aug 30 02:17:35 2007 UTC (15 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Changes since 1.31: +8 -4 lines
Diff to previous 1.31 (colored)

Use malloc(9) for sockaddrs instead of pool(9), and remove dom_sa_pool
and dom_sa_len members from struct domain.  Pools of fixed-size
objects are too rigid for sockaddr_dls, whose size can vary over
a wide range.

Return sockaddr_dl to its "historical" size.  Now that I'm using
malloc(9) instead of pool(9) to allocate sockaddr_dl, I can create
a sockaddr_dl of any size in the kernel, so expanding sockaddr_dl
is useless.

Avoid using sizeof(struct sockaddr_dl) in the kernel.

Introduce sockaddr_dl_alloc() for allocating & initializing an
arbitrary sockaddr_dl on the heap.

Add an argument, the sockaddr length, to sockaddr_alloc(),
sockaddr_copy(), and sockaddr_dl_setaddr().

Constify: LLADDR() -> CLLADDR().

Where the kernel overwrites LLADDR(), use sockaddr_dl_setaddr(),
instead.  Used properly, sockaddr_dl_setaddr() will not overrun
the end of the sockaddr.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Aug 26 22:59:08 2007 UTC (15 years, 5 months ago) by dyoung
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Constify: LLADDR -> CLLADDR.  I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).

Use sockaddr_dl_setaddr() in a few places.

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:11:00 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.27: +11 -3 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with head.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:12 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.27.2.1: +10 -2 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored)

Sync with head.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:36 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Wed May 30 21:02:03 2007 UTC (15 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.29: +2 -8 lines
Diff to previous 1.29 (colored)

Move the nasty ifdefs in one place. Requested by ad and dyoung.

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 29 21:32:30 2007 UTC (15 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.28: +16 -2 lines
Diff to previous 1.28 (colored)

Add a sockaddr_storage member to "struct ifreq" maintaining backwards
compatibility with the older ioctls. This avoids stack smashing and
abuse of "struct sockaddr" when ioctls placed "struct sockaddr_foo's" that
were longer than "struct sockaddr".
XXX: Some of the emulations might be broken; I tried to add code for
them but I did not test them.

Revision 1.28 / (download) - annotate - [select for diffs], Thu May 17 18:01:57 2007 UTC (15 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

return POLLERR instead of ENXIO since we are expecting an revents mask not
an errno.

Revision 1.24.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:14 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.24.4.1: +20 -19 lines
Diff to previous 1.24.4.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 9 18:42:22 2007 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.26: +11 -10 lines
Diff to previous 1.26 (colored)

don't use DVUNIT_ANY as unit number to attach pseudo devices,
use FSTATE_STAR and cf_unit=0 like normal devices.
Thanks to Arnaud Degroote for the bug report and testing.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:17 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.25: +11 -11 lines
Diff to previous 1.25 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:45 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.24: +3 -6 lines
Diff to previous 1.24 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Feb 26 23:52:18 2007 UTC (15 years, 11 months ago) by cube
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.24: +3 -6 lines
Diff to previous 1.24 (colored)

Remove unnecessary output and reduce verbosity in dmesg(8) output.  That
makes the output consistent with etherip(4).

Suggested by Nino Dehne on current-users@.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:12 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.21.2.1: +3 -44 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Sync with head.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:20 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.2.1: +17 -48 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:00 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.21.4.1: +25 -66 lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 24 01:04:30 2006 UTC (16 years, 2 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp, netbsd-4
Changes since 1.23: +3 -44 lines
Diff to previous 1.23 (colored)

The change I committed to etherip was wrong. ether_snprintf doesn't make
sense when chaning the MAC address of the virtual interface as pointed
out by Hans himself.
So, introduce ether_nonstatic_aton() and make etherip(4) and tap(4) use it.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:29 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.21: +8 -5 lines
Diff to previous 1.21 (colored)

Sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:40 2006 UTC (16 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.22: +24 -24 lines
Diff to previous 1.22 (colored)

__unused removal on arguments; approved by core.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:25 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.21: +24 -21 lines
Diff to previous 1.21 (colored)

sync with head

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:28 2006 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.21: +24 -21 lines
Diff to previous 1.21 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:06 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.11: +33 -76 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

sync with head

Revision 1.13.2.5 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:35 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13.2.4: +9 -2 lines
Diff to previous 1.13.2.4 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Sep 1 16:28:53 2006 UTC (16 years, 5 months ago) by cube
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.20: +8 -2 lines
Diff to previous 1.20 (colored)

Add a note about the use of CTL_CREATE in sysctl_createv, otherwise the
code can be confusing.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Aug 30 16:58:38 2006 UTC (16 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

fix initializers.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:16 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13.2.3: +3 -3 lines
Diff to previous 1.13.2.3 (colored) to branchpoint 1.13 (colored)

sync with head

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:12 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Use the LWP cached credentials where sane.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:53:39 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13.2.2: +8 -6 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored)

sync with head.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:27 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10: +56 -106 lines
Diff to previous 1.10 (colored)

sync with head.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:09:12 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.17: +8 -6 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:43 2006 UTC (16 years, 7 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.17: +8 -6 lines
Diff to previous 1.17 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:38 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.12.2.3: +7 -6 lines
Diff to previous 1.12.2.3 (colored) next main 1.13 (colored)

Sync with head.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:44 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.14.2.1: +5 -4 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:56 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13.2.1: +7 -6 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

sync with head.

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 14 21:19:33 2006 UTC (16 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.16: +7 -6 lines
Diff to previous 1.16 (colored)

integrate kauth.

Revision 1.13.4.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:59 2006 UTC (16 years, 8 months ago) by christos
Branch: elad-kernelauth
Changes since 1.13.4.2: +3 -2 lines
Diff to previous 1.13.4.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Sat Apr 22 13:35:08 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.12.2.2: +3 -6 lines
Diff to previous 1.12.2.2 (colored)

Fix sync-with-trunc botch.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:06 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.12.2.1: +14 -64 lines
Diff to previous 1.12.2.1 (colored)

Sync with head.

Revision 1.13.4.2 / (download) - annotate - [select for diffs], Wed Apr 19 04:46:10 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.13.4.1: +11 -64 lines
Diff to previous 1.13.4.1 (colored) to branchpoint 1.13 (colored)

sync with head.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:43 2006 UTC (16 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.13: +11 -64 lines
Diff to previous 1.13 (colored)

sync with head.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:29 2006 UTC (16 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.14: +7 -6 lines
Diff to previous 1.14 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 29 04:16:51 2006 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Use device_cfdata().

Revision 1.15 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:39 2006 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +6 -5 lines
Diff to previous 1.14 (colored)

Use device_unit().

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 16 15:57:59 2006 UTC (16 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: peter-altq-base
Branch point for: peter-altq
Changes since 1.13: +6 -60 lines
Diff to previous 1.13 (colored)

Add a new function called ether_snprintf() which takes an external buffer
and a length. The buffer should be 3 * addrlen.
Remove local tap_ether_sprintf(), and use ether_snprintf() instead.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:11:55 2006 UTC (16 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored)

Adapt to kernel authorization KPI.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:47 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.11.2.1: +3 -3 lines
Diff to previous 1.11.2.1 (colored) next main 1.12 (colored)

sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Feb 24 12:54:48 2006 UTC (16 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

comment police: p_dupfd is now known as l_dupfd and lives in struct lwp

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:18:52 2006 UTC (16 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.12: +11 -9 lines
Diff to previous 1.12 (colored)

Adapt for timecounters: mostly use get*time(), use bintime's for timeout
calculations and use "time_second" instead of "time.tv_sec".

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:37 2006 UTC (17 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Feb 1 05:51:58 2006 UTC (17 years ago) by cube
Branch: MAIN
Branch point for: simonb-timecounters
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Properly dispose of cfdata memory when unloading the tap(4) LKM.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Sat Jan 21 05:40:24 2006 UTC (17 years ago) by snj
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.6.2.1: +1 -1 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Pull up following revision(s) (requested by cube in ticket #1113):
	sys/net/if_tap.c: revision 1.7
Set bit 0x2 of the first byte of the generated MAC address, to indicate it
is a locally administered address.  Pointed out by Ignatios Souvatzis.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, rpaulo-netinet-merge-pcb
Changes since 1.10: +33 -33 lines
Diff to previous 1.10 (colored)

merge ktrace-lwp.

Revision 1.1.4.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:10:32 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.7: +9 -7 lines
Diff to previous 1.1.4.7 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD. Here we go again...

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 20 02:49:19 2005 UTC (17 years, 7 months ago) by atatat
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone.  Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Fri Jun 10 15:52:56 2005 UTC (17 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored)

Pull up revision 1.9 (requested by bouyer in ticket #438):
call (ifp->if_input) at splnet(). ifp->if_input points to ether_input()
which doesn't raise the IPL itself in all cases.
Should also fix PR 29546 (the pkgsrc kernel module needs to be updated).

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 10 10:28:17 2005 UTC (17 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.8: +5 -2 lines
Diff to previous 1.8 (colored)

call (ifp->if_input) at splnet(). ifp->if_input points to ether_input()
which doesn't raise the IPL itself in all cases.
Should also fix PR 29546 (the pkgsrc kernel module needs to be updated).

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 17 04:14:58 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.7: +4 -5 lines
Diff to previous 1.7 (colored)

Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:31 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.1: +17 -13 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

sync with -current

Revision 1.1.4.7 / (download) - annotate - [select for diffs], Fri Apr 1 14:31:35 2005 UTC (17 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.6: +3 -3 lines
Diff to previous 1.1.4.6 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Sat Mar 26 18:19:20 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.4.2.2: +3 -3 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 24 22:20:35 2005 UTC (17 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: yamt-km-base4, kent-audio2-base
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Set bit 0x2 of the first byte of the generated MAC address, to indicate it
is a locally administered address.  Pointed out by Ignatios Souvatzis.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:31 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.4.2.1: +1376 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.1.4.6 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:59 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.5: +4 -4 lines
Diff to previous 1.1.4.5 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 26 22:45:09 2005 UTC (17 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

nuke trailing whitespace

Revision 1.1.4.5 / (download) - annotate - [select for diffs], Tue Feb 15 21:33:29 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.4: +4 -3 lines
Diff to previous 1.1.4.4 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 12 23:14:03 2005 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

pass the flag to fdclone.

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:44 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.3: +5 -5 lines
Diff to previous 1.1.4.3 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.4.2.1, Tue Jan 25 09:57:15 2005 UTC (18 years ago) by yamt
Branch: yamt-km
Changes since 1.4: +0 -1375 lines
FILE REMOVED

file if_tap.c was added on branch yamt-km on 2005-03-19 08:36:31 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 25 09:57:15 2005 UTC (18 years ago) by ragge
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

Do not cast simple_lock() to (void).  It may be a do { } while() macro,
and then compilation fails.  Found by Hé×ard Eidnes.

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Mon Jan 24 08:35:53 2005 UTC (18 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.2: +40 -37 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jan 22 07:33:56 2005 UTC (18 years ago) by cube
Branch: MAIN
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

s/PF_LINK/AF_LINK/ because that way it makes sense.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 19 10:18:40 2005 UTC (18 years ago) by cube
Branch: MAIN
Changes since 1.1: +5 -2 lines
Diff to previous 1.1 (colored)

Make this LKM-friendly by using _KERNEL_OPT and having a prototype for the
sysctl setup function.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:38 2005 UTC (18 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.1.4.1: +1372 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Revision 1.1.4.1, Sat Jan 8 22:27:54 2005 UTC (18 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.1: +0 -1372 lines
FILE REMOVED

file if_tap.c was added on branch ktrace-lwp on 2005-01-17 19:32:38 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 8 22:27:54 2005 UTC (18 years ago) by cube
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Branch point for: ktrace-lwp, kent-audio2

Addition of tap(4).

NAME
     tap - virtual Ethernet device

SYNOPSIS
     pseudo-device tap

DESCRIPTION
     The tap driver allows the creation and use of virtual Ethernet devices.
     Those interfaces appear just as any real Ethernet NIC to the kernel, but
     can also be accessed by userland through a character device node in order
     to read frames being sent by the system or to inject frames.

     In that respect it is very similar to what tun(4) provides, but the added
     Ethernet layer allows easy integration with machine emulators or virtual
     Ethernet networks through the use of bridge(4) with tunneling.

``Qui tacet consentire videtur.''

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>