[PATCH 0/3] pull request for net-next: batman-adv 2021-04-08

2021-04-08 Thread Simon Wunderlich
Hi Jakub, hi David, here is a little cleanup pull request of batman-adv to go into net-next. Please pull or let me know of any problem! Thank you, Simon The following changes since commit b1de0f01b0115575982cf24c88b35106449e9aa7: batman-adv: Use netif_rx_any_context(). (2021-02-13 18:0

[PATCH 2/3] batman-adv: Drop unused header preempt.h

2021-04-08 Thread Simon Wunderlich
From: Sven Eckelmann The commit b1de0f01b011 ("batman-adv: Use netif_rx_any_context().") removed the last user for a function declaration from linux/preempt.h. The include should therefore be cleaned up. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/

[PATCH 3/3] batman-adv: Fix misspelled "wont"

2021-04-08 Thread Simon Wunderlich
From: Sven Eckelmann checkpatch started to complain about the mispelling of: CHECK: 'wont' may be misspelled - perhaps 'won't'? #459: FILE: ./net/batman-adv/bat_iv_ogm.c:459: +* - the resulting packet wont be bigger than Signed-off-by: Sven Eckelmann Signed

[PATCH 1/3] batman-adv: Fix order of kernel doc in batadv_priv

2021-04-08 Thread Simon Wunderlich
Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/types.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index 7c0b475cc22a..2be5d4a712c5 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @

[PATCH 0/1] pull request for net-next: batman-adv 2021-03-12

2021-03-12 Thread Simon Wunderlich
Hi Jakub, hi David, this time we only have one patch in the pull request of batman-adv to go into net-next. Please pull or let me know of any problem! Thank you, Simon The following changes since commit 25d81f9307ffc166427d93152498f45178f5936a: batman-adv: Fix names for kernel-doc bloc

[PATCH 1/1] batman-adv: Use netif_rx_any_context().

2021-03-12 Thread Simon Wunderlich
: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bridge_loop_avoidance.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 360bdbf44748..bcd543ce835b 100644 --- a/net

[PATCH 2/4] batman-adv: Drop publication years from copyright info

2021-02-08 Thread Simon Wunderlich
a copyright year (for initial and last publication) in the files are chosen instead. More detailed information about the years can still be retrieved from the SCM system. Signed-off-by: Sven Eckelmann Acked-by: Marek Lindner Signed-off-by: Simon Wunderlich --- include/uapi/linux/batadv_packet.h

[PATCH 1/4] batman-adv: Start new development cycle

2021-02-08 Thread Simon Wunderlich
rting at 0). Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 288201630ceb..2486efe4ffa6 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7

[PATCH 4/4] batman-adv: Fix names for kernel-doc blocks

2021-02-08 Thread Simon Wunderlich
-by: Simon Wunderlich --- net/batman-adv/distributed-arp-table.c | 2 +- net/batman-adv/multicast.c | 2 +- net/batman-adv/netlink.c | 4 ++-- net/batman-adv/tp_meter.c | 2 +- net/batman-adv/types.h | 3 ++- 5 files changed, 7 insertions

[PATCH 3/4] batman-adv: Avoid sizeof on flexible structure

2021-02-08 Thread Simon Wunderlich
return the size of everything except the flexible member. But sparse will detect this kind of sizeof and warn with warning: using sizeof on a flexible structure This can be avoided by dropping the unused flexible member. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/

[PATCH 0/4] pull request for net-next: batman-adv 2021-02-08

2021-02-08 Thread Simon Wunderlich
-20210202) and includes the following patches: - Bump version strings, by Simon Wunderlich (added commit log) - Drop publication years from copyright info, by Sven Eckelmann (replaced the previous patch which updated copyright years, as per our discussion) - Avoid sizeof on flexible

[PATCH 1/4] batman-adv: Start new development cycle

2021-02-02 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 288201630ceb..2486efe4ffa6 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7 +13,7 @@ #define

[PATCH 2/4] batman-adv: Update copyright years for 2021

