[OpenWrt-Devel] [PATCH] netifd v2: Fix source routing for IPv4

2014-11-26 Thread Kristian Evensen
From: Kristian Evensen According to the OpenWRT Network documentation for route, the 'source' option is "The preferred source address when sending to destinations covered by the target". However, netifd currently stores this value in RTA_SRC on NEWROUTE/DELROUTE. RTA_SRC i

[OpenWrt-Devel] [PATCH] netifd: Pass source address to proto_add_ipv4_route

2014-12-05 Thread Kristian Evensen
From: Kristian Evensen Enable callers to pass the source IP of an IPv4 route when using proto_add_ipv4_route(). This is useful with for example DHCP in a multihomed scenario, as it provides an easy way to match default routes with the correct IP address. One use case for this are applications

[OpenWrt-Devel] [PATCH] netifd: Set source IP for DHCP default route

2014-12-05 Thread Kristian Evensen
From: Kristian Evensen This patch depends on "Pass source address to proto_add_ipv4_route". I have not found a scenario that would break by setting the source address on default, but please let me know if any special considerations should be taken. Signed-off-by: Kristian Evensen --

Re: [OpenWrt-Devel] [PATCH] netifd: Set source IP for DHCP default route

2014-12-10 Thread Kristian Evensen
On Wed, Dec 10, 2014 at 9:10 AM, Hans Dedecker wrote: > As a side effect of this patch I noticed multiple default routes (one > default route with source IP set and one default route with source IP > unset) are present in netifd if the dhcp server replies the default > route both in the router opt

Re: [OpenWrt-Devel] [PATCH 1/2] ramips: Update ZBT WE1026 DTS-files

2019-09-20 Thread Kristian Evensen
Hi Petr, On Fri, Sep 20, 2019 at 9:56 AM Petr Štetiar wrote: > could you please rebase to series to the current state of the tree? I would > like to apply it, thanks! > > BTW don't forget to include the license change ACKs. I will do it during or right over the weekend. Btw, can I consider this

[OpenWrt-Devel] [PATCH v2 1/2] ramips: Update ZBT WE1026 DTS-files

2019-09-24 Thread Kristian Evensen
"flash"-name for the spi-nor node. All changes have been tested on the WE1026-5G-16M and work fine. I.e., the device works as before the DTS-changes. v1->v2: * Added missing acked-bys. Signed-off-by: Kristian Evensen Acked-by: Mathias Kresin Acked-by: Alex Maclean Acked-by: IN

[OpenWrt-Devel] [PATCH v2 2/2] ramips: Add support for ZBT WE1026-H

2019-09-24 Thread Kristian Evensen
Signed-off-by: Kristian Evensen --- .../ramips/base-files/etc/board.d/01_leds | 5 +++ .../ramips/base-files/etc/board.d/02_network | 6 ++- .../dts/mt7620a_zbtlink_we1026-h-32m.dts | 14 +++ .../ramips/dts/mt7620a_zbtlink_we1026-h.dtsi | 42 +++ target/linux

[OpenWrt-Devel] [PATCH v2 0/2] Add support for the ZBT WE1026-H

2019-09-24 Thread Kristian Evensen
the WE1026-H. The second patch adds support for the WE1026-H. The main change between v1 and v2 is the addition of acked-bys on the first patch, triggered by the re-licensing of the DTS'. Signed-off-by: Kristian Evensen Kristian Evensen (2): ramips: Update ZBT WE1026 DTS-files ramips

Re: [OpenWrt-Devel] [PATCH v2 2/2] ramips: Add support for ZBT WE1026-H

2019-09-24 Thread Kristian Evensen
Hi, On Tue, Sep 24, 2019 at 1:28 PM Adrian Schmutzler wrote: > > Hi, > > first of all: > Naming scheme for ZBT devices is mixed in ramips. Some include the ZBT in > model name, some don't. In your case, this means the following options: > zbtlink,zbt-we1026-hcorresponding to modelZBT-WE1

Re: [OpenWrt-Devel] [PATCH v2 2/2] ramips: Add support for ZBT WE1026-H

