]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[ng_socket] Don't take the SOCKBUF_LOCK() twice in the RX data path.
authorAleksandr Fedorov <afedorov@FreeBSD.org>
Thu, 17 Dec 2020 18:15:07 +0000 (18:15 +0000)
committerAleksandr Fedorov <afedorov@FreeBSD.org>
Thu, 17 Dec 2020 18:15:07 +0000 (18:15 +0000)
commit3326f7e9bbd94a5059d104122bc5204108b3f448
tree4d55aa6b73370b5dddf3d4bd75624167ba867c3f
parent4dd8db62e9d36d9796503fe98ad0d18a4bd0da71
[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