wireguard: eliminate some calls to main thread 81/37081/2
authorMatthew Smith <mgsmith@netgate.com>
Fri, 2 Sep 2022 14:34:38 +0000 (14:34 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Thu, 8 Sep 2022 13:41:54 +0000 (13:41 +0000)
commit6a3f0ab2fdc22e6e5d0bb8306a0161132f6294e4
tree7884e4db3daf66ac7d34fe50276fe966cd9b6224
parent503225c45832491b1a0374ad9db931aefc590d6f
wireguard: eliminate some calls to main thread

Type: improvement

Roaming functionality allows the peer address to change. The main thread
was being called to update a peer's address if necessary after
processing a received packet. Check in the worker whether this is
necessary before incurring the overhead of the RPC to the main thread.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Change-Id: I02184b92dc658e0f57dd39993a3b2f9944187b45
src/plugins/wireguard/wireguard_input.c