mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
use SO_INCOMING_CPU for UDP sockets
This commit is contained in:
parent
8c6c07286f
commit
517e6eccdf
@ -97,6 +97,10 @@ isc_nm_listenudp(isc_nm_t *mgr, isc_nmiface_t *iface, isc_nm_recv_cb_t cb,
|
|||||||
#endif /* ifdef WIN32 */
|
#endif /* ifdef WIN32 */
|
||||||
RUNTIME_CHECK(res == 0);
|
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 = isc__nm_get_ievent(mgr, netievent_udplisten);
|
||||||
ievent->sock = csock;
|
ievent->sock = csock;
|
||||||
isc__nm_enqueue_ievent(&mgr->workers[i],
|
isc__nm_enqueue_ievent(&mgr->workers[i],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user