[OpenWrt-Devel] [PATCH] config-kernel: export kernels blkio cgroup configs.

2019-02-14 Thread Daniel Danzberger
These options can enable the blkio.weight + blkio.throttle cgroups. Signed-off-by: Daniel Danzberger --- config/Config-kernel.in | 12 1 file changed, 12 insertions(+) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index f38cc792dd..c89e1f9f2e 100644 --- a/config/Co

[OpenWrt-Devel] [PATCH] ramips: Increase GB-PC2 SPI frequency to 80MHz

2019-02-14 Thread Rosen Penev
The flash chip on the board (Spansion S25FL256SAIF00) is rated to support at least 50MHz for normal read requests according to the datasheet. 133MHz for fast reads. However, ramips seems to be limited to 80MHz. >From testing this, higher values do not improve speeds. time dd if=/dev/mtdblock3 of=

[OpenWrt-Devel] [PATCH] ramips: Increase GB-PC1 SPI frequency to 80MHz

2019-02-14 Thread Rosen Penev
The specific flash chip used (W25Q256FVEM) accepts 50MHz for read requests and higher for others. 104MHz for fast reads. ramips seems to be limited to 80MHz based on testing with higher values (no speedup). Based on upstream commit: 97738374a310b9116f9c33832737e517226d3722 time dd if=/dev/mtdbloc

[OpenWrt-Devel] [PATCH] mdadm: Update to 4.1

2019-02-14 Thread Rosen Penev
Tested on GnuBee PC1. Signed-off-by: Rosen Penev --- package/utils/mdadm/Makefile | 6 +++--- package/utils/mdadm/patches/100-cross_compile.patch | 6 +++--- .../101-mdadm.h-Undefine-dprintf-before-redefining.patch | 2 +- package/utils/mdadm/patches/200-reduc

[OpenWrt-Devel] 5GHz wifi is broken

2019-02-14 Thread e9hack
Hi, a change somewhere between 8.Feb and 10.Feb breaks the usage of the 5GHz WiFi on my Archer C7 router. I get the following entries in the log file: Thu Feb 14 18:27:01 2019 daemon.err hostapd: Failed to set beacon parameters Thu Feb 14 18:27:01 2019 daemon.err hostapd: Interface initializatio

Re: [OpenWrt-Devel] [PATCH] net: Allow class-e address assignment via ifconfig ioctl

2019-02-14 Thread Kevin 'ldir' Darbyshire-Bryant
Hi Linus, FYI this was backported to the Openwrt patch tree by yours truly in https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=2574c86ce66c4032e5905d46601106ccc0c69676 and the follow up fix in https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=1fdb4a7907e0290c7fe5ca3346d40782002

[OpenWrt-Devel] [PATCH 8/8 v3] netfilter: nf_tables: fix mismatch in big-endian system

2019-02-14 Thread Linus Walleij
From: Liping Zhang commit 10596608c4d62cb8c1c2b806debcbd32fe657e71 upstream. Currently, there are two different methods to store an u16 integer to the u32 data register. For example: u32 *dest = ®s->data[priv->dreg]; 1. *dest = 0; *(u16 *) dest = val_u16; 2. *dest = val_u16; For method 1,

[OpenWrt-Devel] [PATCH 7/8 v3] usb: dwc2: Remove unnecessary kfree

2019-02-14 Thread Linus Walleij
From: John Youn commit cd4b1e34655d46950c065d9284b596cd8d7b28cd upstream. This shouldn't be freed by the HCD as it is owned by the core and allocated with devm_kzalloc. Signed-off-by: John Youn Signed-off-by: Felipe Balbi Signed-off-by: Linus Walleij --- - This was applied upstream in v4.10

[OpenWrt-Devel] [PATCH 5/8 v3] ubifs: Drop softlimit and delta fields from struct ubifs_wbuf

2019-02-14 Thread Linus Walleij
From: Rafał Miłecki commit 854826c9d526fd81077742c3b000e3f7fcaef3ce upstream. Values of these fields are set during init and never modified. They are used (read) in a single function only. There isn't really any reason to keep them in a struct. It only makes struct just a bit bigger without any

[OpenWrt-Devel] [PATCH 6/8 v3] ubifs: Use dirty_writeback_interval value for wbuf timer

