2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

use SO_INCOMING_CPU for UDP sockets

This commit is contained in:
Witold Kręcicki 2020-02-11 14:41:49 +01:00
parent 8c6c07286f
commit 517e6eccdf

View File

@ -97,6 +97,10 @@ isc_nm_listenudp(isc_nm_t *mgr, isc_nmiface_t *iface, isc_nm_recv_cb_t cb,
#endif /* ifdef WIN32 */
RUNTIME_CHECK(res == 0);
#ifdef SO_INCOMING_CPU
setsockopt(csock->fd, SOL_SOCKET, SO_INCOMING_CPU, &(int){ 1 },
sizeof(int));
#endif
ievent = isc__nm_get_ievent(mgr, netievent_udplisten);
ievent->sock = csock;
isc__nm_enqueue_ievent(&mgr->workers[i],