[LEDE-DEV] arm64/layerscape dtb build break after image.mk change

2017-11-08 Thread Mathew McBride
Hi all, After commit 986d9deb3b24bc72e9e7ecf93affbc3f188bb926 ("build: allow calling append-dtb from image build commands"), layerscape targets do not build correctly anymore. The failure is on DTB compilation, where an attempt is made to place the DTB in a non-existent path: make[5]: Ente

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-11-08 Thread Kristian Evensen
Hello, It turns out that the assumption that the "transmit timed out"-issue was related to pause frames/flow control was incorrect. I have recently started to see the error again, with flow control disabled. However, unlike last time, I am now able to reliably trigger the issue. The timeout seems

Re: [LEDE-DEV] [PATCH] umdns: Replace unnecessary memset calls with {}.

2017-11-08 Thread Karl Palsson
Rosen Penev wrote: > Less verbose. > > Signed-off-by: Rosen Penev > > v2: some of those memset calls are needed. Also replace { 0 } > with {}. cmon, that's just unnecessary. It's one thing to prefer using gnu {} instead of ISO C {0} but replacing ISO standard C form with a gnu form, just beca

Re: [LEDE-DEV] [PATCH] procd: Remove unnecessary memset calls.

2017-11-08 Thread Paul Oranje
Thanks, also for the link (https://vorpus.org/blog/why-does-calloc-exist/). This article made me aware that using calloc() may be wise. For security reasons: calloc avoids possible arrhythmic overflows when the allocation size for malloc is the product of two numbers. And because it may offer re

Re: [LEDE-DEV] [PATCH] umdns: Replace unnecessary memset calls with {}.

2017-11-08 Thread Arjen de Korte
Citeren Rosen Penev : Less verbose. And uses a GCC extension which makes it less portable. ISO C forbids empty initializer braces [1]. See for yourself by adding the -pedantic flag to your CFLAGS. The correct way to initialize to all-zeros is therefore { 0 }. [1] ISO/IEC 9899:201x, par

Re: [LEDE-DEV] [PATCH][ubox] Add log priority filtering to daemon

2017-11-08 Thread David Lang
On Wed, 8 Nov 2017, John Crispin wrote: you can probably drop the validation. if the users passes 9 as a priority everything will be logged. passing -1 will cause silent logging. you should do limit checks and cap the internal value to the limit, otherwise you have to do more work for each lo

Re: [LEDE-DEV] [PATCH] kernel: Switch to No-op for the default scheduler.

2017-11-08 Thread Dave Taht
Felix Fietkau writes: > On 2017-11-08 07:18, John Crispin wrote: > It's just the I/O scheduler, not the CPU one. It will have zero impact > on typical router workloads. The only thing that might get slower is > heavy multi-threaded disk I/O, which is probably an extremely rare > occurence on LEDE

Re: [LEDE-DEV] [PATCH] kernel: Switch to No-op for the default scheduler.

2017-11-08 Thread rosenp
On Wed, 2017-11-08 at 10:27 +0100, Felix Fietkau wrote: > On 2017-11-08 07:18, John Crispin wrote: > > j > > > > > > On 07/11/17 19:41, Rosen Penev wrote: > > > most users don't have multithreaded workloads though. > > > > > > On Mon, Nov 6, 2017 at 4:43 PM, Dave Taht wrote: > > > > I happen to

Re: [LEDE-DEV] [PATCH] procd: Remove unnecessary memset calls.

2017-11-08 Thread rosenp
On Wed, 2017-11-08 at 11:57 +0100, Paul Oranje wrote: > Both memset() and calloc() have highly optimised implementations, so > the expected gains with this patch for the allocation of zeroed > memory will be small at best. As this patch does not fix a bug: why > is the change "needed" ? > Style ch

[LEDE-DEV] [PATCH] umdns: Replace unnecessary memset calls with {}.

2017-11-08 Thread Rosen Penev
Less verbose. Signed-off-by: Rosen Penev v2: some of those memset calls are needed. Also replace { 0 } with {}. --- interface.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/interface.c b/interface.c index 7f814d2..deabcbb 100644 --- a/interface.c +++ b/i

Re: [LEDE-DEV] [PATCH] ubus: Remove unnecessary memset calls.

2017-11-08 Thread Arjen de Korte
Citeren Alexandru Ardelean : On Tue, Nov 7, 2017 at 11:18 PM, Arjen de Korte wrote: Citeren Rosen Penev : I beg to differ. https://vorpus.org/blog/why-does-calloc-exist/ Section 2. I don't care about theoretical gains, benchmarks please. How much do you gain with these patches? I really

Re: [LEDE-DEV] glibc finally fixes /etc/resolv.conf handling

2017-11-08 Thread Philip Prindeville
Previous email was a little premature, but more news on the subject: https://sourceware.org/bugzilla/show_bug.cgi?id=984 from what I can tell, MUSL reads the resolv.conf file on every call to __lookup_name()… so it shouldn’t have this issue. Then again, it’s a problem that’s more likely to affl

Re: [LEDE-DEV] [PATCH v4 0/8] merge: add OpenWrt branding

2017-11-08 Thread Felix Fietkau
On 2017-11-07 09:45, Zoltan HERPAI wrote: > Given that we've decided to sail under the same flag for > the benefit of the whole community, and acknowledge the > achievements of the LEDE project, let's start the final > steps of the merge. > > The git and other sources are untouched until the infra

Re: [LEDE-DEV] [PATCH 2/2] download.mk: introduce a new variable SKIPHASH

2017-11-08 Thread Baptiste Jonglez
Hi Stijn, What is your opinion on this patch? There has been a bit of feedback, but you were the one requesting the change in the first place :) Thanks, Baptiste On 26-10-17, Baptiste Jonglez wrote: > When calling a download target, hash verification is now completely > skipped if the SKIPHASH

