only store the current time on address table entries if it changes.
authordlg <dlg@openbsd.org>
Fri, 26 Feb 2021 08:31:23 +0000 (08:31 +0000)
committerdlg <dlg@openbsd.org>
Fri, 26 Feb 2021 08:31:23 +0000 (08:31 +0000)
commit2c44fd7e189600dc56a75c5f4dd861d51e12ef5d
tree5b344bbb4ebe654ab53d87308697b658a99e3ff2
parentad5116fe1f87c36a53d9a0cd305dba97da67ebc2
only store the current time on address table entries if it changes.

this avoids unecessary writes to memory. it helps a little bit with
a single nettq, but we get a lot more of a boost in pps when running
concurrently.

thanks to hrvoje for testing.
sys/net/if_etherbridge.c