[PATCH] vxlan: allow for dynamic source ip selection

2020-11-22 Thread Johannes Kimmel
: FS#3426 Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3426 Signed-off-by: Johannes Kimmel --- package/network/config/vxlan/files/vxlan.sh | 55 - 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/package/network/config/vxlan/files/vxlan.sh b/pack

[PATCH v2] vxlan: allow for dynamic source ip selection

2020-11-23 Thread Johannes Kimmel
tly very strict behaviour and should fix the following bug: Fixes: FS#3426 Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3426 V2: - bump PKG_RELEASE - add small explaination about behaviour changes Signed-off-by: Johannes Kimmel --- package/network/config/vxlan/Makefile

Re: [PATCH v2] vxlan: allow for dynamic source ip selection

2020-11-27 Thread Johannes Kimmel
On 27.11.20 17:13, Matthias Schiffer wrote: > On 11/24/20 4:26 AM, Johannes Kimmel wrote: >> By setting 'auto', the zero address or the empty string as source >> address (option ipaddr, option ip6addr), vxlan will choose one >> dynamically. This helps in setups w

[PATCH v3 1/1] vxlan: allow for dynamic source ip selection

2020-12-14 Thread Johannes Kimmel
3426 Signed-off-by: Johannes Kimmel --- V2: - Bump PKG_RELEASE - Add small explaination about behaviour changes V3: - Remove newly introduced inherit again that forced the old behaviour of selecting a specific source address derived from the tunlink interface. In situations wh

[PATCH v3 0/1] vxlan: allow for dynamic source ip selection

2020-12-14 Thread Johannes Kimmel
ly replaces the old behaviour with the new source address auto-selection. Should there be an argument for the inherit option down the road, we can add it then and use V2 of this patch as the blueprint again. Johannes Kimmel (1): vxlan: allow for dynamic source ip selection package/network/config

[OpenWrt-Devel] [PATCH] make_ext4fs: fix build on musl systems

2019-12-06 Thread Johannes Kimmel
From: Johannes Kimmel Include sys/sysmacros.h on all systems, except MACOS. The previous change only included the header on glibc systems: 3af931b0b6545757aaeadb13f9bb9da0296fc172 Signed-off-by: Johannes Kimmel --- ext4_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[OpenWrt-Devel] [PATCH 0/3] vxlan: add capability for multiple fdb entries

2020-06-08 Thread Johannes Kimmel
Third patch introduces new config sections for vxlan peers similar to wireguard peers. See patches for more info. Johannes Kimmel (3): vxlan: fix udp checksum control vxlan: remove mandatory peeraddr vxlan: add capability for multiple fdb entries package/network/config/vxlan/Makefile

[OpenWrt-Devel] [PATCH 1/3] vxlan: fix udp checksum control

2020-06-08 Thread Johannes Kimmel
So far, passing "rxcsum" and "txcsum" had no effect. Signed-off-by: Johannes Kimmel --- package/network/config/vxlan/files/vxlan.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/network/config/vxlan/files/vxlan.sh b/package/network/config/vxlan/files/vx

[OpenWrt-Devel] [PATCH 2/3] vxlan: remove mandatory peeraddr

2020-06-08 Thread Johannes Kimmel
vxlan can be configured without a peer address. This is used to prepare an interface and add peers later. Signed-off-by: Johannes Kimmel --- package/network/config/vxlan/files/vxlan.sh | 12 1 file changed, 12 deletions(-) diff --git a/package/network/config/vxlan/files/vxlan.sh

[OpenWrt-Devel] [PATCH 3/3] vxlan: add capability for multiple fdb entries

2020-06-08 Thread Johannes Kimmel
e peer options for completeness: config vxlan_vx0 option lladdr 'aa:bb:cc:dd:ee:ff' # specific mac, option dst '2001:db8::4' # connected to this peer option via 'eth0.1'# use this interface only option port

[PATCH v2 2/2] vxlan: add capability for multiple fdb entries

2020-07-19 Thread Johannes Kimmel
n lladdr 'aa:bb:cc:dd:ee:ff' # specific mac, option dst '2001:db8::4' # connected to this peer option via 'eth0.1'# use this interface only option port'4789' # use different port for this peer opti

[PATCH v2 1/2] vxlan: remove mandatory peeraddr

2020-07-19 Thread Johannes Kimmel
vxlan can be configured without a peer address. This is used to prepare an interface and add peers later. Fixes: FS#2743 Signed-off-by: Johannes Kimmel --- package/network/config/vxlan/files/vxlan.sh | 12 1 file changed, 12 deletions(-) diff --git a/package/network/config/vxlan

Re: [OpenWrt-Devel] [PATCH 3/3] vxlan: add capability for multiple fdb entries

2020-07-19 Thread Johannes Kimmel
Thanks for the feedback. I reworked the patch to incorporate the requested changes. On 18.07.20 17:33, Matthias Schiffer wrote: On 6/8/20 4:14 PM, Johannes Kimmel wrote: Similar to wireguard, vxlan can configure multiple peers or add specific entries to the fdb for a single mac address

[PATCH 1/4] netifd: vxlan: handle srcport range

2020-09-03 Thread Johannes Kimmel
ified. srcportmax is exclusive. If only srcportmax is specified, the value is ignored and defaults are used. Signed-off-by: Johannes Kimmel --- system-linux.c | 26 ++ system.c | 2 ++ system.h | 2 ++ 3 files changed, 30 insertions(+) diff --git a/system-linux.c b/s

[PATCH 2/4] netifd: vxlan: refactor mapping of boolean attrs

2020-09-03 Thread Johannes Kimmel
Add a small function to handle boolean options and make use of it to handle: - rxcsum - txcsum Signed-off-by: Johannes Kimmel --- system-linux.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/system-linux.c b/system-linux.c index 5ff8749

[PATCH 3/4] netifd: vxlan: add most missing boolean options

2020-09-03 Thread Johannes Kimmel
xternal' option and according to the manpage, gpe depends on it. Signed-off-by: Johannes Kimmel --- system-linux.c | 12 +++- system.c | 6 ++ system.h | 6 ++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/system-linux.c b/system-linux.c index 88b

[PATCH 4/4] netifd: vxlan: add aging and maxaddress options

2020-09-03 Thread Johannes Kimmel
For both options the values can just be passed to the kernel. All unsigned values are accepted, thus no range checking required. Signed-off-by: Johannes Kimmel --- system-linux.c | 10 ++ system.c | 2 ++ system.h | 2 ++ 3 files changed, 14 insertions(+) diff --git a

[PATCH] octeon: disable edgerouter image

2020-10-29 Thread Johannes Kimmel
s was last confirmed on 2020-10-29. The description of this option states, that enabling it will possibly cause performance issues on other chips. Signed-off-by: Johannes Kimmel --- Full bootlog: U-Boot 2012.04.01 (UBNT Build Version: e200_002_80eda) (May 27 2019 - 06:34:56) Skipping PCIe port 0 B