[LEDE-DEV] [PATCH netifd] interface: fix "ifup-failed" hotplug event handling

2018-04-09 Thread Martin Schiller
The ifup-failed event should only be triggered when the former interface state is IFS_SETUP. Otherwise, there will also be an ifup-failed event in the IFS_TEARDOWN stateif you do an manual ifdown . Signed-off-by: Martin Schiller --- interface.c | 10 -- 1 file changed, 8 insertions

Re: [LEDE-DEV] [PATCH netifd] system-linux: add support for hotplug event 'move'

2017-09-28 Thread Martin Schiller
On 2017-09-29 00:36, Philip Prindeville wrote: Inlineā€¦ On Sep 28, 2017, at 2:32 AM, Martin Schiller wrote: If you rename a network interface, there is a move uevent invoked instead of remove/add. This patch adds support for this kind of event. Signed-off-by: Martin Schiller --- system

[LEDE-DEV] [PATCH netifd] system-linux: add support for hotplug event 'move'

2017-09-28 Thread Martin Schiller
If you rename a network interface, there is a move uevent invoked instead of remove/add. This patch adds support for this kind of event. Signed-off-by: Martin Schiller --- system-linux.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/system

[LEDE-DEV] lantiq: update vdsl subsystem to official VRX200 release V5.7.6.1 (Annnex A) / V5.7.6.2 (Annex B)

2017-06-30 Thread Martin Schiller
Hi Hauke, we currently use a "wild mixture" of the lantiq vdsl components: drv_dsl_cpe_api_vrx-4.17.18.6 drv_mei_cpe-1.5.17.6 dsl_cpe_control_vrx-4.17.18.6 dsl_vr9_firmware_xdsl-05.08.01.08.01.06_05.08.00.0B.01.01_osc (non-vectoring Annex A Firmware) dsl_vr9_firmware_xdsl-05.07.09.09.00.06_05.0

Re: [LEDE-DEV] [PATCH netifd] interface: add new "ifup-failed" hotplug event

2017-05-07 Thread Martin Schiller
On 2017-05-06 14:47, Jo-Philipp Wich wrote: Hi, Are there any comments about this patch? can't you achieve the same by simply watching ifdown events and checking ifstatus/devstatus indicators? No, unfortunately not. An ifdown event is only generated when the interface has already been up

Re: [LEDE-DEV] [PATCH netifd] interface: add new "ifup-failed" hotplug event

2017-05-05 Thread Martin Schiller
Are there any comments about this patch? I still want to get this feature into netifd. On 2017-03-31 08:31, Martin Schiller wrote: This hook makes it possible to do some helper work in hotplug scripts when a connection is not established successfully. example: try several username/passwords

[LEDE-DEV] [PATCH netifd] interface: add new "ifup-failed" hotplug event

2017-03-30 Thread Martin Schiller
-off-by: Martin Schiller --- interface-event.c | 2 ++ interface.c | 4 interface.h | 1 + 3 files changed, 7 insertions(+) diff --git a/interface-event.c b/interface-event.c index 4976c2c..86e8f54 100644 --- a/interface-event.c +++ b/interface-event.c @@ -33,6 +33,7 @@ static

[LEDE-DEV] [PATCH v2] libpcap: add optional netfilter support

2017-02-19 Thread Martin Schiller
This is needed to use the nflog interface with tcpdump Signed-off-by: Martin Schiller --- package/libs/libpcap/Config.in | 4 package/libs/libpcap/Makefile | 7 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package/libs/libpcap/Config.in b/package/libs/libpcap

[LEDE-DEV] [PATCH] libpcap: add optional netfilter support

2017-02-16 Thread Martin Schiller
This is needed to use the nflog interface with tcpdump Signed-off-by: Martin Schiller --- package/libs/libpcap/Config.in | 5 + package/libs/libpcap/Makefile | 7 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package/libs/libpcap/Config.in b/package/libs/libpcap

[LEDE-DEV] [PATCH 2/3] ltq-deu: fix handling of data blocks with sizes != AES/DES block size

2016-08-18 Thread Martin Schiller
This fix is a backport from the lantiq UGW-6.1.1-MR1 Signed-off-by: Martin Schiller --- package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c | 124 ++-- package/kernel/lantiq/ltq-deu/src/ifxmips_des.c | 28 +++--- 2 files changed, 108 insertions(+), 44 deletions(-) diff --git a

[LEDE-DEV] [PATCH 3/3] ltq-deu: fix cra_priority

2016-08-18 Thread Martin Schiller
With the default priority of 0, the DEU algos would be overlapped by the generic algos (if available). To fix this, set the cra_priority of the hardware algos to the recommended value of 300/400. Signed-off-by: Martin Schiller --- package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c | 5

[LEDE-DEV] [PATCH 1/3] ltq-deu: fix aes initialization vector handling

2016-08-18 Thread Martin Schiller
This fix is a backport from the lantiq UGW-6.1.1-MR1 Signed-off-by: Martin Schiller --- package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c b/package/kernel/lantiq/ltq-deu

[LEDE-DEV] [PATCH] lantiq/xrx200-net: Add support for eth0 as WAN interface

2016-08-15 Thread Martin Schiller
Use priv->wan instead of priv->id as indicator if packets should go to the Ethernet WAN group (DPID=1) or not (DPID=0). This way, it's independant of interface names or indexes. Signed-off-by: Martin Schiller --- .../linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq-adds-xrx200-net.patc

[LEDE-DEV] [PATCH 2/2] lantiq/xrx200-net: add interrupt for second DMA TX channel to vr9.dtsi

2016-08-12 Thread Martin Schiller
Signed-off-by: Martin Schiller --- target/linux/lantiq/dts/vr9.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/lantiq/dts/vr9.dtsi b/target/linux/lantiq/dts/vr9.dtsi index 15d73a5..a1c05d0 100644 --- a/target/linux/lantiq/dts/vr9.dtsi +++ b/target/linux

[LEDE-DEV] [PATCH 1/2] lantiq/xrx200-net: fix "tx ring full" error by introducing second DMA TX channel

2016-08-12 Thread Martin Schiller
With an own DMA TX channel for each network device (eth0 + eth1) there won't be any "tx ring full" errors any more. This patch also move the spinlocks to the channel level instead of locking the whole xrx200_hw structure. Signed-off-by: Martin Schiller --- .../0025-NET-MIPS-lan