2021-02-02 Thread Simon Wunderlich
From: Sven Eckelmann Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batadv_packet.h | 2 +- include/uapi/linux/batman_adv.h| 2 +- net/batman-adv/Kconfig | 2 +- net/batman-adv/Makefile| 2 +- net/batman-adv

[PATCH 4/4] batman-adv: Fix names for kernel-doc blocks

2021-02-02 Thread Simon Wunderlich
-by: Simon Wunderlich --- net/batman-adv/distributed-arp-table.c | 2 +- net/batman-adv/multicast.c | 2 +- net/batman-adv/netlink.c | 4 ++-- net/batman-adv/tp_meter.c | 2 +- net/batman-adv/types.h | 3 ++- 5 files changed, 7 insertions

[PATCH 3/4] batman-adv: Avoid sizeof on flexible structure

2021-02-02 Thread Simon Wunderlich
return the size of everything except the flexible member. But sparse will detect this kind of sizeof and warn with warning: using sizeof on a flexible structure This can be avoided by dropping the unused flexible member. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/

[PATCH 0/4] pull request for net-next: batman-adv 2021-02-02

2021-02-02 Thread Simon Wunderlich
) This feature/cleanup patchset includes the following patches: - Bump version strings, by Simon Wunderlich - Update copyright years for 2021, by Sven Eckelmann - Avoid sizeof on flexible structure, by Sven Eckelmann - Fix names for kernel-doc blocks, by Sven Eckelmann

[PATCH 8/8] batman-adv: Drop unused soft-interface.h include in fragmentation.c

2020-12-04 Thread Simon Wunderlich
The commit 992b03b88e36 ("batman-adv: Don't always reallocate the fragmentation skb head") removed the last user of functions from soft-interface.h. Signed-off-by: Simon Wunderlich --- net/batman-adv/fragmentation.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH 7/8] batman-adv: Drop legacy code for auto deleting mesh interfaces

2020-12-04 Thread Simon Wunderlich
From: Sven Eckelmann The only way to automatically drop batadv mesh interfaces when all soft interfaces were removed was dropped with the sysfs support. It is no longer needed to have them handled by kernel anymore. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman

[PATCH 0/8] pull request for net-next: batman-adv 2020-12-04

2020-12-04 Thread Simon Wunderlich
de in fragmentation.c (2020-12-04 08:41:16 +0100) This cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - update include for min/max helpers, by Sven Eckelmann - add infrastructure and netlink func

[PATCH 6/8] batman-adv: Drop deprecated debugfs support

2020-12-04 Thread Simon Wunderlich
From: Sven Eckelmann The debugfs support in batman-adv was marked as deprecated by the commit 00caf6a2b318 ("batman-adv: Mark debugfs functionality as deprecated") and scheduled for removal in 2021. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-a

[PATCH 5/8] batman-adv: Drop deprecated sysfs support

2020-12-04 Thread Simon Wunderlich
From: Sven Eckelmann The sysfs in batman-adv support was marked as deprecated by the commit 42cdd521487f ("batman-adv: ABI: Mark sysfs files as deprecated") and scheduled for removal in 2021. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- .../ABI/obsolete/sysfs

[PATCH 4/8] batman-adv: Allow selection of routing algorithm over rtnetlink

2020-12-04 Thread Simon Wunderlich
lated. This also eases the integration of batadv devices inside tools like network-manager or systemd-networkd which are not expecting to operate on /sys before a new net_device is created. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h

[PATCH 1/8] batman-adv: Start new development cycle

2020-12-04 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index a47dc332d796..9254c6ee0c0a 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7 +13,7 @@ #define

[PATCH 2/8] batman-adv: Add new include for min/max helpers

2020-12-04 Thread Simon Wunderlich
From: Sven Eckelmann The commit b296a6d53339 ("kernel.h: split out min()/max() et al. helpers") moved the min/max helper functionality from kernel.h to minmax.h. Adjust the kernel code accordingly to avoid fragile indirect includes. Signed-off-by: Sven Eckelmann Signed-off-by: Simon

[PATCH 3/8] batman-adv: Prepare infrastructure for newlink settings

