summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/memcpy.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2017-01-24 03:57:34 +0000
committerdlg <dlg@openbsd.org>2017-01-24 03:57:34 +0000
commit722eb25e1fa2d117d3941b3d447ad5f80d86a54b (patch)
tree806301dc91a91735afb52217bb1ae9be885e47fc /sys/lib/libkern/memcpy.c
parentonly send the rt msg on timeout failure if bfd is not down (diff)
downloadwireguard-openbsd-722eb25e1fa2d117d3941b3d447ad5f80d86a54b.tar.xz
wireguard-openbsd-722eb25e1fa2d117d3941b3d447ad5f80d86a54b.zip
add support for multiple transmit ifqueues per network interface.
an ifq to transmit a packet is picked by the current traffic conditioner (ie, priq or hfsc) by providing an index into an array of ifqs. by default interfaces get a single ifq but can ask for more using if_attach_queues(). the vast majority of our drivers still think there's a 1:1 mapping between interfaces and transmit queues, so their if_start routines take an ifnet pointer instead of a pointer to the ifqueue struct. instead of changing all the drivers in the tree, drivers can opt into using an if_qstart routine and setting the IFXF_MPSAFE flag. the stack provides a compatability wrapper from the new if_qstart handler to the previous if_start handlers if IFXF_MPSAFE isnt set. enabling hfsc on an interface configures it to transmit everything through the first ifq. any other ifqs are left configured as priq, but unused, when hfsc is enabled. getting this in now so everyone can kick the tyres. ok mpi@ visa@ (who provided some tweaks for cnmac).
Diffstat (limited to 'sys/lib/libkern/memcpy.c')
0 files changed, 0 insertions, 0 deletions