The NetBSD Project

CVS log for src/sys/netinet/sctp_output.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 13 14:23:15 2024 UTC (2 months, 4 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +6 -4 lines
Pull up following revision(s) (requested by rin in ticket #863):

	sys/netinet/sctp_output.c: revision 1.34

handle EHOSTDOWN the same way as EHOSTUNREACH in sctp_med_chunk_output().

Compile-tested only (I don't have a sctp setup); proposed in
http://mail-index.netbsd.org/tech-net/2023/09/11/msg008611.html

LGTM from Greg Troxel and Robert Swindells

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Sep 8 09:36:51 2024 UTC (3 months ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
fix a/an grammar in obvious cases

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:54 2024 UTC (5 months, 1 week ago) by rin
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +32 -59 lines
sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Feb 9 22:08:37 2024 UTC (10 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -4 lines
fix spelling mistakes, mainly in comments and log messages.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Sep 13 15:58:13 2023 UTC (14 months, 4 weeks ago) by bouyer
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +6 -4 lines
handle EHOSTDOWN the same way as EHOSTUNREACH in sctp_med_chunk_output().
Compile-tested only (I don't have a sctp setup); proposed in
http://mail-index.netbsd.org/tech-net/2023/09/11/msg008611.html
LGTM from Greg Troxel and Robert Swindells

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Nov 4 09:01:53 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: netbsd-10-base, 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
Branch point for: netbsd-10
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
inpcb: rename functions to in6pcb_*

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Oct 28 05:26:29 2022 UTC (2 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +12 -12 lines
Adjust dccp and sctp for struct inpcb separation

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue May 31 08:43:16 2022 UTC (2 years, 6 months ago) by andvar
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
fix various typos in comments, documentation and messages.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat May 28 10:36:23 2022 UTC (2 years, 6 months ago) by andvar
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
fix various typos, mainly in comments.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Apr 8 10:17:55 2022 UTC (2 years, 8 months ago) by andvar
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -6 lines
fix various typos, mainly in comments, but also log messages, docs, game text.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Dec 5 04:56:40 2021 UTC (3 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
s/futher/further/ in comment.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Dec 5 03:08:19 2021 UTC (3 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
s/measurment/measurement/ in comment.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Oct 21 13:21:55 2021 UTC (3 years, 1 month ago) by andvar
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -5 lines
fix various typos, mainly in comments, but also in man pages and log messages.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Sep 7 13:24:46 2021 UTC (3 years, 3 months ago) by andvar
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
s/aquire/acquire/ in comments, also one typo fix acqure->acquire.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Sep 3 21:55:01 2021 UTC (3 years, 3 months ago) by andvar
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -5 lines
fix typos in comments, mainly s/extention/extension/ and s/sufficent/sufficient/

Revision 1.22.6.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:42 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +11 -11 lines
Sync with HEAD.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jul 24 21:31:39 2021 UTC (3 years, 4 months ago) by andvar
Branches: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +11 -11 lines
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Jun 13 01:41:59 2020 UTC (4 years, 6 months ago) by roy
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, 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
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -5 lines
SCTP: Use ifp->if_mtu rather than ND_IFINFO(ifp)->linkmtu

Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:16 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +1 -3 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:58 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +6 -6 lines
Merge changes from current as of 20200406

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Dec 26 04:44:10 2019 UTC (4 years, 11 months ago) by msaitoh
Branches: 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, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
 Fix typo in comment.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Dec 3 03:25:28 2019 UTC (5 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -5 lines
 s/upate/update/ in comment.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 13 02:51:22 2019 UTC (5 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -5 lines
Get rid of unnecessary NULL checks for rt_ifa and ifa_ifp

They are always non-NULL nowadays.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:47 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +13 -17 lines
Sync with HEAD

Revision 1.12.2.6: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:05 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.12.2.5: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.5: +4 -8 lines
Sync with HEAD, resolve a few conflicts

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 22 14:28:57 2018 UTC (5 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, 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, isaki-audio2-base, isaki-audio2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -8 lines
Replace M_ALIGN and MH_ALIGN by m_align.

Revision 1.12.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:56 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.12.2.4: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.4: +3 -3 lines
Ssync with HEAD

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Sep 16 09:25:47 2018 UTC (6 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
interrupt has two 'r's

fix another typo while I'm here (flsah)

Revision 1.12.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:44 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.12.2.3: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.3: +10 -10 lines
Sync with HEAD

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

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:36 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-0906
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +10 -10 lines
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.12.2.3: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:16 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.12.2.2: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.2: +4 -4 lines
Sync with HEAD

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu May 3 07:01:08 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 lines
Remove m_copy completely.

Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:23 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.1: +2 -4 lines
Synch with HEAD

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue May 1 07:21:39 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0502
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -4 lines
Remove now unused net_osdep.h includes, the other BSDs did the same.

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 7 04:12:19 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Mar 30 22:54:37 2018 UTC (6 years, 8 months ago) by maya
Branches: MAIN
CVS tags: pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
correct typo: and and -> and (comments only)

heads up on this being a common typo from chris28.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Dec 10 11:52:14 2017 UTC (7 years ago) by rjs
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +29 -34 lines
Improve compliance to RFC 6458.

Revision 1.11.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:04 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.11.4.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.4.1: +10226 -0 lines
update from HEAD

Revision 1.1.2.7: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:12 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.6: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.6: +5 -5 lines
Sync with HEAD

Revision 1.11.4.1
Tue Jun 27 13:54:56 2017 UTC (7 years, 5 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.11: +0 -10226 lines
file sctp_output.c was added on branch tls-maxphys on 2017-12-03 11:39:04 +0000

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jun 27 13:54:56 2017 UTC (7 years, 5 months ago) by rjs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: tls-maxphys
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Use host byte order for a debug message.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:06 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +4 -4 lines
Sync with HEAD

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:50 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.1: +4 -4 lines
Sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Mar 3 07:13:06 2017 UTC (7 years, 9 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, 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, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
Pass inpcb/in6pcb instead of socket to ip_output/ip6_output

- Passing a socket to Layer 3 is layer violation and even unnecessary
- The change makes codes of callers and IPsec a bit simple

Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:59 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.5: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.5: +43 -17 lines
Sync with HEAD

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:51 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +43 -17 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Dec 23 11:11:28 2016 UTC (7 years, 11 months ago) by maya
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
Remove extraneous parentheses. no functional change

Appeases clang

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Dec 8 05:16:33 2016 UTC (8 years ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +41 -15 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.1.2.5: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:22 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.4: +39 -42 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jul 7 09:32:02 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +21 -21 lines
Switch the address list of intefaces to pslist(9)

As usual, we leave the old list to avoid breaking kvm(3) users.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:31:44 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -12 lines
Avoid storing a pointer of an interface in a mbuf

Having a pointer of an interface in a mbuf isn't safe if we remove big
kernel locks; an interface object (ifnet) can be destroyed anytime in any
packet processing and accessing such object via a pointer is racy. Instead
we have to get an object from the interface collection (ifindex2ifnet) via
an interface index (if_index) that is stored to a mbuf instead of an
pointer.

The change provides two APIs: m_{get,put}_rcvif_psref that use psref(9)
for sleep-able critical sections and m_{get,put}_rcvif that use
pserialize(9) for other critical sections. The change also adds another
API called m_get_rcvif_NOMPSAFE, that is NOT MP-safe and for transition
moratorium, i.e., it is intended to be used for places where are not
planned to be MP-ified soon.

The change adds some overhead due to psref to performance sensitive paths,
however the overhead is not serious, 2% down at worst.

Proposed on tech-kern and tech-net.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:16 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +13 -13 lines
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.1.2.4: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:38 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +39 -14 lines
Sync with HEAD

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu May 12 02:24:17 2016 UTC (8 years, 7 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +37 -12 lines
Protect ifnet list with psz and psref

The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Apr 25 21:21:02 2016 UTC (8 years, 7 months ago) by rjs
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
Fix build when IPSEC enabled.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:17 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +35 -36 lines
Sync with HEAD

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Apr 3 09:57:40 2016 UTC (8 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20160422
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +35 -36 lines
Replace generic queue macros with IFNET/IFADDR macros.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:07 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +10179 -0 lines
Sync with HEAD (as of 26th Dec)

Revision 1.1.2.1
Tue Oct 13 21:28:35 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.1: +0 -10179 lines
file sctp_output.c was added on branch nick-nhusb on 2015-12-27 12:10:07 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Oct 13 21:28:35 2015 UTC (9 years, 2 months ago) by rjs
Branches: MAIN
CVS tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226
Branch point for: nick-nhusb
Add core networking support for SCTP.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>