2020-12-04 Thread Simon Wunderlich
-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 20 + net/batman-adv/soft-interface.c | 39 + 2 files changed, 59 insertions(+) diff --git a/include/uapi/linux/batman_adv.h b/include/uapi/linux/batman_adv.h

[PATCH 0/3] pull request for net: batman-adv 2020-11-27

2020-11-27 Thread Simon Wunderlich
Hi David, hi Jakub, here are some more bugfixes for batman-adv which we would like to have integrated into net. Please pull or let me know of any problem! Thank you, Simon The following changes since commit 14a2e551faea53d45bc11629a9dac88f88950ca7: batman-adv: set .owner to THIS_MODUL

[PATCH 3/3] batman-adv: Don't always reallocate the fragmentation skb head

2020-11-27 Thread Simon Wunderlich
f-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/fragmentation.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/batman-adv/fragmentation.c b/net/batman-adv/fragmentation.c index 8de1fb567fd7..1f1f5b0873b2 100644 --- a/net/batman-adv/fragmentati

[PATCH 2/3] batman-adv: Reserve needed_*room for fragments

2020-11-27 Thread Simon Wunderlich
r than mtu") Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/fragmentation.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/net/batman-adv/fragmentation.c b/net/batman-adv/fragmentation.c index 9a47ef8b95c4..8de1fb567fd7 1

[PATCH 1/3] batman-adv: Consider fragmentation for needed_headroom

2020-11-27 Thread Simon Wunderlich
transmission through the various device layers. Fixes: 7bca68c7844b ("batman-adv: Add lower layer needed_(head|tail)room to own ones") Reported-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/hard-interface.c | 3 +++ 1 file changed, 3

[PATCH 0/1] pull request for net: batman-adv 2020-11-24

2020-11-24 Thread Simon Wunderlich
Hi David, hi Jakub, here is a bugfix for batman-adv which we would like to have integrated into net. Please pull or let me know of any problem! Thank you, Simon The following changes since commit f8394f232b1eab649ce2df5c5f15b0e528c92091: Linux 5.10-rc3 (2020-11-08 16:10:16 -0800) are

[PATCH 1/1] batman-adv: set .owner to THIS_MODULE

2020-11-24 Thread Simon Wunderlich
From: Taehee Yoo If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol") Signed-off-by: Taehee Yoo Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich

[PATCH 1/6] batman-adv: bla: fix type misuse for backbone_gw hash indexing

2020-09-18 Thread Simon Wunderlich
From: Linus Lüssing It seems that due to a copy & paste error the void pointer in batadv_choose_backbone_gw() is cast to the wrong type. Fixing this by using "struct batadv_bla_backbone_gw" instead of "struct batadv_bla_claim" which better matches the caller's side. For now it seems that we wer

[PATCH 5/6] batman-adv: mcast: fix duplicate mcast packets in BLA backbone from mesh

2020-09-18 Thread Simon Wunderlich
feature uses a simple, 3 address batman-adv unicast header. So let's use this to distinguish. Fixes: fe2da6ff27c7 ("batman-adv: check incoming packet type for bla") Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/

[PATCH 3/6] batman-adv: Add missing include for in_interrupt()

2020-09-18 Thread Simon Wunderlich
: use netif_rx_ni when not in interrupt context") Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bridge_loop_avoidance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidan

[PATCH 0/6] pull request for net: batman-adv 2020-09-18

2020-09-18 Thread Simon Wunderlich
Hi David, here are some late bugfixes which we would like to have integrated into net. Please pull or let me know of any problem! Thank you, Simon The following changes since commit 279e89b2281af3b1a9f04906e157992c19c9f163: batman-adv: bla: use netif_rx_ni when not in interrupt context

[PATCH 6/6] batman-adv: mcast: fix duplicate mcast packets from BLA backbone to mesh

2020-09-18 Thread Simon Wunderlich
ned-off-by: Simon Wunderlich --- net/batman-adv/bridge_loop_avoidance.c | 103 + 1 file changed, 87 insertions(+), 16 deletions(-) diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 68715783a742..c350ab63cd54 100644 --- a/net/

[PATCH 4/6] batman-adv: mcast: fix duplicate mcast packets in BLA backbone from LAN

