CVS log for src/sys/netinet6/ip6_flow.c
Up to [cvs.NetBSD.org] / src / sys / netinet6
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:28:00 2026 UTC (11 days, 12 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +4 -4
lines
Sync with HEAD
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Oct 14 20:19:32 2026 UTC (4 weeks, 4 days ago) by joe
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4
lines
avoid shifting 32 bits in in a 32 bits integer in IPv6 flow hashing
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Jun 29 13:00:44 2024 UTC (2 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11
Branch point for: perseant-exfatfs
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +9 -9
lines
netinet6: Use _NET_STAT* API instead of direct array access.
XXX Exception: ip6flow_addstats_rt _assigns_ one of the `statistics'
to the current count of ip6 flows in use, and we don't have anything
in the _NET_STAT* API for that. So for now I abuse the abstraction,
until we sort out this one exceptional case properly.
PR kern/58380
Revision 1.40.16.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:02 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +3 -3
lines
Sync with HEAD.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Feb 19 14:52:00 2021 UTC (5 years, 8 months ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
thorpej-altq-separation-base,
thorpej-altq-separation,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3
lines
- Make ALIGNED_POINTER use __alignof(t) instead of sizeof(t). This is more
correct because it works with non-primitive types and provides the ABI
alignment for the type the compiler will use.
- Remove all the *_HDR_ALIGNMENT macros and asserts
- Replace POINTER_ALIGNED_P with ACCESSIBLE_POINTER which is identical to
ALIGNED_POINTER, but returns that the pointer is always aligned if the
CPU supports unaligned accesses.
[ as proposed in tech-kern ]
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Feb 14 20:58:35 2021 UTC (5 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3
lines
- centralize header align and pullup into a single inline function
- use a single macro to align pointers and expose the alignment, instead
of hard-coding 3 in 1/2 the macros.
- fix an issue in the ipv6 lt2p where it was aligning for ipv4 and pulling
for ipv6.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Feb 6 03:37:00 2018 UTC (8 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
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,
pgoyette-compat,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
isaki-audio2-base,
isaki-audio2,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: thorpej-futex
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
Shorten the name of a workqueue instance to fit to the limit (15)
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Jan 29 08:27:10 2018 UTC (8 years, 9 months ago) by maxv
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +26 -26
lines
Style, and use __cacheline_aligned.
By the way, it would be nice to revisit the use of 'ip6flow_lock' in
ip6flow_fastforward(): it is taken right away because of 'ip6flow_inuse',
but then we perform several checks that do not require it.
Revision 1.34.8.2: download - view: text, markup, annotated - select for diffs
Tue Jan 9 19:24:44 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.34.8.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.8.1: +4 -8
lines
Pull up following revision(s) (requested by maxv in ticket #481):
sys/netinet6/ip6_flow.c: revision 1.36
Fix use-after-free: if m_pullup fails the (freed) mbuf is pushed on the
ip6_pktq queue and re-processed later. Return 1 to say "processed and
freed".
Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jan 8 23:33:40 2018 UTC (8 years, 10 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -9
lines
Committed debugging logs by mistake, sorry. Revert cryoto.c:r.1.103 and ip6_flow.c:r.1.37.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Jan 8 23:23:25 2018 UTC (8 years, 10 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +9 -3
lines
Fix PR kern/52910. Reported and implemented a patch by Sevan Janiyan, thanks.
Revision 1.34.8.1: download - view: text, markup, annotated - select for diffs
Tue Jan 2 10:20:34 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +10 -32
lines
Pull up following revision(s) (requested by ozaki-r in ticket #456):
sys/arch/arm/sunxi/sunxi_emac.c: 1.9
sys/dev/ic/dwc_gmac.c: 1.43-1.44
sys/dev/pci/if_iwm.c: 1.75
sys/dev/pci/if_wm.c: 1.543
sys/dev/pci/ixgbe/ixgbe.c: 1.112
sys/dev/pci/ixgbe/ixv.c: 1.74
sys/kern/sys_socket.c: 1.75
sys/net/agr/if_agr.c: 1.43
sys/net/bpf.c: 1.219
sys/net/if.c: 1.397, 1.399, 1.401-1.403, 1.406-1.410, 1.412-1.416
sys/net/if.h: 1.242-1.247, 1.250, 1.252-1.257
sys/net/if_bridge.c: 1.140 via patch, 1.142-1.146
sys/net/if_etherip.c: 1.40
sys/net/if_ethersubr.c: 1.243, 1.246
sys/net/if_faith.c: 1.57
sys/net/if_gif.c: 1.132
sys/net/if_l2tp.c: 1.15, 1.17
sys/net/if_loop.c: 1.98-1.101
sys/net/if_media.c: 1.35
sys/net/if_pppoe.c: 1.131-1.132
sys/net/if_spppsubr.c: 1.176-1.177
sys/net/if_tun.c: 1.142
sys/net/if_vlan.c: 1.107, 1.109, 1.114-1.121
sys/net/npf/npf_ifaddr.c: 1.3
sys/net/npf/npf_os.c: 1.8-1.9
sys/net/rtsock.c: 1.230
sys/netcan/if_canloop.c: 1.3-1.5
sys/netinet/if_arp.c: 1.255
sys/netinet/igmp.c: 1.65
sys/netinet/in.c: 1.210-1.211
sys/netinet/in_pcb.c: 1.180
sys/netinet/ip_carp.c: 1.92, 1.94
sys/netinet/ip_flow.c: 1.81
sys/netinet/ip_input.c: 1.362
sys/netinet/ip_mroute.c: 1.147
sys/netinet/ip_output.c: 1.283, 1.285, 1.287
sys/netinet6/frag6.c: 1.61
sys/netinet6/in6.c: 1.251, 1.255
sys/netinet6/in6_pcb.c: 1.162
sys/netinet6/ip6_flow.c: 1.35
sys/netinet6/ip6_input.c: 1.183
sys/netinet6/ip6_output.c: 1.196
sys/netinet6/mld6.c: 1.90
sys/netinet6/nd6.c: 1.239-1.240
sys/netinet6/nd6_nbr.c: 1.139
sys/netinet6/nd6_rtr.c: 1.136
sys/netipsec/ipsec_output.c: 1.65
sys/rump/net/lib/libnetinet/netinet_component.c: 1.9-1.10
kmem_intr_free kmem_intr_[z]alloced memory
the underlying pools are the same but api-wise those should match
Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.
Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).
Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.
Proposed on tech-kern@ and tech-net@
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch
It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.
No functional change
Hold KERNEL_LOCK on if_ioctl selectively based on IFEF_MPSAFE
If IFEF_MPSAFE is set, hold the lock and otherwise don't hold.
This change requires additions of KERNEL_LOCK to subsequence functions from
if_ioctl such as ifmedia_ioctl and ifioctl_common to protect non-MP-safe
components.
Proposed on tech-kern@ and tech-net@
Ensure to hold if_ioctl_lock when calling if_flags_set
Fix locking against myself on ifpromisc
vlan_unconfig_locked could be called with holding if_ioctl_lock.
Ensure to not turn on IFF_RUNNING of an interface until its initialization completes
And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)
Ensure to hold if_ioctl_lock on if_up and if_down
One exception for if_down is if_detach; in the case the lock isn't needed
because it's guaranteed that no other one can access ifp at that point.
Make if_link_queue MP-safe if IFEF_MPSAFE
if_link_queue is a queue to store events of link state changes, which is
used to pass events from (typically) an interrupt handler to
if_link_state_change softint. The queue was protected by KERNEL_LOCK so far,
but if IFEF_MPSAFE is enabled, it becomes unsafe because (perhaps) an interrupt
handler of an interface with IFEF_MPSAFE doesn't take KERNEL_LOCK. Protect it
by a spin mutex.
Additionally with this change KERNEL_LOCK of if_link_state_change softint is
omitted if NET_MPSAFE is enabled.
Note that the spin mutex is now ifp->if_snd.ifq_lock as well as the case of
if_timer (see the comment).
Use IFADDR_WRITER_FOREACH instead of IFADDR_READER_FOREACH
At that point no other one modifies the list so IFADDR_READER_FOREACH
is unnecessary. Use of IFADDR_READER_FOREACH is harmless in general though,
if we try to detect contract violations of pserialize, using it violates
the contract. So avoid using it makes life easy.
Ensure to call if_addr_init with holding if_ioctl_lock
Get rid of outdated comments
Fix build of kernels without ether
By throwing out if_enable_vlan_mtu and if_disable_vlan_mtu that
created a unnecessary dependency from if.c to if_ethersubr.c.
PR kern/52790
Rename IFNET_LOCK to IFNET_GLOBAL_LOCK
IFNET_LOCK will be used in another lock, if_ioctl_lock (might be renamed then).
Wrap if_ioctl_lock with IFNET_* macros (NFC)
Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...
Reorder some destruction routines in if_detach
- Destroy if_ioctl_lock at the end of the if_detach because it's used in various
destruction routines
- Move psref_target_destroy after pr_purgeif because we want to use psref in
pr_purgeif (otherwise destruction procedures can be tricky)
Ensure to call if_mcast_op with holding IFNET_LOCK
Note that CARP doesn't deal with IFNET_LOCK yet.
Remove IFNET_GLOBAL_LOCK where it's unnecessary because IFNET_LOCK is held
Describe which lock is used to protect each member variable of struct ifnet
Requested by skrll@
Write a guideline for converting an interface to IFEF_MPSAFE
Requested by skrll@
Note that IFNET_LOCK must not be held in softint
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.36: download - view: text, markup, annotated - select for diffs
Sun Dec 10 09:06:46 2017 UTC (8 years, 11 months ago) by maxv
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -8
lines
Fix use-after-free: if m_pullup fails the (freed) mbuf is pushed on the
ip6_pktq queue and re-processed later. Return 1 to say "processed and
freed".
Revision 1.19.6.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:04 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.19.6.3: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.6.3: +293 -95
lines
update from HEAD
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Nov 17 07:37:12 2017 UTC (9 years ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +10 -32
lines
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch
It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.
No functional change
Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Fri May 12 05:44:10 2017 UTC (9 years, 6 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +33 -3
lines
Pull up following revision(s) (requested by skrll/ozaki-r in ticket #1402):
sys/net/route.c: revision 1.170 via patch
sys/netinet/ip_flow.c: revision 1.73 via patch
sys/netinet6/ip6_flow.c: revision 1.28 via patch
sys/netinet6/nd6.c: revision 1.203 via patch
Run timers in workqueue
Timers (such as nd6_timer) typically free/destroy some data in callout
(softint). If we apply psz/psref for such data, we cannot do free/destroy
process in there because synchronization of psz/psref cannot be used in
softint. So run timer callbacks in workqueue works (normal LWP context).
Doing workqueue_enqueue a work twice (i.e., call workqueue_enqueue before
a previous task is scheduled) isn't allowed. For nd6_timer and
rt_timer_timer, this doesn't happen because callout_reset is called only
from workqueue's work. OTOH, ip{,6}flow_slowtimo's callout can be called
before its work starts and completes because the callout is periodically
called regardless of completion of the work. To avoid such a situation,
add a flag for each protocol; the flag is set true when a work is
enqueued and set false after the work finished. workqueue_enqueue is
called only if the flag is false.
Proposed on tech-net and tech-kern.
Revision 1.28.2.4: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:51 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.28.2.3: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.3: +2 -5
lines
Sync with HEAD
Revision 1.23.4.5: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:59 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.23.4.4: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.4.4: +29 -17
lines
Sync with HEAD
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jan 11 13:08:29 2017 UTC (9 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -5
lines
Get rid of unnecessary header inclusions
Revision 1.28.2.3: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:51 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.28.2.2: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.2: +40 -18
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Dec 8 05:16:34 2016 UTC (9 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +29 -14
lines
Add rtcache_unref to release points of rtentry stemming from rtcache
In the MP-safe world, a rtentry stemming from a rtcache can be freed at any
points. So we need to protect rtentries somehow say by reference couting or
passive references. Regardless of the method, we need to call some release
function of a rtentry after using it.
The change adds a new function rtcache_unref to release a rtentry. At this
point, this function does nothing because for now we don't add a reference
to a rtentry when we get one from a rtcache. We will add something useful
in a further commit.
This change is a part of changes for MP-safe routing table. It is separated
to avoid one big change that makes difficult to debug by bisecting.
Revision 1.23.4.4: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:28 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.23.4.3: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.4.3: +30 -15
lines
Sync with HEAD
Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:21 2016 UTC (10 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.28.2.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.1: +30 -15
lines
Sync with HEAD
Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Oct 18 07:30:31 2016 UTC (10 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20161104,
nick-nhusb-base-20161204
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +30 -15
lines
Don't hold global locks if NET_MPSAFE is enabled
If NET_MPSAFE is enabled, don't hold KERNEL_LOCK and softnet_lock in
part of the network stack such as IP forwarding paths. The aim of the
change is to make it easy to test the network stack without the locks
and reduce our local diffs.
By default (i.e., if NET_MPSAFE isn't enabled), the locks are held
as they used to be.
Reviewed by knakahara@
Revision 1.23.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:09 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.23.4.2: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.4.2: +190 -44
lines
Sync with HEAD
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Aug 23 09:59:20 2016 UTC (10 years, 2 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20161004,
localcount-20160914
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +58 -35
lines
improve fast-forward performance when the number of flows exceeds ip6_maxflows.
This is porting of ip_flow.c:r1.76
In ip6flow case, the before degradation is about 45%, the after degradation is
bout 55%.
Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:10 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +104 -10
lines
Sync with HEAD
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Aug 2 04:50:16 2016 UTC (10 years, 3 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-localcount-20160806
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +98 -2
lines
ip6flow refactor like ipflow.
- move ip6flow sysctls into ip6_flow.c like ip_flow.c:r1.64
- build ip6_flow.c only if GATEWAY kernel option is enabled
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:53:30 2016 UTC (10 years, 3 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -10
lines
Simplify by using atomic_swap instead of mutex
Suggested by kefren@
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jul 11 07:37:00 2016 UTC (10 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +33 -4
lines
Run timers in workqueue
Timers (such as nd6_timer) typically free/destroy some data in callout
(softint). If we apply psz/psref for such data, we cannot do free/destroy
process in there because synchronization of psz/psref cannot be used in
softint. So run timer callbacks in workqueue works (normal LWP context).
Doing workqueue_enqueue a work twice (i.e., call workqueue_enqueue before
a previous task is scheduled) isn't allowed. For nd6_timer and
rt_timer_timer, this doesn't happen because callout_reset is called only
from workqueue's work. OTOH, ip{,6}flow_slowtimo's callout can be called
before its work starts and completes because the callout is periodically
called regardless of completion of the work. To avoid such a situation,
add a flag for each protocol; the flag is set true when a work is
enqueued and set false after the work finished. workqueue_enqueue is
called only if the flag is false.
Proposed on tech-net and tech-kern.
Revision 1.23.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:22 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.23.4.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.4.1: +90 -42
lines
Sync with HEAD
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jun 20 06:46:38 2016 UTC (10 years, 4 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20160907
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -5
lines
apply if_output_lock() to L3 callers which call ifp->if_output() of L2(or L3 tunneling).
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Jun 13 08:37:15 2016 UTC (10 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -16
lines
eliminate unnecessary splnet
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jun 13 08:34:23 2016 UTC (10 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +85 -25
lines
MP-ify fastforward to support GATEWAY kernel option.
I add "ipflow_lock" mutex in ip_flow.c and "ip6flow_lock" mutex in ip6_flow.c
to protect all data in each file. Of course, this is not MP-scalable. However,
it is sufficient as tentative workaround. We should make it scalable somehow
in the future.
ok by ozaki-r@n.o.
Revision 1.23.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:23 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -5
lines
Sync with HEAD
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Mar 23 18:33:17 2015 UTC (11 years, 7 months ago) by roy
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -5
lines
Add RTF_BROADCAST to mark routes used for the broadcast address when
they are created on the fly. This makes it clear what the route is for
and allows an optimisation in ip_output() by avoiding a call to
in_broadcast() because most of the time we do talk to a host.
It also avoids a needless allocation for the storage of llinfo_arp and
thus vanishes from arp(8) - it showed as incomplete anyway so this
is a nice side effect.
Guard against this and routes marked with RTF_BLACKHOLE in
ip_fastforward().
While here, guard against routes marked with RTF_BLACKHOLE in
ip6_fastforward().
RTF_BROADCAST is IPv4 only, so don't bother checking that here.
Revision 1.19.6.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:36 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19.6.2: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.6.2: +8 -2
lines
Rebase to HEAD as of a few days ago.
Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:30 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +4 -3
lines
Rebase.
Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 09:35:40 2014 UTC (12 years, 5 months ago) by msaitoh
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +4 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1067):
sys/dist/ipf/netinet/ip_fil_netbsd.c 1.9 via patch
sys/net/if_ethersubr.c 1.197 via patch
sys/net/if_loop.c 1.77 via patch
sys/net/if_vlan.c 1.70 via patch
sys/netinet/if_arp.c 1.158
sys/netinet/ip_carp.c 1.54 via patch
sys/netinet6/ip6_flow.c 1.23 via patch
sys/netinet6/nd6.c 1.150 via patch
sys/rump/librump/rumpkern/klock.c 1.4
Make sure *(if_output)() is called with KERNEL_LOCK held to avoid mbuf leak.
See http://mail-index.netbsd.org/tech-net/2014/04/09/msg004511.html
for details. For netinet6, the problem report, fix and test were done
by njoly@ on current-users@
Revision 1.19.2.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 09:34:27 2014 UTC (12 years, 5 months ago) by msaitoh
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE
Diff to: previous 1.19.2.1: preferred, colored; next MAIN 1.19.2.2: preferred, colored
Changes since revision 1.19.2.1: +4 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1067):
sys/dist/ipf/netinet/ip_fil_netbsd.c 1.9 via patch
sys/net/if_ethersubr.c 1.197 via patch
sys/net/if_loop.c 1.77 via patch
sys/net/if_vlan.c 1.70 via patch
sys/netinet/if_arp.c 1.158
sys/netinet/ip_carp.c 1.54 via patch
sys/netinet6/ip6_flow.c 1.23 via patch
sys/netinet6/nd6.c 1.150 via patch
sys/rump/librump/rumpkern/klock.c 1.4
Make sure *(if_output)() is called with KERNEL_LOCK held to avoid mbuf leak.
See http://mail-index.netbsd.org/tech-net/2014/04/09/msg004511.html
for details. For netinet6, the problem report, fix and test were done
by njoly@ on current-users@
Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 3 15:34:00 2014 UTC (12 years, 5 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +4 -3
lines
Pull up following revision(s) (requested by bouyer in ticket #1067):
sys/dist/ipf/netinet/ip_fil_netbsd.c 1.9 via patch
sys/net/if_ethersubr.c 1.197 via patch
sys/net/if_loop.c 1.77 via patch
sys/net/if_vlan.c 1.70 via patch
sys/netinet/if_arp.c 1.158
sys/netinet/ip_carp.c 1.54 via patch
sys/netinet6/ip6_flow.c 1.23 via patch
sys/netinet6/nd6.c 1.150 via patch
sys/rump/librump/rumpkern/klock.c 1.4
Make sure *(if_output)() is called with KERNEL_LOCK held to avoid mbuf leak.
See http://mail-index.netbsd.org/tech-net/2014/04/09/msg004511.html
for details. For netinet6, the problem report, fix and test were done
by njoly@ on current-users@
Revision 1.18.12.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:10 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.18.12.2: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.12.2: +13 -3
lines
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.23: download - view: text, markup, annotated - select for diffs
Tue May 20 20:23:56 2014 UTC (12 years, 6 months ago) by bouyer
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
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
Branch point for: nick-nhusb,
netbsd-7
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -3
lines
Sync with the ipv4 code and call ifp->if_output() with KERNEL_LOCK
held.
Problem reported and fix tested by njoly@ on current-users@
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:13 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +8 -3
lines
sync with head
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Apr 1 13:11:44 2014 UTC (12 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -3
lines
Wrap ipflow_create() & ip6flow_create() in kernel lock. Prevents the
interrupt side on another core from seeing the situation while the ipflow
is being modified.
Revision 1.19.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:25 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19.6.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.6.1: +7 -2
lines
resync from head
Revision 1.17.10.1: download - view: text, markup, annotated - select for diffs
Wed Jun 19 08:01:05 2013 UTC (13 years, 5 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +7 -2
lines
Pull up following revision(s) (requested by msaitoh in ticket #1864):
sys/netinet6/ip6_flow.c: revision 1.21
Clear mbuf's csum_flags in ip6flow_fastforward(). Fixes PR#47849.
Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 19 07:29:05 2013 UTC (13 years, 5 months ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +5 -0
lines
Pull up following revision(s) (requested by msaitoh in ticket #895):
sys/netinet6/ip6_flow.c: revision 1.21
Clear mbuf's csum_flags in ip6flow_fastforward(). Fixes PR#47849.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu May 23 16:49:46 2013 UTC (13 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -2
lines
Clear mbuf's csum_flags in ip6flow_fastforward(). Fixes PR#47849.
Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:48 2012 UTC (13 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -4
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 31 16:07:46 2012 UTC (14 years ago) by riz
Branches: netbsd-6
CVS tags: 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
Branch point for: netbsd-6-1
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -4
lines
Pull up following revision(s) (requested by christos in ticket #638):
sys/net/if_ppp.c: revision 1.137
sys/netinet6/ip6_flow.c: revision 1.20
sys/net/if_fddisubr.c: revision 1.82
sys/net/if_ethersubr.c: revision 1.192
sys/netinet6/in6_var.h: revision 1.66
sys/net/if_atmsubr.c: revision 1.50
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the
change up to the caller.
Revision 1.18.12.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:49 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.18.12.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.12.1: +8 -4
lines
sync with head
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Oct 11 20:05:50 2012 UTC (14 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
khorben-n900,
agc-symver-base,
agc-symver
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -4
lines
PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the
change up to the caller.
Revision 1.18.12.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:43 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -3
lines
sync with head
Revision 1.18.16.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:42 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +2 -3
lines
merge to -current.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Jan 19 13:19:34 2012 UTC (14 years, 10 months ago) by liamjfoy
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
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,
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
Branch point for: tls-maxphys,
netbsd-6-0,
netbsd-6
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -3
lines
Remove ip6f_start from ip6f struct
Revision 1.17.14.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:29 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +11 -4
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:18 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.1: +11 -4
lines
sync with head.
Revision 1.17.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:23 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +11 -4
lines
Sync with HEAD.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Mar 23 18:43:20 2009 UTC (17 years, 7 months ago) by liamjfoy
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
rmind-uvmplock,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
matt-premerge-20091211,
matt-mips64-premerge-20101231,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jruoho-x86intr-base,
jruoho-x86intr,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +11 -4
lines
Init ip6flow pool dynamically instead of using a linkset.
Revision 1.13.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:26 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +18 -15
lines
Sync with HEAD.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:35 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +8 -9
lines
sync with head.
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:45 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -9
lines
sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:10 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
nick-hppapmap-base2,
netbsd-5-base,
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,
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,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
mjf-devfs2-base,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
hpcarm-cleanup-nbase,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
netbsd-5,
jym-xensuspend
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Apr 24 11:38:38 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -2
lines
Merge the socket locking patch:
- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Apr 15 03:57:04 2008 UTC (18 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -8
lines
Make ip6 and icmp6 stats per-cpu.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Apr 8 23:37:43 2008 UTC (18 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -8
lines
Change IPv6 stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old ip6stat structure; old netstat
binaries will continue to work properly.
Revision 1.9.10.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:13 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +15 -15
lines
Sync with HEAD.
Revision 1.9.4.3: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:22 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.4.2: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.2: +15 -15
lines
sync with head
Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:36 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +15 -15
lines
sync with HEAD
Revision 1.9.16.3: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:50 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.9.16.2: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.16.2: +10 -14
lines
Sync with HEAD
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Jan 4 23:35:00 2008 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +8 -8
lines
Constify.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jan 4 23:26:44 2008 UTC (18 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -10
lines
Replace rtcache_down() with rtcache_validate() and update rtcache_down()
uses.
Revision 1.9.16.2: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:57:30 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.9.16.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.16.1: +8 -5
lines
Sync with HEAD
Revision 1.9.12.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:46 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +10 -6
lines
Sync with head.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Dec 20 19:53:33 2007 UTC (18 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +10 -7
lines
Poison struct route->ro_rt uses in the kernel by changing the name
to _ro_rt. Use rtcache_getrt() to access a route cache's struct
rtentry *.
Introduce struct ifnet->if_dl that always points at the interface
identifier/link-layer address. Make code that treated the first
ifaddr on struct ifnet->if_addrlist as the interface address use
if_dl, instead.
Remove stale debugging code from net/route.c. Move the rtflush()
code into rtcache_clear() and delete rtflush(). Delete rtalloc(),
because nothing uses it any more.
Make ND6_HINT an inline, lowercase subroutine, nd6_hint.
I've done my best to convert IP Filter, the ISO stack, and the
AppleTalk stack to rtcache_getrt(). They compile, but I have not
tested them. I have given the changes to PF, GRE, IPv4 and IPv6
stacks a lot of exercise.
Revision 1.9.16.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 21:56:57 2007 UTC (18 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -1
lines
Sync with HEAD
Revision 1.9.14.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:45:40 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +2 -1
lines
sync with head.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Dec 11 12:30:20 2007 UTC (18 years, 11 months ago) by lukem
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -1
lines
use __KERNEL_RCSID()
Revision 1.2.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:55 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.2.2.3: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.3: +8 -9
lines
Sync with head.
Revision 1.8.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:49:08 2007 UTC (19 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +8 -9
lines
Sync with HEAD.
Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:43:32 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.1: +522 -0
lines
sync with head.
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:23:48 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +8 -9
lines
Sync with HEAD.
Revision 1.9.4.1
Mon Aug 20 19:42:34 2007 UTC (19 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.9: +0 -522
lines
file ip6_flow.c was added on branch yamt-lazymbuf on 2007-09-03 14:43:32 +0000
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Aug 20 19:42:34 2007 UTC (19 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
vmlocking-base,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-csl-alignment-base5,
matt-armv6-prevmlocking,
jmcneill-pm-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: yamt-lazymbuf,
yamt-kmem,
vmlocking2,
mjf-devfs,
matt-armv6,
bouyer-xeni386
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -9
lines
Don't call rtcache_check() from the fast-forward code, which runs
at IPL_NET, because rtcache_check() may read the forwarding table.
Elsewhere, the kernel only blocks interrupts at priority IPL_SOFTNET
and below while it modifies the forwarding table, so rtcache_check()
could be reading the table in an inconsistent state. Use
rtcache_done(), instead.
XXX netinet/ip_flow.c and netinet6/ip6_flow.c are virtually identical.
XXX They should share code.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:11:41 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +53 -30
lines
Sync with head.
Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:54 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.2.2.2: preferred, colored
Changes since revision 1.2.2.2: +14 -17
lines
Sync with head.
Revision 1.2.4.5: download - view: text, markup, annotated - select for diffs
Mon May 7 10:56:03 2007 UTC (19 years, 6 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.2.4.4: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.4: +14 -17
lines
sync with head.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed May 2 22:39:04 2007 UTC (19 years, 6 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -2
lines
Remove obsolete files netinet/in_route.[ch].
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed May 2 20:40:26 2007 UTC (19 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +14 -16
lines
Eliminate address family-specific route caches (struct route, struct
route_in6, struct route_iso), replacing all caches with a struct
route.
The principle benefit of this change is that all of the protocol
families can benefit from route cache-invalidation, which is
necessary for correct routing. Route-cache invalidation fixes an
ancient PR, kern/3508, at long last; it fixes various other PRs,
also.
Discussions with and ideas from Joerg Sonnenberger influenced this
work tremendously. Of course, all design oversights and bugs are
mine.
DETAILS
1 I added to each address family a pool of sockaddrs. I have
introduced routines for allocating, copying, and duplicating,
and freeing sockaddrs:
struct sockaddr *sockaddr_alloc(sa_family_t af, int flags);
struct sockaddr *sockaddr_copy(struct sockaddr *dst,
const struct sockaddr *src);
struct sockaddr *sockaddr_dup(const struct sockaddr *src, int flags);
void sockaddr_free(struct sockaddr *sa);
sockaddr_alloc() returns either a sockaddr from the pool belonging
to the specified family, or NULL if the pool is exhausted. The
returned sockaddr has the right size for that family; sa_family
and sa_len fields are initialized to the family and sockaddr
length---e.g., sa_family = AF_INET and sa_len = sizeof(struct
sockaddr_in). sockaddr_free() puts the given sockaddr back into
its family's pool.
sockaddr_dup() and sockaddr_copy() work analogously to strdup()
and strcpy(), respectively. sockaddr_copy() KASSERTs that the
family of the destination and source sockaddrs are alike.
The 'flags' argumet for sockaddr_alloc() and sockaddr_dup() is
passed directly to pool_get(9).
2 I added routines for initializing sockaddrs in each address
family, sockaddr_in_init(), sockaddr_in6_init(), sockaddr_iso_init(),
etc. They are fairly self-explanatory.
3 structs route_in6 and route_iso are no more. All protocol families
use struct route. I have changed the route cache, 'struct route',
so that it does not contain storage space for a sockaddr. Instead,
struct route points to a sockaddr coming from the pool the sockaddr
belongs to. I added a new method to struct route, rtcache_setdst(),
for setting the cache destination:
int rtcache_setdst(struct route *, const struct sockaddr *);
rtcache_setdst() returns 0 on success, or ENOMEM if no memory is
available to create the sockaddr storage.
It is now possible for rtcache_getdst() to return NULL if, say,
rtcache_setdst() failed. I check the return value for NULL
everywhere in the kernel.
4 Each routing domain (struct domain) has a list of live route
caches, dom_rtcache. rtflushall(sa_family_t af) looks up the
domain indicated by 'af', walks the domain's list of route caches
and invalidates each one.
Revision 1.2.4.4: download - view: text, markup, annotated - select for diffs
Sun Apr 15 16:04:00 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.2.4.3: preferred, colored
Changes since revision 1.2.4.3: +2 -2
lines
sync with head.
Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:26:51 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.2.2.1: preferred, colored
Changes since revision 1.2.2.1: +40 -14
lines
Sync with head.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Apr 5 18:12:49 2007 UTC (19 years, 7 months ago) by liamjfoy
Branches: MAIN
CVS tags: thorpej-atomic-base,
thorpej-atomic
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2
lines
use size_t for indexes
ok christos@
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Thu Mar 29 19:28:00 2007 UTC (19 years, 7 months ago) by reinoud
Branches: reinoud-bufcleanup
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +39 -13
lines
Pullup to -current
Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:56:12 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.2.4.2: preferred, colored
Changes since revision 1.2.4.2: +41 -14
lines
sync with head.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Mar 23 17:35:02 2007 UTC (19 years, 7 months ago) by macallan
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2
lines
caddr_t -> void *
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Mar 23 14:24:22 2007 UTC (19 years, 7 months ago) by liamjfoy
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +38 -12
lines
Add a new sysctl net.inet6.ip6.hashsize to control the hash table size.
The sysctl handler will ensure this value is a power of 2
ok dyoung@
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:52:03 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2
lines
Sync with head.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:36 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
Branch point for: reinoud-bufcleanup,
mjf-ufs-trans
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2
lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 06:14:56 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.2.4.1: preferred, colored
Changes since revision 1.2.4.1: +499 -0
lines
Sync with HEAD (missed new files in previous).
Revision 1.2.4.1
Thu Mar 8 17:09:15 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
FILE REMOVED
Changes since revision 1.2: +0 -499
lines
file ip6_flow.c was added on branch yamt-idlelwp on 2007-03-12 06:14:56 +0000
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Mar 8 17:09:15 2007 UTC (19 years, 8 months ago) by liamjfoy
Branches: MAIN
Branch point for: yamt-idlelwp,
vmlocking
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2
lines
Use ip6flowtable when looking up
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Mar 7 22:20:04 2007 UTC (19 years, 8 months ago) by liamjfoy
Branches: MAIN
Add IPv6 Fast Forward - the IPv4 counterpart:
If ip6_forward successfully forwards a packet, a cache, in this case a
ip6flow struct entry, will be created. ether_input and friends will
then be able to call ip6flow_fastforward with the packet which will then
be passed to if_output (unless an issue is found - in that case the packet
is passed back to ip6_input).
ok matt@ christos@ dyoung@ and joerg@
CVSweb <webmaster@jp.NetBSD.org>