]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[ng_socket] Don't take the SOCKBUF_LOCK() twice in the RX data path.
authorafedorov <afedorov@FreeBSD.org>
Thu, 17 Dec 2020 18:15:07 +0000 (18:15 +0000)
committerafedorov <afedorov@FreeBSD.org>
Thu, 17 Dec 2020 18:15:07 +0000 (18:15 +0000)
commit81782839541754f6fb9052723a306e18a59f77ea
tree4d55aa6b73370b5dddf3d4bd75624167ba867c3f
parent2f4c76c0686c09ca209c31b998d4d01e9eeb718e
[ng_socket] Don't take the SOCKBUF_LOCK() twice in the RX data path.

This is just a minor optimization, but it's sensitive. This gives an improvement of 30-50 kpps.

Reviewed by: kp, markj, glebius, lutz_donnerhacke.de
Approved by: vmaffione (mentor)
Sponsored by: vstack.com
Differential Revision: https://reviews.freebsd.org/D27382
sys/netgraph/ng_socket.c