From patchwork Mon Nov 2 10:35:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Salvaterra X-Patchwork-Id: 1392073 X-Patchwork-Delegate: daniel@makrotopia.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=22W2j2t1; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=UDX0yxdF; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CPq9p3L49z9sVM for ; Mon, 2 Nov 2020 21:37:33 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=jMd6FyWoqjddmHxdjdrjMKx1bnm5/csDuSDIvg1I8wU=; b=22W2j2t1tUWFJ+JNZ2tQDAttMs uGI6xgy9ne+N2g11CyE8rHpPhvv5jFq8ZIElM3Y4ichGlfntEUwyQlKfAXw+P1GvP0ER333EcNGi5 1r0DVqmxZvg8tGJZf9qIt6cHqEA5qH4EVteyZiPzsEjlh2pyBmnJFpZ56mfJjHP1zMvMj7ABDIEqX WaBm3sxVRILx9Pa1461QNKBTS1UVTBnpEwHx+OA3m2topp4g0lb5KD/0DIUIOVwfSavvKVCCfbDyQ UyUkxty/XzF/W0tTfAPiD5FWQhXizpmGpwzpIk8E16/07vi4Ft7RJsWDdgvhoihpiK7aQUEEt2tvI 2+lrjOCg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZXBW-0005s4-04; Mon, 02 Nov 2020 10:35:34 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZXBS-0005qb-MU for openwrt-devel@lists.openwrt.org; Mon, 02 Nov 2020 10:35:31 +0000 Received: by mail-qt1-x843.google.com with SMTP id c5so8890087qtw.3 for ; Mon, 02 Nov 2020 02:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XtfK71Uib+lfZuP3gPyRkZ9z63gHgnAxHheihhndDy4=; b=UDX0yxdF9fau7frZjKT07FZYZTpjImJiYcxi207+R0uvHS7m4+0RfgDIFQqaAA/Rdk yz32vfNcEmkV5IJtsfd0JgPDAYM+HMZDB5e8Gl7NCjWqWniH4nGzspMuvUiiYJSUVzhp 34LnHw8Wv+I4m8mkh/wfbvr2dcy23NJ3tDwaf2Kfnj3tN/tzSnxMCG9LqlZ5dJN2g4eg U521V12czjQ6JX+2SiDZwcWfBLw2osVAPvz5Ty7mFdqTyPA2Su46AO3xpGFT2GklzOcC xtxGHQvBcqiRQy6uNjNwJostR9QW5oIelc8RPMX/JUaC12KThVGc8Xlsb6w2COY7lD6M X9wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XtfK71Uib+lfZuP3gPyRkZ9z63gHgnAxHheihhndDy4=; b=QZ+J/A5Zh1AX3N/7+tvq/jNw+qylShz4+1HJ6SKCleWKoFK1HFrPAi2A/6QfbEuHkD yvA1U7ev0nLGqA3hupYOVjmOcjEDDBNOlVazWaP3RFx2sfrfzS+moTMdWNu/7AhFRw5I px8CA9zzv5x8IbkZydAH31LRqz8Ep+/kvJ4JhHTtV/vZ7FPx9bOZFP0U4KCHggCzjmJg le69Kfa8BHfs6yMB0CjBkxZwe5Kkkn+3f2+DK3DNxQJJop7TNVSK15JkYS35NlescdG3 l9bU1NqbPuLhXSrRiy4q2mC2EfbFYyOAnkQR1Q/Sydmpsw1ZJEJz9TFOiWGAEZfzcDvX 58vg== X-Gm-Message-State: AOAM531kaRwQoxztUa+ZgttaH/pjeIElOCKh4eq98tRX696d6KQfoHet b2XxToBJGTPMGSj5uHahG4nZj8Wlmg== X-Google-Smtp-Source: ABdhPJx5ANYd/FYPJ+iU8VnAnabBPJW0Vb0mrNVIr+tUKrg3SmmuB5Awyjg0cinv3X7rMttC9FMvZw== X-Received: by 2002:ac8:4d5b:: with SMTP id x27mr5214870qtv.135.1604313327267; Mon, 02 Nov 2020 02:35:27 -0800 (PST) Received: from presler.lan (a95-94-69-32.cpe.netcabo.pt. [95.94.69.32]) by smtp.gmail.com with ESMTPSA id e19sm7622105qkl.94.2020.11.02.02.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 02:35:26 -0800 (PST) From: Rui Salvaterra To: openwrt-devel@lists.openwrt.org Subject: [PATCH] hostapd: enable the epoll-based event loop Date: Mon, 2 Nov 2020 10:35:20 +0000 Message-Id: <20201102103521.3127-1-rsalvaterra@gmail.com> X-Mailer: git-send-email 2.29.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201102_053530_820516_B6E4A1CB X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:843 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rsalvaterra[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rui Salvaterra Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Hostapd supports epoll() since 2014. Let's enable it for better performance. Signed-off-by: Rui Salvaterra --- package/network/services/hostapd/files/hostapd-basic.config | 2 +- package/network/services/hostapd/files/hostapd-full.config | 2 +- package/network/services/hostapd/files/hostapd-mini.config | 2 +- .../network/services/hostapd/files/wpa_supplicant-basic.config | 2 +- .../network/services/hostapd/files/wpa_supplicant-full.config | 2 +- .../network/services/hostapd/files/wpa_supplicant-mini.config | 2 +- .../network/services/hostapd/files/wpa_supplicant-p2p.config | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package/network/services/hostapd/files/hostapd-basic.config b/package/network/services/hostapd/files/hostapd-basic.config index 19ea850f6b..947e2fa200 100644 --- a/package/network/services/hostapd/files/hostapd-basic.config +++ b/package/network/services/hostapd/files/hostapd-basic.config @@ -268,7 +268,7 @@ CONFIG_GETRANDOM=y #CONFIG_ELOOP_POLL=y # Should we use epoll instead of select? Select is used by default. -#CONFIG_ELOOP_EPOLL=y +CONFIG_ELOOP_EPOLL=y # Should we use kqueue instead of select? Select is used by default. #CONFIG_ELOOP_KQUEUE=y diff --git a/package/network/services/hostapd/files/hostapd-full.config b/package/network/services/hostapd/files/hostapd-full.config index fee4479dfa..df272e443a 100644 --- a/package/network/services/hostapd/files/hostapd-full.config +++ b/package/network/services/hostapd/files/hostapd-full.config @@ -268,7 +268,7 @@ CONFIG_GETRANDOM=y #CONFIG_ELOOP_POLL=y # Should we use epoll instead of select? Select is used by default. -#CONFIG_ELOOP_EPOLL=y +CONFIG_ELOOP_EPOLL=y # Should we use kqueue instead of select? Select is used by default. #CONFIG_ELOOP_KQUEUE=y diff --git a/package/network/services/hostapd/files/hostapd-mini.config b/package/network/services/hostapd/files/hostapd-mini.config index d9511441e6..b3050f7bbc 100644 --- a/package/network/services/hostapd/files/hostapd-mini.config +++ b/package/network/services/hostapd/files/hostapd-mini.config @@ -268,7 +268,7 @@ CONFIG_GETRANDOM=y #CONFIG_ELOOP_POLL=y # Should we use epoll instead of select? Select is used by default. -#CONFIG_ELOOP_EPOLL=y +CONFIG_ELOOP_EPOLL=y # Should we use kqueue instead of select? Select is used by default. #CONFIG_ELOOP_KQUEUE=y diff --git a/package/network/services/hostapd/files/wpa_supplicant-basic.config b/package/network/services/hostapd/files/wpa_supplicant-basic.config index db3f7c7a11..c550b37b21 100644 --- a/package/network/services/hostapd/files/wpa_supplicant-basic.config +++ b/package/network/services/hostapd/files/wpa_supplicant-basic.config @@ -290,7 +290,7 @@ CONFIG_NO_CONFIG_WRITE=y #CONFIG_ELOOP_POLL=y # Should we use epoll instead of select? Select is used by default. -#CONFIG_ELOOP_EPOLL=y +CONFIG_ELOOP_EPOLL=y # Should we use kqueue instead of select? Select is used by default. #CONFIG_ELOOP_KQUEUE=y diff --git a/package/network/services/hostapd/files/wpa_supplicant-full.config b/package/network/services/hostapd/files/wpa_supplicant-full.config index 4dd3e550a6..b3e85d073d 100644 --- a/package/network/services/hostapd/files/wpa_supplicant-full.config +++ b/package/network/services/hostapd/files/wpa_supplicant-full.config @@ -290,7 +290,7 @@ CONFIG_BACKEND=file #CONFIG_ELOOP_POLL=y # Should we use epoll instead of select? Select is used by default. -#CONFIG_ELOOP_EPOLL=y +CONFIG_ELOOP_EPOLL=y # Should we use kqueue instead of select? Select is used by default. #CONFIG_ELOOP_KQUEUE=y diff --git a/package/network/services/hostapd/files/wpa_supplicant-mini.config b/package/network/services/hostapd/files/wpa_supplicant-mini.config index c1e0141edd..9eb1111e52 100644 --- a/package/network/services/hostapd/files/wpa_supplicant-mini.config +++ b/package/network/services/hostapd/files/wpa_supplicant-mini.config @@ -290,7 +290,7 @@ CONFIG_NO_CONFIG_WRITE=y #CONFIG_ELOOP_POLL=y # Should we use epoll instead of select? Select is used by default. -#CONFIG_ELOOP_EPOLL=y +CONFIG_ELOOP_EPOLL=y # Should we use kqueue instead of select? Select is used by default. #CONFIG_ELOOP_KQUEUE=y diff --git a/package/network/services/hostapd/files/wpa_supplicant-p2p.config b/package/network/services/hostapd/files/wpa_supplicant-p2p.config index 5156048284..b00847a256 100644 --- a/package/network/services/hostapd/files/wpa_supplicant-p2p.config +++ b/package/network/services/hostapd/files/wpa_supplicant-p2p.config @@ -290,7 +290,7 @@ CONFIG_BACKEND=file #CONFIG_ELOOP_POLL=y # Should we use epoll instead of select? Select is used by default. -#CONFIG_ELOOP_EPOLL=y +CONFIG_ELOOP_EPOLL=y # Should we use kqueue instead of select? Select is used by default. #CONFIG_ELOOP_KQUEUE=y