2020-09-18 Thread Simon Wunderlich
es: 2d3f6ccc4ea5 ("batman-adv: Modified forwarding behaviour for multicast packets") Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/multicast.c | 46 ++--- net/batman-adv/multicast.h | 15 +

[PATCH 2/6] batman-adv: mcast/TT: fix wrongly dropped or rerouted packets

2020-09-18 Thread Simon Wunderlich
f-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/routing.c | 4 1 file changed, 4 insertions(+) diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 27cdf5e4349a..9e5c71e406ff 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c

[PATCH 0/5] pull request for net-next: batman-adv 2020-08-24

2020-08-24 Thread Simon Wunderlich
) This cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - Drop unused function batadv_hardif_remove_interfaces(), by Sven Eckelmann - delete duplicated words, by Randy Dunlap - Drop (even more) repeated words in comments, by Sven Eckelmann

[PATCH 5/5] batman-adv: Migrate to linux/prandom.h

2020-08-24 Thread Simon Wunderlich
From: Sven Eckelmann The commit c0842fbc1b18 ("random32: move the pseudo-random 32-bit definitions to prandom.h") introduced a new header for the pseudo random functions from (previously) linux/random.h. One future goal of the prandom.h change is to make code to switch just the new header file an

[PATCH 1/5] batman-adv: Start new development cycle

2020-08-24 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 0393bb9ed3d0..a47dc332d796 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7 +13,7 @@ #define

[PATCH 4/5] batman-adv: Drop repeated words in comments

2020-08-24 Thread Simon Wunderlich
From: Sven Eckelmann checkpatch found various instances of "Possible repeated word" in various comments. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bridge_loop_avoidance.c | 2 +- net/batman-adv/fragmentation.c | 2 +- net/batma

[PATCH 1/3] batman-adv: Avoid uninitialized chaddr when handling DHCP

2020-08-24 Thread Simon Wunderlich
with this uninitialized memory. Reported-by: syzbot+ab16e463b903f5a37...@syzkaller.appspotmail.com Fixes: 6c413b1c22a2 ("batman-adv: send every DHCP packet as bat-unicast") Signed-off-by: Sven Eckelmann Acked-by: Antonio Quartulli Signed-off-by: Simon Wunderlich --- net/batman-adv/

[PATCH 3/3] batman-adv: bla: use netif_rx_ni when not in interrupt context

2020-08-24 Thread Simon Wunderlich
quot;batman-adv: add basic bridge loop avoidance code") Signed-off-by: Jussi Kivilinna Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bridge_loop_avoidance.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/batman-adv/bridge_loo

[PATCH 2/3] batman-adv: Fix own OGM check in aggregated OGMs

2020-08-24 Thread Simon Wunderlich
ators logic") Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bat_v_ogm.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/batman-adv/bat_v_ogm.c b/net/batman-adv/bat_v_ogm.c index 0f

[PATCH 0/3] pull request for net: batman-adv 2020-08-24

2020-08-24 Thread Simon Wunderlich
Hi David, here are some bugfixes which we would like to have integrated into net. Please pull or let me know of any problem! Thank you, Simon The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git

[PATCH 2/5] batman-adv: Drop unused function batadv_hardif_remove_interfaces()

2020-08-24 Thread Simon Wunderlich
. This will trigger NETDEV_UNREGISTER events for all available interfaces and in this process remove all interfaces from batadv_hardif_list. And batadv_hardif_remove_interfaces only operated on this (empty) list. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv

[PATCH 3/5] batman-adv: types.h: delete duplicated words

2020-08-24 Thread Simon Wunderlich
From: Randy Dunlap Delete the doubled word "time" in a comment. Delete the doubled word "address" in a comment. Signed-off-by: Randy Dunlap Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/types.h | 4 ++-- 1 file changed, 2 insert

[PATCH 0/4] pull request for net-next: batman-adv 2020-06-26

2020-06-30 Thread Simon Wunderlich
) This feature/cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - update mailing list URL, by Sven Eckelmann - fix typos and grammar in documentation, by Sven Eckelmann - introduce a configurable per interface

