[Buildroot] [PATCH] dhcp: add config option for delayed-ack feature of dhcp server

Subsystems: the rest

6 messages, 3 authors, 2013-07-19 · open the first message on its own page

[Buildroot] [PATCH] dhcp: add config option for delayed-ack feature of dhcp server

From: Thomas De Schampheleire <hidden>
Date: 2013-07-19 12:46:37

This patch creates a config option for the ISC DHCP server to allow passing
--enable-delayed-ack to its configure script.

Signed-off-by: Thomas De Schampheleire <redacted>

---
 package/dhcp/Config.in |  5 +++++
 package/dhcp/dhcp.mk   |  4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/package/dhcp/Config.in b/package/dhcp/Config.in
--- a/package/dhcp/Config.in
+++ b/package/dhcp/Config.in
@@ -13,6 +13,11 @@ config BR2_PACKAGE_DHCP_SERVER
 	help
 	  DHCP server from the ISC DHCP distribution.
 
+config BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK
+	bool "Enable delayed ACK feature"
+	depends on BR2_PACKAGE_DHCP_SERVER
+	help
+	  Enable delayed ACK feature in the ISC DHCP server.
 
 config BR2_PACKAGE_DHCP_RELAY
 	bool "dhcp relay"
diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk
--- a/package/dhcp/dhcp.mk
+++ b/package/dhcp/dhcp.mk
@@ -17,6 +17,10 @@ DHCP_CONF_OPT = \
 	--with-cli-pid-file=/var/run/dhclient.pid \
 	--with-relay-pid-file=/var/run/dhcrelay.pid
 
+ifeq ($(BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK),y)
+        DHCP_CONF_OPT += --enable-delayed-ack
+endif
+
 ifneq ($(BR2_INET_IPV6),y)
         DHCP_CONF_OPT += --disable-dhcpv6
 endif

[Buildroot] [PATCH] dhcp: add config option for delayed-ack feature of dhcp server

From: Gustavo Zacarias <hidden>
Date: 2013-07-19 13:15:53

On 07/19/2013 09:46 AM, Thomas De Schampheleire wrote:
quoted hunk
+config BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK
+	bool "Enable delayed ACK feature"
+	depends on BR2_PACKAGE_DHCP_SERVER
+	help
+	  Enable delayed ACK feature in the ISC DHCP server.
Can't you just enable it to avoid config cluttering?
AFAIK it's not a default-on option in dhcpd.conf
Regards.

[Buildroot] [PATCH] dhcp: add config option for delayed-ack feature of dhcp server

From: Thomas De Schampheleire <hidden>
Date: 2013-07-19 13:32:07

Hi Gustavo,

On Fri, Jul 19, 2013 at 3:15 PM, Gustavo Zacarias
[off-list ref] wrote:
On 07/19/2013 09:46 AM, Thomas De Schampheleire wrote:
quoted
+config BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK
+     bool "Enable delayed ACK feature"
+     depends on BR2_PACKAGE_DHCP_SERVER
+     help
+       Enable delayed ACK feature in the ISC DHCP server.
Can't you just enable it to avoid config cluttering?
AFAIK it's not a default-on option in dhcpd.conf
Maybe, I'm not an expert on the matter. The RELNOTES file says the
following for 4.1.0a2:
 "Delayed-ack is now a compile-time option, compiled out by default.
  This feature is simply too experimental for right now, and causes
  some problems to some failover installations.  We will revisit this
  in future releases."

and also the man page:
"Please note that as delayed-ack is currently experimental, the delayed-ack
feature is not compiled in by default, but must be enabled at compile time
with \'./configure --enable-delayed-ack\'."

but in the meantime we're several releases further. I don't know if it
is still accurate.

I think you're right that it's not default-on in dhcpd.conf.

What do you say, enable it always at compile time?

Thanks,
Thomas

[Buildroot] [PATCH] dhcp: add config option for delayed-ack feature of dhcp server

From: Gustavo Zacarias <hidden>
Date: 2013-07-19 13:43:25

On 07/19/2013 10:32 AM, Thomas De Schampheleire wrote:
but in the meantime we're several releases further. I don't know if it
is still accurate.

I think you're right that it's not default-on in dhcpd.conf.

What do you say, enable it always at compile time?
Oh yes it's a default, so let's just keep the option.
(includes/dhcpd.h -> DEFAULT_DELAYED_ACK)
I hate build options :)
Regards.

[Buildroot] [PATCH] dhcp: add config option for delayed-ack feature of dhcp server

From: Thomas De Schampheleire <hidden>
Date: 2013-07-19 14:52:15

On Fri, Jul 19, 2013 at 3:43 PM, Gustavo Zacarias
[off-list ref] wrote:
On 07/19/2013 10:32 AM, Thomas De Schampheleire wrote:
quoted
but in the meantime we're several releases further. I don't know if it
is still accurate.

I think you're right that it's not default-on in dhcpd.conf.

What do you say, enable it always at compile time?
Oh yes it's a default, so let's just keep the option.
(includes/dhcpd.h -> DEFAULT_DELAYED_ACK)
You're right, so we have to keep the option.
Hence, the patch remains as it is.

Thanks for your feedback,
Thomas

[Buildroot] [PATCH] dhcp: add config option for delayed-ack feature of dhcp server

From: Peter Korsgaard <hidden>
Date: 2013-07-19 21:40:36

quoted
quoted
quoted
quoted
"Thomas" == Thomas De Schampheleire [off-list ref] writes:
 Thomas> This patch creates a config option for the ISC DHCP server to
 Thomas> allow passing --enable-delayed-ack to its configure script.

Committed, thanks.

Are you really building such a big system with Buildroot that the fsyncs
matter?

-- 
Bye, Peter Korsgaard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help