Home | History | Annotate | Download | only in common
History log of /src/sys/compat/common/rtsock_70.c
RevisionDateAuthorComments
 1.8  12-Dec-2019  pgoyette Rather than keeping a separate mutex, condvar, and pserialize for each
module hook, we can share a common set of synchronization structures.
This cuts the amount of cacheline_aligned data for these structures by
50%.

Note that we still have a per-hook localcount, since we need to count
individual references.

As discussed with riastradh@

Welcome to 9.99.22 !
 1.7  29-Apr-2019  pgoyette Move the set-up of the net.oroute... sysctl tree to compat_50 since
the new AF_ROUTE was introduced in NetBSD-6.0
 1.6  29-Apr-2019  pgoyette For the rtsock compat code, make sure we create the "oroute" sysctl
tree. Otherwise a 5.2 version of getifaddrs(2) gets errors.

This makes the 5.2 version of ifconfig(8) behave the same on both
NetBSD-8 and -current. HOWEVER, both of them print nothing (for
``ifconfig -l'' command) so there's still a bug somewhere.

As reported originally by der Mouse.
 1.5  01-Mar-2019  pgoyette Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.
 1.4  29-Jan-2019  pgoyette Normalize all the compat hooks' names to the form

<subsystem>_<function>_<version>_hook

NFCI

XXX Note that although this introduces a change in the kernel-to-
XXX module interface, we are NOT bumping the kernel version number.
XXX We will bump the version number once the interface stabilizes.
 1.3  27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.2  16-Dec-2017  maxv branches: 1.2.2; 1.2.4;
Build these functions regardless of whether COMPAT_50 or COMPAT_70 are
enabled. They must be there, because they are needed in rtsock.c even
when no compat option is enabled.
 1.1  21-Sep-2016  roy branches: 1.1.2; 1.1.4; 1.1.18;
Add ifam_pid and ifam_addrflags to ifa_msghdr.
Re-version RTM_NEWADDR, RTM_DELADDR, RTM_CHGADDR and NET_RT_IFLIST.
Add compat code for old version.
 1.1.18.2  03-Dec-2017  jdolecek update from HEAD
 1.1.18.1  21-Sep-2016  jdolecek file rtsock_70.c was added on branch tls-maxphys on 2017-12-03 11:36:53 +0000
 1.1.4.2  04-Nov-2016  pgoyette Sync with HEAD
 1.1.4.1  21-Sep-2016  pgoyette file rtsock_70.c was added on branch pgoyette-localcount on 2016-11-04 14:49:07 +0000
 1.1.2.2  05-Oct-2016  skrll Sync with HEAD
 1.1.2.1  21-Sep-2016  skrll file rtsock_70.c was added on branch nick-nhusb on 2016-10-05 20:55:37 +0000
 1.2.4.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.2.4.1  10-Jun-2019  christos Sync with HEAD
 1.2.2.5  23-Jan-2019  pgoyette Convert the macros for setting and unsetting a hook to generate
in-line code rather than using an intermediary hook##set routine.
Hooks are set and unset only in one place, so the intermediary
routine provides no benefit. IMHO using the macro at the point-
of-call is more readable than using it elsewhere in the code and
then calling the generated intermediary routine (for which you
won't even find its declaration or definition unless you remember
to search for the HOOK_SET macro instead).

NFC intended, will verify with a bulk build and an atf test run.
 1.2.2.4  14-Jan-2019  pgoyette Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.
 1.2.2.3  13-Jan-2019  pgoyette 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.
 1.2.2.2  15-Oct-2018  pgoyette Convert a couple more hooks to the MP-safe mechanism.

While here, clean up some headers and remove any that are now empty.
 1.2.2.1  15-Mar-2018  pgoyette Create a separate module for COMPAT_70 code only, and untangle the
70 compat code from the current.

RSS XML Feed