The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: pgoyette-compat


Revision 1.419.2.22 / (download) - annotate - [select for diffs], Tue Jan 22 07:42:41 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.419.2.21: +14 -32 lines
Diff to previous 1.419.2.21 (colored) to branchpoint 1.419 (colored) next main 1.420 (colored)

Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function.  Almost
all of the hooks are called only once, and although we lose the
ability of doing things like

	if (MODULE_HOOK_CALL(...) == 0) ...

we simplify things quite a bit.  With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.

FWIW, the above if now needs to written as

	int ret;

	MODULE_HOOK_CALL(..., ret);
	if (ret == 0) ...

with appropriate use of braces {}.

Revision 1.419.2.21 / (download) - annotate - [select for diffs], Fri Jan 18 00:01:02 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.20: +10 -10 lines
Diff to previous 1.419.2.20 (colored) to branchpoint 1.419 (colored)

Don't restrict hooks to having only int or void types.  Pass the hook's
type to the various macros, as needed.

Allows us to reduce diffs to original in at least one or two places (we
no longer have to provide an additional parameter to the hook routine
for returning a non-int return value).

Revision 1.419.2.20 / (download) - annotate - [select for diffs], Mon Jan 14 13:34:28 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.19: +10 -10 lines
Diff to previous 1.419.2.19 (colored) to branchpoint 1.419 (colored)

Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.

Revision 1.419.2.19 / (download) - annotate - [select for diffs], Sun Jan 13 10:49:50 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.18: +15 -15 lines
Diff to previous 1.419.2.18 (colored) to branchpoint 1.419 (colored)

Remove the HOOK2 versions of the MODULE_HOOK macros.  There were
only a few uses, and using them led to some lack of clarity in the
code.  Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.

Revision 1.419.2.18 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:04 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.17: +29 -22 lines
Diff to previous 1.419.2.17 (colored) to branchpoint 1.419 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.419.2.17 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:50 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.16: +11 -7 lines
Diff to previous 1.419.2.16 (colored) to branchpoint 1.419 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.419.2.16 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:45 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.15: +3 -4 lines
Diff to previous 1.419.2.15 (colored) to branchpoint 1.419 (colored)

Sync with head

Revision 1.419.2.15 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:56 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.14: +18 -11 lines
Diff to previous 1.419.2.14 (colored) to branchpoint 1.419 (colored)

Ssync with HEAD

Revision 1.419.2.14 / (download) - annotate - [select for diffs], Sat Sep 29 21:36:14 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.13: +6 -7 lines
Diff to previous 1.419.2.13 (colored) to branchpoint 1.419 (colored)

In MODULE_HOOK_CALL_DECL we don't need to provide the actual argument
list for calling the hook function, nor do we need to provide the
default value (for when the hook has not been set).

Revision 1.419.2.13 / (download) - annotate - [select for diffs], Fri Sep 21 02:56:22 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.12: +18 -28 lines
Diff to previous 1.419.2.12 (colored) to branchpoint 1.419 (colored)

Clean-up some pre-existing function-pointer code (related to if_43)
to use the new MP-safe mechanism.

Revision 1.419.2.12 / (download) - annotate - [select for diffs], Thu Sep 20 09:23:22 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.11: +4 -4 lines
Diff to previous 1.419.2.11 (colored) to branchpoint 1.419 (colored)

The uipc_syscalls_40 compat routine doesn't have a ``struct lwp *l''
argument - adjust hook parameter lists accordingly.

Revision 1.419.2.11 / (download) - annotate - [select for diffs], Thu Sep 20 07:34:10 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.10: +19 -6 lines
Diff to previous 1.419.2.10 (colored) to branchpoint 1.419 (colored)

Use the MP-safe hooks mechanism for the uipc_syscalls_40 and _50
routines.

Revision 1.419.2.10 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:44 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.9: +6 -4 lines
Diff to previous 1.419.2.9 (colored) to branchpoint 1.419 (colored)

Sync with HEAD

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

Revision 1.419.2.9 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:09 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.8: +13 -7 lines
Diff to previous 1.419.2.8 (colored) to branchpoint 1.419 (colored)

Sync with HEAD

Revision 1.419.2.8 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:06 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.7: +29 -10 lines
Diff to previous 1.419.2.7 (colored) to branchpoint 1.419 (colored)

Sync with HEAD

Revision 1.419.2.7 / (download) - annotate - [select for diffs], Mon May 21 04:36:15 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.6: +11 -8 lines
Diff to previous 1.419.2.6 (colored) to branchpoint 1.419 (colored)

Sync with HEAD

Revision 1.419.2.6 / (download) - annotate - [select for diffs], Mon Apr 16 02:00:08 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.5: +3 -3 lines
Diff to previous 1.419.2.5 (colored) to branchpoint 1.419 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.419.2.5 / (download) - annotate - [select for diffs], Thu Apr 12 22:33:41 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.4: +35 -80 lines
Diff to previous 1.419.2.4 (colored) to branchpoint 1.419 (colored)

Merge christos's recent changes on HEAD

Revision 1.419.2.4 / (download) - annotate - [select for diffs], Thu Mar 8 00:25:30 2018 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.3: +3 -2 lines
Diff to previous 1.419.2.3 (colored) to branchpoint 1.419 (colored)

Handle ifconf() compat vectors

Revision 1.419.2.3 / (download) - annotate - [select for diffs], Wed Mar 7 08:56:44 2018 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.2: +2 -4 lines
Diff to previous 1.419.2.2 (colored) to branchpoint 1.419 (colored)

Remove redundant assignment

Revision 1.419.2.2 / (download) - annotate - [select for diffs], Tue Mar 6 23:46:14 2018 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419.2.1: +4 -2 lines
Diff to previous 1.419.2.1 (colored) to branchpoint 1.419 (colored)

Allocate and initialize the vector for compat_ifconf()

Revision 1.419.2.1 / (download) - annotate - [select for diffs], Tue Mar 6 05:46:06 2018 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.419: +40 -6 lines
Diff to previous 1.419 (colored)

Untangle some networking compat code so we can build a kernel with
networking and MODULAR, but without any actual COMPAT_* code (ie,
assuming that all the compat stuff can be added later via modules).

Revision 1.419 / (download) - annotate - [select for diffs], Tue Jan 30 10:40:02 2018 UTC (6 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.418: +3 -4 lines
Diff to previous 1.418 (colored)

Destroy ifq_lock at the end of if_detach

It still can be used in if_detach.

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




CVSweb <webmaster@jp.NetBSD.org>