[PATCH 3/4] batman-adv: Fix typos and grammar in documentation

2020-06-30 Thread Simon Wunderlich
From: Sven Eckelmann Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- Documentation/networking/batman-adv.rst | 6 +-- include/uapi/linux/batadv_packet.h | 50 - include/uapi/linux/batman_adv.h | 4 +- net/batman-adv/bat_iv_ogm.c

[PATCH 4/4] batman-adv: Introduce a configurable per interface hop penalty

2020-06-30 Thread Simon Wunderlich
-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 3 ++- net/batman-adv/bat_iv_ogm.c | 17 + net/batman-adv/bat_v_ogm.c | 13 ++--- net/batman-adv/hard-interface.c | 2 ++ net/batman-adv/netlink.c| 12

[PATCH 2/4] batman-adv: Switch mailing list subscription page

2020-06-30 Thread Simon Wunderlich
From: Sven Eckelmann The mailman installation on lists.open-mesh.org was switched from mailman2 to mailman3. The URL to the subscription webpage changed in this process. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- Documentation/networking/batman-adv.rst | 2 +- 1 file

[PATCH 1/4] batman-adv: Start new development cycle

2020-06-30 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 61d8dbe8c954..42b8d1e76dea 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7 +13,7 @@ #define

[PATCH 3/3] batman-adv: Revert "disable ethtool link speed detection when auto negotiation off"

2020-05-26 Thread Simon Wunderlich
s/configurations. The user can still overwrite them using the batadv_hardif's BATADV_ATTR_THROUGHPUT_OVERRIDE. Reported-by: Matthias Schiffer Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bat_v_elp.c | 15 +-- 1 file changed, 1 insertion(+)

[PATCH 0/3] pull request for net-next: batman-adv 2020-05-26

