summaryrefslogtreecommitdiffstats
path: root/sys/net/if_wg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Mark interface as MPSAFEjd/queueboostsJason A. Donenfeld2020-06-221-11/+11
| | | | | | | This enables us to process queueing of different packet queues in without NET_LOCK. Combined with the increase in txlen, this keeps our encryption workers more active. This results in a ~30% performance boost.
* Increase if_txmit to 64Jason A. Donenfeld2020-06-221-0/+1
| | | | | This increases throughput by keeping the worker threads active for longer.
* add missing rcs idjasper2020-06-221-0/+2
|
* The interface if_ioctl routine must be called with the NET_LOCK() held.claudio2020-06-221-0/+4
| | | | | | | | | | | | For example the bridge_ioctl() function calls NET_UNLOCK() unconditionally and so calling if_ioctl() without netlock will trigger an assert because of not holding the netlock. Make sure the ioctl handlers are called with the netlock held and drop the lock for the wg(4) specific ioctls in the wg_ioctl handler. This fixes a panic in bridge_ioctl() triggered by ifconfig(8) issuing a SIOCGWG ioctl against bridge(4). This is just a workaround this needs more cleanup but at least this way the panic can not be triggered anymore. OK stsp@, tested by semarie@
* add wg(4), an in kernel driver for WireGuard vpn communication.dlg2020-06-211-0/+2735
| | | | | | | | | | | thanks to Matt Dunwoodie and Jason A. Donenfeld for their effort. it's at least as functional as the go implementation, and maybe more so since this one works on more architectures. i'm sure there's further development that can be done, but you can say that about anything and everything that's in the tree. ok deraadt@
* back out, this isn't part of a vlan change.dlg2019-04-271-1991/+0
|
* get rid of ifv_linkmib and a bunch of useless macrosdlg2019-04-271-0/+1991