CVS log for src/sys/net/npf/lpm.c
Up to [cvs.NetBSD.org] / src / sys / net / npf
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.4.12.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:15 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.4.12.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.12.1: +14 -9
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jun 12 14:36:32 2019 UTC (5 years, 10 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-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
thorpej-altq-separation-base,
thorpej-altq-separation,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-9-base,
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,
netbsd-10-base,
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,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache,
HEAD
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +14 -9
lines
Avoid LOCKDEBUG pserialize panic by implementing suggestion #1 from
http://mail-index.netbsd.org/current-users/2019/02/24/msg035220.html:
Convert the mutex to spin-lock at IPL_NET (but it is excessive) and
convert the memory allocations in that code path to KM_NOSLEEP.
Revision 1.4.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:46 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +79 -28
lines
Sync with HEAD
Revision 1.4.10.1: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:56 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +79 -28
lines
Ssync with HEAD
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Sep 29 14:41:36 2018 UTC (6 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +79 -28
lines
NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.
Thanks to christos@ for extra testing.
Revision 1.4.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:03 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.4.8.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.8.1: +397 -0
lines
update from HEAD
Revision 1.3.8.3: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:11 2017 UTC (7 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.3.8.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.8.2: +2 -6
lines
Sync with HEAD
Revision 1.4.8.1
Thu Jun 1 02:45:14 2017 UTC (7 years, 10 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.4: +0 -397
lines
file lpm.c was added on branch tls-maxphys on 2017-12-03 11:39:03 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:14 2017 UTC (7 years, 10 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
phil-wifi-base,
pgoyette-compat-base,
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,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
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,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek
Branch point for: tls-maxphys,
phil-wifi,
pgoyette-compat
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -6
lines
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()
all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
Revision 1.3.8.2: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:58 2017 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.3.8.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.8.1: +401 -0
lines
Sync with HEAD
Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 18 08:46:46 2017 UTC (8 years, 3 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.3.6.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.6.1: +401 -0
lines
Sync with netbsd-5
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:50 2017 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +401 -0
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Tue Dec 27 07:03:52 2016 UTC (8 years, 4 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
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
Diff to: previous 1.1.2.3: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.3: +2 -2
lines
Pull up following revision(s) (requested by rmind in ticket #1340):
sys/net/npf/lpm.c: revision 1.3
Fix kmem_free() in hashmap_remove().
Revision 1.3.8.1
Mon Dec 26 21:16:06 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.3: +0 -401
lines
file lpm.c was added on branch nick-nhusb on 2017-02-05 13:40:58 +0000
Revision 1.3.6.1
Mon Dec 26 21:16:06 2016 UTC (8 years, 4 months ago) by skrll
Branches: netbsd-7-nhusb
FILE REMOVED
Changes since revision 1.3: +0 -401
lines
file lpm.c was added on branch netbsd-7-nhusb on 2017-01-18 08:46:46 +0000
Revision 1.3.2.1
Mon Dec 26 21:16:06 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
FILE REMOVED
Changes since revision 1.3: +0 -401
lines
file lpm.c was added on branch pgoyette-localcount on 2017-01-07 08:56:50 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Dec 26 21:16:06 2016 UTC (8 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: pgoyette-localcount,
nick-nhusb,
netbsd-7-nhusb
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
lines
Fix kmem_free() in hashmap_remove().
Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Mon Dec 26 18:55:08 2016 UTC (8 years, 4 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.1.2.2: preferred, colored
Changes since revision 1.1.2.2: +4 -4
lines
Pull up following revision(s) (requested by rmind in ticket #1339):
sys/net/npf/lpm.c: revision 1.2
Fix kmem_free() sizes in hashmap_rehash() and lpm_clear().
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Dec 26 12:44:10 2016 UTC (8 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -4
lines
Fix kmem_free() sizes in hashmap_rehash() and lpm_clear().
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 18 07:40:50 2016 UTC (8 years, 4 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.1.2.1: preferred, colored
Changes since revision 1.1.2.1: +401 -0
lines
Pull up following revision(s) (requested by rmind in ticket #1319):
sys/modules/npf/Makefile: revision 1.19
sys/net/npf/files.npf: revision 1.18
sys/net/npf/lpm.c: revision 1.1
sys/net/npf/lpm.h: revision 1.1
sys/net/npf/npf_impl.h: revision 1.62
sys/net/npf/npf_tableset.c: revision 1.24
sys/net/npf/npf_tableset_ptree.c: file removal
sys/rump/net/lib/libnpf/Makefile: revision 1.18
This patches ditches the ptree(3) library, because it is broken (you
can get missing entries!). Instead, as a temporary solution, we switch
to a simple linear scan of the hash tables for the longest-prefix-match
(lpm.c lpm.h) algorithm. In fact, with few unique prefixes in the set,
on modern hardware this simple algorithm is pretty fast anyway!
--
ditch ptree and use lpm
--
remove ptree add lpm
Revision 1.1.2.1
Fri Dec 9 02:40:38 2016 UTC (8 years, 4 months ago) by snj
Branches: netbsd-7
FILE REMOVED
Changes since revision 1.1: +0 -401
lines
file lpm.c was added on branch netbsd-7 on 2016-12-18 07:40:50 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Dec 9 02:40:38 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Branch point for: netbsd-7
This patches ditches the ptree(3) library, because it is broken (you
can get missing entries!). Instead, as a temporary solution, we switch
to a simple linear scan of the hash tables for the longest-prefix-match
(lpm.c lpm.h) algorithm. In fact, with few unique prefixes in the set,
on modern hardware this simple algorithm is pretty fast anyway!
CVSweb <webmaster@jp.NetBSD.org>