2020-05-26 Thread Simon Wunderlich
Hi David, here is a small cleanup pull request of batman-adv to go into net-next. Please pull or let me know of any problem! Thank you, Simon The following changes since commit 1a33e10e4a95cb109ff1145098175df3113313ef: net: partially revert dynamic lockdep key changes (2020-05-04 12:05

[PATCH 2/3] batman-adv: use rcu_replace_pointer() where appropriate

2020-05-26 Thread Simon Wunderlich
ce_pointer() where appropriate to make code slimer. Signed-off-by: Antonio Quartulli Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/gateway_client.c | 4 ++-- net/batman-adv/hard-interface.c | 4 ++-- net/batman-adv/routing.c| 4 ++-- 3 files changed, 6

[PATCH 1/3] batman-adv: Revert "Drop lockdep.h include for soft-interface.c"

2020-05-26 Thread Simon Wunderlich
soft-interface.c") which depends on the latter. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/soft-interface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 822af540b854..0ddd80130e

Re: [PATCH net] batman-adv: fix uninit-value in batadv_netlink_get_ifindex()

2019-08-16 Thread Simon Wunderlich
Hi David, yes, you will get it through me. I'll schedule a pull request next week. Cheers, Simon On Wednesday, August 14, 2019 6:36:25 PM CEST David Miller wrote: > From: Eric Dumazet > Date: Mon, 12 Aug 2019 04:57:27 -0700 > > > batadv_netlink_get_ifindex() needs to make sure user passe

[PATCH 02/10] batman-adv: Fix includes for *_MAX constants

2019-06-28 Thread Simon Wunderlich
From: Sven Eckelmann The commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN macros into ") moved the U32_MAX/INT_MAX/ULONG_MAX from linux/kernel.h to linux/limits.h. Adjust the includes accordingly. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/

[PATCH 01/10] batman-adv: Start new development cycle

2019-06-28 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index c59afcba31e0..11d051dbbda4 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7 +13,7 @@ #define

[PATCH 5/5] batman-adv: Fix genl notification for throughput_override

2019-03-28 Thread Simon Wunderlich
: 7e6f461efe25 ("batman-adv: Trigger genl notification on sysfs config change") Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/sysfs.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net/batman-adv/sysfs.c b/net/batman-adv/sys

[PATCH 00/21] pull request for net-next: batman-adv 2019-02-13

2019-02-13 Thread Simon Wunderlich
Hi David, here is another pull request for batman-adv to go into net-next. The main patchset is Svens netlink restructure series, which was also discussed on netdev for quite some time now and should be ready to be integrated. Please pull or let me know of any problem! Thank you, Simon Th

[PATCH 09/21] batman-adv: Add bonding mesh genl configuration

2019-02-13 Thread Simon Wunderlich
. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 6 ++ net/batman-adv/netlink.c| 11 +++ 2 files changed, 17

[PATCH 04/21] batman-adv: Prepare framework for mesh genl config

2019-02-13 Thread Simon Wunderlich
that settings might have been changed and what the current values are. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 16 +++- net/batman-adv/netlink.c| 160 2 files changed, 111 inserti

[PATCH 03/21] batman-adv: Move common genl doit code pre/post hooks

2019-02-13 Thread Simon Wunderlich
o simplify the code. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/netlink.c | 143 +-- 1 file changed, 100 insertions(+), 43 deletions(-) diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c index 5f

[PATCH 08/21] batman-adv: Add ap_isolation mesh/vlan genl configuration

2019-02-13 Thread Simon Wunderlich
using the u32 attributes BATADV_ATTR_ISOLATION_MARK and BATADV_ATTR_ISOLATION_MASK. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 19 + net/batman-adv/netlink.c| 89 + 2 files changed

[PATCH 18/21] batman-adv: Add orig_interval mesh genl configuration

2019-02-13 Thread Simon Wunderlich
attribute. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 6 ++ net/batman-adv/netlink.c| 17 + 2 files changed, 23 insertions(+) diff --git a/include/uapi/linux/batman_adv.h b/include/uapi/linux/batman_adv.h index

[PATCH 19/21] batman-adv: Add elp_interval hardif genl configuration

2019-02-13 Thread Simon Wunderlich
BATADV_ATTR_ELP_INTERVAL attribute. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 6 ++ net/batman-adv/netlink.c| 17 + 2 files changed, 23 insertions(+) diff --git a/include/uapi/linux/batman_adv.h b/include

[PATCH 21/21] batman-adv: Trigger genl notification on sysfs config change

2019-02-13 Thread Simon Wunderlich
the "config" multicast group. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/netlink.c | 10 net/batman-adv/netlink.h | 6 + net/batman-adv/sysfs.c | 63 +++- 3 files changed, 63 inserti

[PATCH 20/21] batman-adv: Add throughput_override hardif genl configuration

2019-02-13 Thread Simon Wunderlich
-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 8 net/batman-adv/netlink.c| 12 2 files changed, 20 insertions(+) diff --git a/include/uapi/linux/batman_adv.h b/include/uapi/linux/batman_adv.h index f966e497361b..305bf316dd03 100644 --- a/include/uapi

[PATCH 16/21] batman-adv: Add multicast forceflood mesh genl configuration

2019-02-13 Thread Simon Wunderlich
-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 9 + net/batman-adv/netlink.c| 15 +++ 2 files changed, 24 insertions(+) diff --git a/include/uapi/linux/batman_adv.h b/include/uapi/linux/batman_adv.h index 6d36e4b47eb4

[PATCH 17/21] batman-adv: Add network_coding mesh genl configuration

2019-02-13 Thread Simon Wunderlich
this feature using the BATADV_ATTR_NETWORK_CODING_ENABLED attribute. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 7 +++ net

[PATCH 10/21] batman-adv: Add bridge_loop_avoidance mesh genl configuration

2019-02-13 Thread Simon Wunderlich
configuration of this feature using the BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED attribute. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h

[PATCH 11/21] batman-adv: Add distributed_arp_table mesh genl configuration

2019-02-13 Thread Simon Wunderlich
BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED attribute. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 8 net/batman-adv/netlink.c| 17

[PATCH 07/21] batman-adv: Add aggregated_ogms mesh genl configuration

2019-02-13 Thread Simon Wunderlich
the u8 to zero will disable this feature and setting it to something else is enabling this feature. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 6 ++ net/batman-adv/netlink.c| 12 2 files changed, 18 insertions

[PATCH 13/21] batman-adv: Add gateway mesh genl configuration

2019-02-13 Thread Simon Wunderlich
feature using the attributes: * u8 BATADV_ATTR_GW_MODE (0 == off, 1 == client, 2 == server) * u32 BATADV_ATTR_GW_BANDWIDTH_DOWN (in 100 kbit/s steps) * u32 BATADV_ATTR_GW_BANDWIDTH_UP (in 100 kbit/s steps) * u32 BATADV_ATTR_GW_SEL_CLASS Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich

[PATCH 06/21] batman-adv: Prepare framework for vlan genl config

2019-02-13 Thread Simon Wunderlich
t;config" mcast group using the BATADV_CMD_SET_VLAN command message type that settings might have been changed and what the current values are. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 17 net/batman-adv/ne

[PATCH 15/21] batman-adv: Add log_level mesh genl configuration

2019-02-13 Thread Simon Wunderlich
) BATADV_ATTR_LOG_LEVEL attribute. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 6 ++ net/batman-adv/netlink.c| 17 + 2 files changed, 23 insertions(+) diff --git a/include/uapi/linux/batman_adv.h b/include/uapi/linux

