mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
use SO_INCOMING_CPU for UDP sockets
This commit is contained in:
@@ -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],
|
||||||
|
Reference in New Issue
Block a user