From 517e6eccdf6adbcc1307bec0913b5f74a336a37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Tue, 11 Feb 2020 14:41:49 +0100 Subject: [PATCH] use SO_INCOMING_CPU for UDP sockets --- lib/isc/netmgr/udp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/isc/netmgr/udp.c b/lib/isc/netmgr/udp.c index 46219d15bd..823d01b5c1 100644 --- a/lib/isc/netmgr/udp.c +++ b/lib/isc/netmgr/udp.c @@ -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],