2019-09-26 Thread Kristian Evensen
Hi Adrian, On Tue, Sep 24, 2019 at 6:22 PM wrote: > I'm all about consistency. I just scanned the image definitions in ramips: > > ... > > The only device deviating from the pattern "zbtlink_zbt-something" is > zbtlink_we1026-5g-16m. > > So, IMO the correct solution _in terms of consistency_ wou

Re: [OpenWrt-Devel] [PATCH v2] ipq40xx: Add support for Unielec U4019

2019-10-21 Thread Kristian Evensen
Hi, On Mon, Oct 21, 2019 at 6:07 PM Robert Marko wrote: > > Merging this today has caused a regression in ipq40xx. > PHY reset patch was is the issue, it now forces devices to have GPIO > for PHY reset which most devices don't have and if it's missing it > will make the driver panic and probing w

Re: [OpenWrt-Devel] [RFC] firewall3: zones: Use ipsets instead of interfaces in zone rules

2019-10-31 Thread Kristian Evensen
Hi all, On Wed, Aug 28, 2019 at 7:37 PM Kristian Evensen wrote: > > firewall3 currently creates one rule for each interface that is a member of a > zone. On for example devices with multiple interfaces, the current firewall3 > behavior quickly leads to a lot of rules. In order t

[OpenWrt-Devel] [PATCH v3 1/2] ramips: Update ZBT WE1026 DTS-files

2019-11-02 Thread Kristian Evensen
"flash"-name for the spi-nor node. * Add label MAC. All changes have been tested on the WE1026-5G-16M and work fine. I.e., the device works as before the DTS-changes. Signed-off-by: Kristian Evensen Acked-by: Mathias Kresin Acked-by: Alex Maclean Acked-by: INAGAKI Hiroshi Acke

[OpenWrt-Devel] [PATCH v3 2/2] ramips: Add support for ZBT WE1026-H