Re: [LEDE-DEV] [PATCH] [RFC] openssl: update to version 1.1.0f

2017-11-08 Thread Baptiste Jonglez
Hi, Thanks for feedback! On 31-10-17, Philip Prindeville wrote: > I’d also note that some of the compatibility stuff has been deprecated, > hasn’t it? What do you mean? > > define Package/openssl/Default/description > > -The OpenSSL Project is a collaborative effort to develop a robust, > > -c

Re: [LEDE-DEV] [PATCH] procd: Remove unnecessary memset calls.

2017-11-08 Thread Paul Oranje
Both memset() and calloc() have highly optimised implementations, so the expected gains with this patch for the allocation of zeroed memory will be small at best. As this patch does not fix a bug: why is the change "needed" ? Just curiosity, bye, Paul > Op 7 nov. 2017, om 21:05 heeft Rosen Pene

Re: [LEDE-DEV] [PATCH] umdns: Replace unnecessary memset calls with {}.

2017-11-08 Thread Jo-Philipp Wich
Hi, comments inline. > --- > interface.c | 22 -- > 1 file changed, 8 insertions(+), 14 deletions(-) > > diff --git a/interface.c b/interface.c > index 7f814d2..18dee52 100644 > --- a/interface.c > +++ b/interface.c > @@ -44,7 +44,7 @@ > static int > interface_send_packet4

Re: [LEDE-DEV] [PATCH] umdns: Replace unnecessary memset calls with {}.

2017-11-08 Thread Matthias Schiffer
On 11/08/2017 10:57 AM, Zefir Kurtisi wrote: > On 11/07/2017 09:24 PM, Rosen Penev wrote: >> Less verbose >> >> Signed-off-by: Rosen Penev >> --- >> interface.c | 22 -- >> 1 file changed, 8 insertions(+), 14 deletions(-) >> >> diff --git a/interface.c b/interface.c >> index 7

Re: [LEDE-DEV] [PATCH] umdns: Replace unnecessary memset calls with {}.

2017-11-08 Thread Zefir Kurtisi
On 11/07/2017 09:24 PM, Rosen Penev wrote: > Less verbose > > Signed-off-by: Rosen Penev > --- > interface.c | 22 -- > 1 file changed, 8 insertions(+), 14 deletions(-) > > diff --git a/interface.c b/interface.c > index 7f814d2..18dee52 100644 > --- a/interface.c > +++ b/int

Re: [LEDE-DEV] [PATCH] ubus: Remove unnecessary memset calls.

2017-11-08 Thread Kristian Evensen
On Tue, Nov 7, 2017 at 9:34 PM, Rosen Penev wrote: > Replace malloc+memset with calloc. Cleaner and faster in extreme situations. > > Signed-off-by: Rosen Penev > --- > libubus.c | 6 ++ > lua/ubus.c | 18 ++ > 2 files changed, 8 insertions(+), 16 deletions(-) > > diff --gi

Re: [LEDE-DEV] [PATCH] kernel: Switch to No-op for the default scheduler.

2017-11-08 Thread Felix Fietkau
On 2017-11-08 07:18, John Crispin wrote: > j > > > On 07/11/17 19:41, Rosen Penev wrote: >> most users don't have multithreaded workloads though. >> >> On Mon, Nov 6, 2017 at 4:43 PM, Dave Taht wrote: >>> I happen to like deadline schedulers, and at least from a kernel >>> perspective, we have a

Re: [LEDE-DEV] [PATCH v2] base-files: Don't deconfigure IP settings while using NFS root

2017-11-08 Thread Petr Štetiar
John Crispin [2017-11-08 08:01:53]: Hi, > wondering if it would be nicer to add this to the already existing if > clause. I find code more readable if I check for all necessary preconditions at the start of the function and then do the main logic afterwards, if all precondition are met, so I