2019-02-14 Thread Linus Walleij
From: Rafał Miłecki commit 1b7fc2c0069f3864a3dda15430b7aded31c0bfcc upstream. Right now wbuf timer has hardcoded timeouts and there is no place for manual adjustments. Some projects / cases many need that though. Few file systems allow doing that by respecting dirty_writeback_interval that can b

[OpenWrt-Devel] [PATCH 4/8 v3] kaweth: use skb_cow_head() to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: Eric Dumazet commit 39fba7835aacda65284a86e611774cbba71dac20 upstream. We can use skb_cow_head() to properly deal with clones, especially the ones coming from TCP stack that allow their head being modified. This avoids a copy. Signed-off-by: Eric Dumazet Cc: James Hughes Signed-off-by:

[OpenWrt-Devel] [PATCH 3/8 v3] ch9200: use skb_cow_head() to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: Eric Dumazet commit 6bc6895bdd6744e0136eaa4a11fbdb20a7db4e40 upstream. We need to ensure there is enough headroom to push extra header, but we also need to check if we are allowed to change headers. skb_cow_head() is the proper helper to deal with this. Fixes: 4a476bd6d1d9 ("usbnet: New

[OpenWrt-Devel] [PATCH 0/8 v3] Stable material from OpenWrt for v4.9.y

2019-02-14 Thread Linus Walleij
This is a series of patches used in OpenWrt's v4.9 backports that seem to be of generic interest to v4.9.y For the remaining patches I cherry-picked the upstream commits except for (8/8) "netfilter: nf_tables: fix mismatch in big-endian system" where I used OpenWrt's backport. ChangeLog v2->v3: -

[OpenWrt-Devel] [PATCH 2/8 v3] smsc95xx: Use skb_cow_head to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: James Hughes commit e9156cd26a495a18706e796f02a81fee41ec14f4 upstream. The driver was failing to check that the SKB wasn't cloned before adding checksum data. Replace existing handling to extend/copy the header buffer with skb_cow_head. Signed-off-by: James Hughes Acked-by: Eric Dumazet

[OpenWrt-Devel] [PATCH 1/8 v3] bridge: multicast to unicast

2019-02-14 Thread Linus Walleij
From: Felix Fietkau commit 6db6f0eae6052b70885562e1733896647ec1d807 upstream. Implements an optional, per bridge port flag and feature to deliver multicast packets to any host on the according port via unicast individually. This is done by copying the packet per host and changing the multicast d

[OpenWrt-Devel] [PATCH v2] uapi/if_ether.h: prevent redefinition of struct ethhdr

2019-02-14 Thread Linus Walleij
From: Hauke Mehrtens commit 6926e041a8920c8ec27e4e155efa760aa01551fd upstream. Musl provides its own ethhdr struct definition. Add a guard to prevent its definition of the appropriate musl header has already been included. glibc does not implement this header, but when glibc will implement this

[OpenWrt-Devel] [PATCH v2] net: Allow class-e address assignment via ifconfig ioctl

2019-02-14 Thread Linus Walleij
From: Dave Taht commit 65cab850f0eeaa9180bd2e10a231964f33743edf upstream. While most distributions long ago switched to the iproute2 suite of utilities, which allow class-e (240.0.0.0/4) address assignment, distributions relying on busybox, toybox and other forms of ifconfig cannot assign class-

Re: [OpenWrt-Devel] [PATCH] uapi/if_ether.h: prevent redefinition of struct ethhdr

2019-02-14 Thread Linus Walleij
On Thu, Feb 14, 2019 at 1:45 PM Greg Kroah-Hartman wrote: > On Thu, Feb 14, 2019 at 01:27:20PM +0100, Linus Walleij wrote: > > From: Hauke Mehrtens > > > > commit 6926e041a8920c8ec27e4e155efa760aa01551fd upstream. > > > > Musl provides its own ethhdr struct definition. Add a guard to prevent > >

[OpenWrt-Devel] [PATCH 7/8 v2] usb: dwc2: Remove unnecessary kfree

2019-02-14 Thread Linus Walleij
From: John Youn commit cd4b1e34655d46950c065d9284b596cd8d7b28cd upstream. This shouldn't be freed by the HCD as it is owned by the core and allocated with devm_kzalloc. Signed-off-by: John Youn Signed-off-by: Felipe Balbi --- - This was applied upstream in v4.10 - Should be applied to stable

[OpenWrt-Devel] [PATCH 8/8 v2] netfilter: nf_tables: fix mismatch in big-endian system

2019-02-14 Thread Linus Walleij
From: Liping Zhang commit 10596608c4d62cb8c1c2b806debcbd32fe657e71 upstream. Currently, there are two different methods to store an u16 integer to the u32 data register. For example: u32 *dest = ®s->data[priv->dreg]; 1. *dest = 0; *(u16 *) dest = val_u16; 2. *dest = val_u16; For method 1,

[OpenWrt-Devel] [PATCH 6/8 v2] ubifs: Use dirty_writeback_interval value for wbuf timer

2019-02-14 Thread Linus Walleij
From: Rafał Miłecki commit 1b7fc2c0069f3864a3dda15430b7aded31c0bfcc upstream. Right now wbuf timer has hardcoded timeouts and there is no place for manual adjustments. Some projects / cases many need that though. Few file systems allow doing that by respecting dirty_writeback_interval that can b

[OpenWrt-Devel] [PATCH 5/8 v2] ubifs: Drop softlimit and delta fields from struct ubifs_wbuf

2019-02-14 Thread Linus Walleij
From: Rafał Miłecki commit 854826c9d526fd81077742c3b000e3f7fcaef3ce upstream. Values of these fields are set during init and never modified. They are used (read) in a single function only. There isn't really any reason to keep them in a struct. It only makes struct just a bit bigger without any

[OpenWrt-Devel] [PATCH 4/8 v2] kaweth: use skb_cow_head() to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: Eric Dumazet commit 39fba7835aacda65284a86e611774cbba71dac20 upstream. We can use skb_cow_head() to properly deal with clones, especially the ones coming from TCP stack that allow their head being modified. This avoids a copy. Signed-off-by: Eric Dumazet Cc: James Hughes Signed-off-by:

[OpenWrt-Devel] [PATCH 3/8 v2] ch9200: use skb_cow_head() to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: Eric Dumazet commit 6bc6895bdd6744e0136eaa4a11fbdb20a7db4e40 upstream. We need to ensure there is enough headroom to push extra header, but we also need to check if we are allowed to change headers. skb_cow_head() is the proper helper to deal with this. Fixes: 4a476bd6d1d9 ("usbnet: New

[OpenWrt-Devel] [PATCH 2/8 v2] smsc95xx: Use skb_cow_head to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: James Hughes commit e9156cd26a495a18706e796f02a81fee41ec14f4 upstream. The driver was failing to check that the SKB wasn't cloned before adding checksum data. Replace existing handling to extend/copy the header buffer with skb_cow_head. Signed-off-by: James Hughes Acked-by: Eric Dumazet

[OpenWrt-Devel] [PATCH 1/8 v2] bridge: multicast to unicast

2019-02-14 Thread Linus Walleij
From: Felix Fietkau commit 6db6f0eae6052b70885562e1733896647ec1d807 upstream. Implements an optional, per bridge port flag and feature to deliver multicast packets to any host on the according port via unicast individually. This is done by copying the packet per host and changing the multicast d

[OpenWrt-Devel] [PATCH 0/8 v2] Stable material from OpenWrt for v4.9.y

2019-02-14 Thread Linus Walleij
This is a series of patches used in OpenWrt's v4.9 backports that seem to be of generic interest to v4.9.y For the remaining patches I cherry-picked the upstream commits except for (8/8) "netfilter: nf_tables: fix mismatch in big-endian system" where I used OpenWrt's backport. ChangeLog v1->v2:

Re: [OpenWrt-Devel] [PATCH] uapi/if_ether.h: prevent redefinition of struct ethhdr

2019-02-14 Thread Greg Kroah-Hartman
On Thu, Feb 14, 2019 at 01:27:20PM +0100, Linus Walleij wrote: > From: Hauke Mehrtens > > commit 6926e041a8920c8ec27e4e155efa760aa01551fd upstream. > > Musl provides its own ethhdr struct definition. Add a guard to prevent > its definition of the appropriate musl header has already been included

[OpenWrt-Devel] [PATCH] uapi/if_ether.h: prevent redefinition of struct ethhdr

2019-02-14 Thread Linus Walleij
From: Hauke Mehrtens commit 6926e041a8920c8ec27e4e155efa760aa01551fd upstream. Musl provides its own ethhdr struct definition. Add a guard to prevent its definition of the appropriate musl header has already been included. glibc does not implement this header, but when glibc will implement this

Re: [OpenWrt-Devel] OM2P ImageBuilder

2019-02-14 Thread Sven Eckelmann
On Thursday, 14 February 2019 13:07:42 CET Conca Ten wrote: [...] > regarding your exchange at > [OpenWrt-Devel] ar71xx: OM2P ImageBuilder no firmware when BIN_DIR used > > I've tried to use https://chef.aparcar.org to > generate a flashable firmware with added package

[OpenWrt-Devel] [PATCH] net: Allow class-e address assignment via ifconfig ioctl

2019-02-14 Thread Linus Walleij
From: Dave Taht commit 65cab850f0eeaa9180bd2e10a231964f33743edf upstream. While most distributions long ago switched to the iproute2 suite of utilities, which allow class-e (240.0.0.0/4) address assignment, distributions relying on busybox, toybox and other forms of ifconfig cannot assign class-

[OpenWrt-Devel] [PATCH 1/2] dnsmasq: allow using dnsmasq as the sole resolver

2019-02-14 Thread Yousong Zhou
Currently it seems impossible to configure /etc/config/dhcp to achieve the following use case - run dnsmasq with no-resolv - re-generate /etc/resolv.conf with "nameserver 127.0.0.1" Before this change, we have to set resolvfile to /tmp/resolv.conf.auto to achive the 2nd effect above, but settin

[OpenWrt-Devel] [PATCH 2/2] dnsmasq: decouple /tmp/resolv.conf from value of option resolvfile

2019-02-14 Thread Yousong Zhou
Option resolvfile should now affect only how dnsmasq itself will run. The implicit effect of its specific value on other parts of the system makes the code unnecessarily hard to follow Signed-off-by: Yousong Zhou --- package/network/services/dnsmasq/Makefile | 2 +- package/network/ser

Re: [OpenWrt-Devel] [PATCH 00/10] Stable material from OpenWrt

2019-02-14 Thread Linus Walleij
On Thu, Feb 14, 2019 at 11:42 AM Greg Kroah-Hartman wrote: > Also, some of these are in kernels newer than 4.14, so if I were to > apply them to 4.9 only, someone moving to a newer kernel would have a > regression, which isn't ok. > > 65cab850f0ee ("net: Allow class-e address assignment via ifcon

Re: [OpenWrt-Devel] [PATCH 00/10] Stable material from OpenWrt

2019-02-14 Thread Greg Kroah-Hartman
On Thu, Feb 14, 2019 at 11:24:26AM +0100, Linus Walleij wrote: > This is a series of patches used in OpenWrt's v4.9 backports > that seem to be of generic interest to v4.9.y > > As a bunch of commits hit networking I CC DaveM and > here so the can nod/object to these, I think > the want a bit of c

Re: [OpenWrt-Devel] [PATCH 01/10] bridge: multicast to unicast

2019-02-14 Thread Greg Kroah-Hartman
On Thu, Feb 14, 2019 at 11:24:27AM +0100, Linus Walleij wrote: > From: Felix Fietkau > > Implements an optional, per bridge port flag and feature to deliver > multicast packets to any host on the according port via unicast > individually. This is done by copying the packet per host and > changing

[OpenWrt-Devel] [PATCH 10/10] uapi/if_ether.h: prevent redefinition of struct ethhdr

2019-02-14 Thread Linus Walleij
From: Hauke Mehrtens Musl provides its own ethhdr struct definition. Add a guard to prevent its definition of the appropriate musl header has already been included. glibc does not implement this header, but when glibc will implement this they can just define __UAPI_DEF_ETHHDR 0 to make it work w

[OpenWrt-Devel] [PATCH 09/10] net: Allow class-e address assignment via ifconfig ioctl

2019-02-14 Thread Linus Walleij
From: Dave Taht While most distributions long ago switched to the iproute2 suite of utilities, which allow class-e (240.0.0.0/4) address assignment, distributions relying on busybox, toybox and other forms of ifconfig cannot assign class-e addresses without this kernel patch. While CIDR has been

[OpenWrt-Devel] [PATCH 08/10] netfilter: nf_tables: fix mismatch in big-endian system

2019-02-14 Thread Linus Walleij
From: Liping Zhang Currently, there are two different methods to store an u16 integer to the u32 data register. For example: u32 *dest = ®s->data[priv->dreg]; 1. *dest = 0; *(u16 *) dest = val_u16; 2. *dest = val_u16; For method 1, the u16 value will be stored like this, either in big-endi

[OpenWrt-Devel] [PATCH 05/10] ubifs: Drop softlimit and delta fields from struct ubifs_wbuf

2019-02-14 Thread Linus Walleij
From: Rafał Miłecki Values of these fields are set during init and never modified. They are used (read) in a single function only. There isn't really any reason to keep them in a struct. It only makes struct just a bit bigger without any visible gain. Signed-off-by: Rafał Miłecki Reviewed-by: B

[OpenWrt-Devel] [PATCH 07/10] usb: dwc2: Remove unnecessary kfree

2019-02-14 Thread Linus Walleij
From: John Youn This shouldn't be freed by the HCD as it is owned by the core and allocated with devm_kzalloc. Signed-off-by: John Youn Signed-off-by: Felipe Balbi --- drivers/usb/dwc2/hcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c ind

[OpenWrt-Devel] [PATCH 06/10] ubifs: Use dirty_writeback_interval value for wbuf timer

2019-02-14 Thread Linus Walleij
From: Rafał Miłecki Right now wbuf timer has hardcoded timeouts and there is no place for manual adjustments. Some projects / cases many need that though. Few file systems allow doing that by respecting dirty_writeback_interval that can be set using sysctl (dirty_writeback_centisecs). Lowering d

[OpenWrt-Devel] [PATCH 01/10] bridge: multicast to unicast

2019-02-14 Thread Linus Walleij
From: Felix Fietkau Implements an optional, per bridge port flag and feature to deliver multicast packets to any host on the according port via unicast individually. This is done by copying the packet per host and changing the multicast destination MAC to a unicast one accordingly. multicast-to-

[OpenWrt-Devel] [PATCH 04/10] kaweth: use skb_cow_head() to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: Eric Dumazet We can use skb_cow_head() to properly deal with clones, especially the ones coming from TCP stack that allow their head being modified. This avoids a copy. Signed-off-by: Eric Dumazet Cc: James Hughes Signed-off-by: David S. Miller --- drivers/net/usb/kaweth.c | 18 ++-

[OpenWrt-Devel] [PATCH 03/10] ch9200: use skb_cow_head() to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: Eric Dumazet We need to ensure there is enough headroom to push extra header, but we also need to check if we are allowed to change headers. skb_cow_head() is the proper helper to deal with this. Fixes: 4a476bd6d1d9 ("usbnet: New driver for QinHeng CH9200 devices") Signed-off-by: Eric Dum

[OpenWrt-Devel] [PATCH 02/10] smsc95xx: Use skb_cow_head to deal with cloned skbs

2019-02-14 Thread Linus Walleij
From: James Hughes The driver was failing to check that the SKB wasn't cloned before adding checksum data. Replace existing handling to extend/copy the header buffer with skb_cow_head. Signed-off-by: James Hughes Acked-by: Eric Dumazet Acked-by: Woojung Huh Signed-off-by: David S. Miller ---

[OpenWrt-Devel] [PATCH 00/10] Stable material from OpenWrt

2019-02-14 Thread Linus Walleij
This is a series of patches used in OpenWrt's v4.9 backports that seem to be of generic interest to v4.9.y As a bunch of commits hit networking I CC DaveM and here so the can nod/object to these, I think the want a bit of control over what goes into networking stable. I avoided two patch sets dea

Re: [OpenWrt-Devel] umbim: registration set support

2019-02-14 Thread Bjørn Mork
Ingo Feinerer writes: > anyone willing to review/commit this diff? > > http://lists.infradead.org/pipermail/openwrt-devel/2019-January/015445.html > http://lists.infradead.org/pipermail/openwrt-devel/2019-January/015444.html I assume John is very busy based on currently observed activity. So y