2019-11-02 Thread Kristian Evensen
his device. However, the files are structured so that adding support for the 16MB version should be easy. * Only the LAN port is accessible from the outside of the casing and LEDs are not visible. Signed-off-by: Kristian Evensen --- v2->v3: * Rebase on top of master. * Added label mac (thanks Adri

[OpenWrt-Devel] [PATCH v3 0/2] Add support for the ZBT WE1026-H

2019-11-02 Thread Kristian Evensen
the WE1026-H. The second patch adds support for the WE1026-H. The main change between v1 and v2 is the addition of acked-bys on the first patch, triggered by the re-licensing of the DTS'. The changes between v2 and v3 are mostly related to ensuring consistent naming. Signed-off-by: Kristian Ev

Re: [OpenWrt-Devel] [PATCH v3 1/2] ramips: Update ZBT WE1026 DTS-files

2019-11-02 Thread Kristian Evensen
Hi, On Sat, Nov 2, 2019 at 3:18 PM Kristian Evensen wrote: > Acked-by: Mathias Kresin > Acked-by: Alex Maclean > Acked-by: INAGAKI Hiroshi > Acked-by: Petr Štetiar I was a bit too fast when sending this patch and forgot to add the ones who have ACKed the proposed change to t

Re: [OpenWrt-Devel] [PATCH v3 2/2] ramips: Add support for ZBT WE1026-H

2019-11-03 Thread Kristian Evensen
Hi Adrian, On Sun, Nov 3, 2019 at 12:36 PM wrote: > > Hi Kristian, > > > -Original Message- > > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > > On Behalf Of Kristian Evensen > > Sent: Samstag, 2. November 2019 15:19 > > To:

Re: [OpenWrt-Devel] [PATCH v2 1/2] base-files: always store label MAC address in uci system config

2019-11-04 Thread Kristian Evensen
Hi Adrian, On Mon, Nov 4, 2019 at 11:44 AM Adrian Schmutzler wrote: > > If set, label MAC address is available from one of two sources, > device tree or board.json. So far, the function get_mac_label > was meant for retrieving the address, while an option in uci > system config was specified only

Re: [OpenWrt-Devel] [PATCH v3 2/2] ramips: Add support for ZBT WE1026-H

2019-11-04 Thread Kristian Evensen
Hi, On Sun, Nov 3, 2019 at 3:14 PM wrote: > Okay, if it's not visible I do not think it's worth to deviate from normal > procedure here. > > I've remove the power_led label and aliases. > > Feel free to test and provide an updated solution for the use as USB LED. > > Despite, note that the first

Re: [OpenWrt-Devel] [PATCH v2 1/2] base-files: always store label MAC address in uci system config

2019-11-04 Thread Kristian Evensen
Hi, On Mon, Nov 4, 2019 at 4:36 PM Adrian Schmutzler wrote: > However, I'm not aware of a case where board.json is used for anything else > than setting up config files, like in a script with user-interaction etc. While I agree that those are the most common use-cases for board.json, board.json

[OpenWrt-Devel] [PATCH] ipq40xx: u4019: use reset-gpios instead of phy-reset-gpio

2019-11-07 Thread Kristian Evensen
Use reset-gpio instead of the custom phy-reset-gpio property to do phy reset on the U4019. phy-reset-gpio was incorrectly introduced when we added support for the U4019, and will be deprecated. Signed-off-by: Kristian Evensen --- .../arch/arm/boot/dts/qcom-ipq4019-unielec-u4019.dtsi

Reduced throughput with mt7621 and DSA

2021-12-19 Thread Kristian Evensen
Hello, I am currently performing some performance measurements, comparing the (wired) routing throughput (WAN <-> LAN) of 19.07, 21.02 and master on mt7621 (ZBT WG-3526). I have connected one client to my LAN and one to the WAN, and use iperf3 to measure. I create parallel flows (in order to take

Re: Reduced throughput with mt7621 and DSA

2021-12-21 Thread Kristian Evensen
Hello again, On Sun, Dec 19, 2021 at 12:29 PM Kristian Evensen wrote: > Based on my measurements, the throughput is reduced by ~50% going from > 19.07 and to 21.02/master (~450Mbit/s vs. ~900Mbit/s). I do not have a > particular commit I can point to, but I believe the regressions is &g

Re: Reduced throughput with mt7621 and DSA

2021-12-21 Thread Kristian Evensen
Hi, On Tue, Dec 21, 2021 at 6:34 PM Kristian Evensen wrote: > Since the only change between my sets of tests is the software, > something has clearly improved in either the kernel or OpenWrt (as > would be expected :)). Are there any particular commits/patches that > would be worth

Re: [PATCH 0/6] backport fixes and improvements for MT7530

2022-02-06 Thread Kristian Evensen
Hi, On Sun, Feb 6, 2022 at 9:52 AM Arınç ÜNAL wrote: > > On 06/02/2022 00:15, Arınç ÜNAL wrote: > > On 05/02/2022 21:23, Hauke Mehrtens wrote: > >> On 2/5/22 19:21, Rosen Penev wrote: > >>> On Sat, Feb 5, 2022 at 10:12 AM Hauke Mehrtens wrote: > > On 2/3/22 13:06, DENG Qingfang wrote:

Re: [OpenWrt-Devel] [PATCH] nftables: Update nftables & clean up dependencies

2020-02-11 Thread Kristian Evensen
Hi, On Tue, Feb 11, 2020 at 2:04 PM Petr Štetiar wrote: > > * Cleans up the nftables-dependencies in netfilter.mk. All targets are > > not at 4.14+, so there is no need to specify for example "ge 4.9.0" or > > keep "lt 4.9.0" around. > > * Fix building support for nftables sets. In 4.18 the confi

Re: [OpenWrt-Devel] [PATCH] ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default

2020-02-14 Thread Kristian Evensen
Hi everyone, I am sorry for my late reply to this thread. My email provider flagged it as spam, so I only saw the conversation now. It seems that you have reached a conclusion on how to proceed, but I thought I should anyway share my notes/observations on this issue (in case they can be useful).

[OpenWrt-Devel] [PATCH] netifd: Improve handling of device rename

2020-03-11 Thread Kristian Evensen
vices. Removing a device is also handled correctly. Signed-off-by: Kristian Evensen --- system-linux.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/system-linux.c b/system-linux.c index d533be8..aff67d6 100644 --- a/system-linux.c +++ b/system-linux.c @@ -590,6 +590

Re: [OpenWrt-Devel] [PATCH] netifd: Improve handling of device rename

2020-05-16 Thread Kristian Evensen
Hi, On Wed, Mar 11, 2020 at 2:13 PM Kristian Evensen wrote: > > After an interface has been renamed on a "fast" device (for example > x86_64), the interface is sometimes not handled correctly by netifd. > Looking in the logs, I see the following messages when renaming fails

[PATCH] netifd: Ensure custom MTU is respected for bridges

2020-07-09 Thread Kristian Evensen
, the MTU of the bridge device is update. The callback covers both the case when a device is added and removed (NEWLINK events are received in both cases), so the old work-around is removed. Signed-off-by: Kristian Evensen --- bridge.c | 22 +- device.h | 2

Re: MT7621 Flow Control

2020-08-07 Thread Kristian Evensen
Hello, On Thu, Aug 6, 2020 at 1:44 PM Jaap Buurman wrote: > However, on this mailing list a user by the name of Kristian claims > that disabling flow control helps fix this problem, as can be read > here: > https://lists.openwrt.org/pipermail/openwrt-devel/2017-November/009882.html My patch unf

[OpenWrt-Devel] [PATCH] Netifd: Generic multi-wan support

2013-05-15 Thread Kristian Evensen
From: Kristian Evensen Multi-wan support was recently added to netifd, but limited to IPv6. This patch enables multi-wan for IPv4 as well. In addition, the patch introduces some changes that make the multi-wan support more robust. 1) Instead of using the interface index to decide on interface