[PATCH 14/21] batman-adv: Add hop_penalty mesh genl configuration

2019-02-13 Thread Simon Wunderlich
/BATADV_CMD_GET_MESH commands allow to set/get the configuration of this feature using the u8 BATADV_ATTR_HOP_PENALTY attribute. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 6 ++ net/batman-adv/netlink.c| 11 +++ 2 files

[PATCH 05/21] batman-adv: Prepare framework for hardif genl config

2019-02-13 Thread Simon Wunderlich
ings might have been changed and what the current values are. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 16 ++- net/batman-adv/netlink.c| 240 2 files changed, 233 insertions(+), 23 deleti

[PATCH 02/21] batman-adv: Fix typo "reseved" -> "reserved"

2019-02-13 Thread Simon Wunderlich
ude/uapi/linux/batadv_packet.h:232: + * @flags: reseved for routing relevant flags - currently always 0 Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batadv_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/b

[PATCH 01/21] batman-adv: fix memory leak in in batadv_dat_put_dhcp

2019-02-13 Thread Simon Wunderlich
: b61ec31c8575 ("batman-adv: Snoop DHCPACKs for DAT") Signed-off-by: Martin Weinelt [s...@narfation.org: add commit message] Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/distributed-arp-table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/

[PATCH 12/21] batman-adv: Add fragmentation mesh genl configuration

2019-02-13 Thread Simon Wunderlich
. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batman_adv.h | 7 +++ net/batman-adv/netlink.c| 12 2 files changed, 19

Re: [B.A.T.M.A.N.] [RFC v4 00/19] batman-adv: netlink restructuring, part 2

2019-02-05 Thread Simon Wunderlich
On Saturday, January 26, 2019 11:47:20 AM CET Sven Eckelmann wrote: > Aggregated OGM is currently defined as: > > > * according to batctl manpage: > > aggregation|ag [0|1] >If no parameter is given the current aggregation setting >is displayed. Otherwise the parameter

[PATCH 1/3] batman-adv: Start new development cycle

2019-02-01 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index b572066325e4..f3ef2c725a41 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -25,7 +25,7 @@ #define

[PATCH 2/3] batman-adv: Snoop DHCPACKs for DAT

2019-02-01 Thread Simon Wunderlich
reassigns an IP address to a new host. Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/distributed-arp-table.c | 399 + net/batman-adv/distributed-arp-table.h | 19 ++ net/batman-adv/routing.c

[PATCH 0/3] pull request for net-next: batman-adv 2019-02-01

2019-02-01 Thread Simon Wunderlich
years for 2019 (2019-01-04 11:04:24 +0100) This feature/cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - Add DHCPACKs for DAT snooping, by Linus Luessing - Update copyright years fo

[PATCH 3/3] batman-adv: Update copyright years for 2019

2019-02-01 Thread Simon Wunderlich
From: Sven Eckelmann Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- include/uapi/linux/batadv_packet.h | 2 +- include/uapi/linux/batman_adv.h| 2 +- net/batman-adv/Kconfig | 2 +- net/batman-adv/Makefile| 2 +- net/batman-adv

[PATCH 1/3] batman-adv: Avoid WARN on net_device without parent in netns

2019-02-01 Thread Simon Wunderlich
g any virtual device created on batman-adv as hard-interface") Reported-by: syzbot+c764de0fcfadca9a8...@syzkaller.appspotmail.com Reported-by: Dmitry Vyukov Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/hard-interface.c | 5 +++-- 1 file changed, 3 insert

[PATCH 3/3] batman-adv: release station info tidstats

2019-02-01 Thread Simon Wunderlich
fg80211: dynamically allocate per-tid stats for station info") [s...@narfation.org: add commit message] Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bat_v_elp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/batman-adv/bat_v_elp.c b/net/bat

[PATCH 2/3] batman-adv: Force mac header to start of data on xmit

2019-02-01 Thread Simon Wunderlich
v meshing protocol") Reported-by: syzbot+9d7405c7faa390e60...@syzkaller.appspotmail.com Reported-by: syzbot+7d20bc3f1c0f9...@syzkaller.appspotmail.com Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/soft-interface.c | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH 0/3] pull request for net: batman-adv 2019-02-01

2019-02-01 Thread Simon Wunderlich
Hi David, here are some bugfixes which we would like to see integrated into net. Please pull or let me know of any problem! Thank you, Simon The following changes since commit b71acb0e372160167bf6d5500b88b30b52ccef6e: Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/g

[PATCH 0/8] pull request for net-next: batman-adv 2017-05-24

2018-05-24 Thread Simon Wunderlich
) This feature/cleanup patchset includes the following patches: - bump version strings, by Simon Wunderlich - Disable batman-adv debugfs by default, by Sven Eckelmann - Improve handling mesh nodes with multicast optimizations disabled, by Linus Luessing

[PATCH 1/8] batman-adv: Start new development cycle

2018-05-24 Thread Simon Wunderlich
Signed-off-by: Simon Wunderlich --- net/batman-adv/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 057a28a9fe88..8da3c9336111 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -25,7 +25,7 @@ #define

[PATCH 2/8] batman-adv: Disable CONFIG_BATMAN_ADV_DEBUGFS by default

2018-05-24 Thread Simon Wunderlich
problems on most systems. It is still possible to enable it in case it is still required in a specific setup. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/batman-adv/Kconfig b

[PATCH 5/8] batman-adv: Remove unused dentry without DEBUGFS

2018-05-24 Thread Simon Wunderlich
From: Sven Eckelmann The debug_dir variable in the main structures is only accessed when CONFIG_BATMAN_ADV_DEBUGFS is enabled. It can be dropped to potentially save some bytes of memory. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/types.h | 6 ++ 1

[PATCH 7/8] batman-adv: disable ethtool link speed detection when auto negotiation off

2018-05-24 Thread Simon Wunderlich
stalled by virtual interfaces. The "default throughput" setting exported via sysfs still allows to configure the batman-adv throughput for the interface, thus disabling the measurements. Signed-off-by: Marek Lindner Acked-by: Antonio Quartulli Signed-off-by: Sven Eckelmann Signed-off-

[PATCH 6/8] batman-adv: fix batadv_interface_tx()'s return type

2018-05-24 Thread Simon Wunderlich
off-by: Luc Van Oostenryck [s...@narfation.org: fixed alignment] Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/soft-interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c in

[PATCH 4/8] batman-adv: Avoid bool in structures

2018-05-24 Thread Simon Wunderlich
From: Sven Eckelmann Using the bool type for structure member is considered inappropriate [1] for the kernel. Its size is not well defined (but usually 1 byte but maybe also 4 byte). [1] https://lkml.org/lkml/2017/11/21/384 Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich

[PATCH 8/8] batman-adv: enable B.A.T.M.A.N. V compilation by default

2018-05-24 Thread Simon Wunderlich
From: Marek Lindner Signed-off-by: Marek Lindner Acked-by: Antonio Quartulli Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig index

  1   2   3   4   5   >