[OpenWrt-Devel] [PATCH] Netifd: Generic multi-wan support v2

2013-05-16 Thread Kristian Evensen
From: Kristian Evensen This patch implements the comments received for version 1 (see https://lists.openwrt.org/pipermail/openwrt-devel/2013-May/020119.html). * Routes are only added to the specified table. The only exception are the IPv4-routes Linux generates automatically when an address

[OpenWrt-Devel] [PATCH] Netifd: Generic multi-wan support v3

2013-05-17 Thread Kristian Evensen
This patch implements the comments received for version 1 (see https://lists.openwrt.org/pipermail/openwrt-devel/2013-May/020119.html), and improves upon version 2 by respecting metrics. * Routes are only added to the specified table. The only exception are the IPv4-routes Linux automatically

[OpenWrt-Devel] [PATCH] Make generic multi-wan work properly with overlapping subnets

2013-05-31 Thread Kristian Evensen
Hi, The current generic multi-wan implementation does not work properly when a device is connected to multiple overlapping subnets. Reaching machines outside the networks work, but attempts to reach machines inside the networks will always go through the first interface that was added with the sub

Re: [OpenWrt-Devel] Understanding/reimplementing forwarding acceleration used by Broadcom (ctf)

2013-08-24 Thread Kristian Evensen
Hi Rafal, On Sat, Aug 24, 2013 at 5:19 PM, Rafał Miłecki wrote: > > I wonder what do you think about this solution. Is this something we > could try to implement ourself? Is it worth it? Is there some existing > project doing similar thing? This is a very interesting discovery. Have you tried to

Re: [OpenWrt-Devel] Understanding/reimplementing forwarding acceleration used by Broadcom (ctf)

2013-08-26 Thread Kristian Evensen
Hi Rafael, I will just reply to both emails here. First, it seems as though my ebtables knowledge has gotten a bit rusty and there were some details I forgot. The tool is used for firewalling bridges, so, the LAN and WAN interface has to make up a bridge. I succeeded with a simple configuration on

[OpenWrt-Devel] [PATCH libubox/uloop] Remove signal handle after uloop_run()

2013-10-21 Thread Kristian Evensen
From: Kristian Evensen uloop_run calls uloop_setup_signals() to set up signal handling before the while loop, but does not remove the signal handling after the loop has ended. This can cause problems for for example applications using the ubus file descriptor in their own event loops, and

Re: [OpenWrt-Devel] [PATCH libubox/uloop] Remove signal handle after uloop_run()

2013-10-21 Thread Kristian Evensen
Hi, On Mon, Oct 21, 2013 at 5:31 PM, Felix Fietkau wrote: > bool is a more appropriate type here than uint8_t Thanks for letting me know. > I think you need to use a different approach. What you're doing here > breaks recursive uloop_run calls, which are used in a few places. > You need to chan

[OpenWrt-Devel] [PATCH libubox/uloop v2] Restore signal handler after uloop_run()

2013-10-22 Thread Kristian Evensen
From: Kristian Evensen uloop_run calls uloop_setup_signals() to set up signal handling before the while loop, but does not remove the signal handling after the loop has ended. This can cause problems for for example applications using the ubus file descriptor in their own event loops, and

[OpenWrt-Devel] USB instabilities on Atheros AR9344

2013-11-29 Thread Kristian Evensen
Hello, I am currently working on an embedded project based on the Atheros AR9344 SoC. As a prototype device, we are using the TP-Link TL-WDR4300 router (http://wiki.openwrt.org/toh/tp-link/tl-wdr4300) and latest OpenWRT trunk. The kernel is 3.10.18. We have over the last couple of weeks experienc

Re: [OpenWrt-Devel] USB instabilities on Atheros AR9344

2013-12-01 Thread Kristian Evensen
Hi Michel, Thank you very much for a quick reply and sorry for my late reply. I was without internet and access to the device yesterday. On Fri, Nov 29, 2013 at 6:21 PM, Michel Stempin wrote: > Are your devices and hubs enumerated as full or high-speed? They are all enumerated as high-speed. >

Re: [OpenWrt-Devel] USB instabilities on Atheros AR9344

2013-12-01 Thread Kristian Evensen
Hi Vittorio, Thank you very much for your detailed replies :) On Fri, Nov 29, 2013 at 6:56 PM, Vittorio G (VittGam) wrote: > Have you tried with stable AA? I have the same router but with AA, and I've > attached quite a lot of USB devices to it (one 32GB Cruzer Fit pendrive as > extroot, 2 power

Re: [OpenWrt-Devel] USB instabilities on Atheros AR9344

2013-12-01 Thread Kristian Evensen
Hi again, On Fri, Nov 29, 2013 at 6:21 PM, Michel Stempin wrote: > > What happens if you turn off the WiFi during this time? When looking through the config, I just noticed that wifi has always been turned off. -Kristian ___ openwrt-devel mailing list

[OpenWrt-Devel] Netifd and SIGSEV with 3G/PPP modems

2014-03-06 Thread Kristian Evensen
Hello, I have spent some days debugging an issue I am frequently seeing with netifd and ppp modems. When connecting the modem after having connected and disconnected it once, i.e., the second time netifd "sees" the modem, netifd frequently thows a sigsev. After going through the code, adding prin

[OpenWrt-Devel] [PATCH] Enable compiling iptables nfacct support

2014-03-25 Thread Kristian Evensen
From: Kristian Evensen This patch adds the userspace and kernelspace match for nfacct, the extended accounting infrastructure. Signed-off-by: Kristian Evensen --- package/kernel/linux/modules/netfilter.mk | 21 + package/network/utils/iptables/Makefile | 15

Re: [OpenWrt-Devel] Question about the /tmp/resolv.conf.auto file

2014-03-31 Thread Kristian Evensen
Hi, On Mon, Mar 31, 2014 at 11:39 AM, banglang huang wrote: > And I want to learn how this file can be generated and why the > openwrt knows the dns ip address automatically (nameserver) ?? This file is generated by the network interface daemon (netifd) in the function interface_write_re

Re: [OpenWrt-Devel] Question about the /tmp/resolv.conf.auto file

2014-03-31 Thread Kristian Evensen
Hi, On Mon, Mar 31, 2014 at 11:58 AM, Tymon wrote: > How can it retrieve the nameserver in 'DHCP' way ? When a nameserver is retrieved through DHCP, it is part of the reply sent by the DHCP server. It is set (and communicated to) netifd through the /lib/netifd/dhcp.script, which is run by udhcp

[OpenWrt-Devel] [RFC netifd] Out-of-sync reference counter causes seg. fault

2014-06-18 Thread Kristian Evensen
From: Kristian Evensen Hello, I have written a small tool which automatically adds/removes a usb LAN dongle from uci. When the USB device is inserted, I add entries to UCI (using libuci) and do network reload (using libubus). When the device is removed, I remove the UCI-entries and do reload

<    1   2