* [PATCH net-next 0/2] pull request for net-next: batman-adv 2025-10-24
@ 2025-10-24 9:23 Simon Wunderlich
2025-10-24 9:23 ` [PATCH net-next 1/2] batman-adv: Start new development cycle Simon Wunderlich
2025-10-24 9:23 ` [PATCH net-next 2/2] batman-adv: use skb_crc32c() instead of skb_seq_read() Simon Wunderlich
0 siblings, 2 replies; 6+ messages in thread
From: Simon Wunderlich @ 2025-10-24 9:23 UTC (permalink / raw)
To: kuba, davem; +Cc: netdev, b.a.t.m.a.n, Simon Wunderlich
Hi Jakub, hi David,
here is a 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 3a8660878839faadb4f1a6dd72c3179c1df56787:
Linux 6.18-rc1 (2025-10-12 13:42:36 -0700)
are available in the Git repository at:
https://git.open-mesh.org/linux-merge.git tags/batadv-next-pullrequest-20251024
for you to fetch changes up to ed5730f3f733659a4a023a5f1e767365fe341648:
batman-adv: use skb_crc32c() instead of skb_seq_read() (2025-10-17 16:30:43 +0200)
----------------------------------------------------------------
This cleanup patchset includes the following patches:
- bump version strings, by Simon Wunderlich
- use skb_crc32c() instead of skb_seq_read(), by Sven Eckelmann
----------------------------------------------------------------
Simon Wunderlich (1):
batman-adv: Start new development cycle
Sven Eckelmann (1):
batman-adv: use skb_crc32c() instead of skb_seq_read()
net/batman-adv/Kconfig | 1 +
net/batman-adv/bridge_loop_avoidance.c | 51 ++++++----------------------------
net/batman-adv/main.h | 2 +-
net/batman-adv/types.h | 2 +-
4 files changed, 11 insertions(+), 45 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH net-next 1/2] batman-adv: Start new development cycle 2025-10-24 9:23 [PATCH net-next 0/2] pull request for net-next: batman-adv 2025-10-24 Simon Wunderlich @ 2025-10-24 9:23 ` Simon Wunderlich 2025-10-28 1:20 ` patchwork-bot+netdevbpf 2025-10-24 9:23 ` [PATCH net-next 2/2] batman-adv: use skb_crc32c() instead of skb_seq_read() Simon Wunderlich 1 sibling, 1 reply; 6+ messages in thread From: Simon Wunderlich @ 2025-10-24 9:23 UTC (permalink / raw) To: kuba, davem; +Cc: netdev, b.a.t.m.a.n, Simon Wunderlich This version will contain all the (major or even only minor) changes for Linux 6.19. The version number isn't a semantic version number with major and minor information. It is just encoding the year of the expected publishing as Linux -rc1 and the number of published versions this year (starting at 0). Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> --- 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 2be1ac17acaa4..af230b017bc17 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7 +13,7 @@ #define BATADV_DRIVER_DEVICE "batman-adv" #ifndef BATADV_SOURCE_VERSION -#define BATADV_SOURCE_VERSION "2025.4" +#define BATADV_SOURCE_VERSION "2025.5" #endif /* B.A.T.M.A.N. parameters */ -- 2.47.3 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH net-next 1/2] batman-adv: Start new development cycle 2025-10-24 9:23 ` [PATCH net-next 1/2] batman-adv: Start new development cycle Simon Wunderlich @ 2025-10-28 1:20 ` patchwork-bot+netdevbpf 0 siblings, 0 replies; 6+ messages in thread From: patchwork-bot+netdevbpf @ 2025-10-28 1:20 UTC (permalink / raw) To: Simon Wunderlich; +Cc: kuba, davem, netdev, b.a.t.m.a.n Hello: This series was applied to netdev/net-next.git (main) by Simon Wunderlich <sw@simonwunderlich.de>: On Fri, 24 Oct 2025 11:23:14 +0200 you wrote: > This version will contain all the (major or even only minor) changes for > Linux 6.19. > > The version number isn't a semantic version number with major and minor > information. It is just encoding the year of the expected publishing as > Linux -rc1 and the number of published versions this year (starting at 0). > > [...] Here is the summary with links: - [net-next,1/2] batman-adv: Start new development cycle https://git.kernel.org/netdev/net-next/c/e5ae07b2ef86 - [net-next,2/2] batman-adv: use skb_crc32c() instead of skb_seq_read() https://git.kernel.org/netdev/net-next/c/ed5730f3f733 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH net-next 2/2] batman-adv: use skb_crc32c() instead of skb_seq_read() 2025-10-24 9:23 [PATCH net-next 0/2] pull request for net-next: batman-adv 2025-10-24 Simon Wunderlich 2025-10-24 9:23 ` [PATCH net-next 1/2] batman-adv: Start new development cycle Simon Wunderlich @ 2025-10-24 9:23 ` Simon Wunderlich 1 sibling, 0 replies; 6+ messages in thread From: Simon Wunderlich @ 2025-10-24 9:23 UTC (permalink / raw) To: kuba, davem Cc: netdev, b.a.t.m.a.n, Sven Eckelmann, Eric Biggers, Simon Wunderlich From: Sven Eckelmann <sven@narfation.org> Make batadv_bla_check_duplist() just use the new function skb_crc32c(), instead of calling skb_seq_read() with crc32c(). This is faster and simpler. Suggested-by: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> --- net/batman-adv/Kconfig | 1 + net/batman-adv/bridge_loop_avoidance.c | 51 ++++---------------------- net/batman-adv/types.h | 2 +- 3 files changed, 10 insertions(+), 44 deletions(-) diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig index c299e2bc87eda..58c408b7a7d9c 100644 --- a/net/batman-adv/Kconfig +++ b/net/batman-adv/Kconfig @@ -35,6 +35,7 @@ config BATMAN_ADV_BLA bool "Bridge Loop Avoidance" depends on BATMAN_ADV && INET select CRC16 + select NET_CRC32C default y help This option enables BLA (Bridge Loop Avoidance), a mechanism diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index b992ba12aa247..3dc791c15bf72 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -12,7 +12,6 @@ #include <linux/compiler.h> #include <linux/container_of.h> #include <linux/crc16.h> -#include <linux/crc32.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/etherdevice.h> @@ -1585,45 +1584,11 @@ int batadv_bla_init(struct batadv_priv *bat_priv) return 0; } -/** - * batadv_skb_crc32() - calculate CRC32 of the whole packet and skip bytes in - * the header - * @skb: skb pointing to fragmented socket buffers - * @payload_ptr: Pointer to position inside the head buffer of the skb - * marking the start of the data to be CRC'ed - * - * payload_ptr must always point to an address in the skb head buffer and not to - * a fragment. - * - * Return: big endian crc32c of the checksummed data - */ -static __be32 batadv_skb_crc32(struct sk_buff *skb, u8 *payload_ptr) -{ - unsigned int to = skb->len; - unsigned int consumed = 0; - struct skb_seq_state st; - unsigned int from; - unsigned int len; - const u8 *data; - u32 crc = 0; - - from = (unsigned int)(payload_ptr - skb->data); - - skb_prepare_seq_read(skb, from, to, &st); - while ((len = skb_seq_read(consumed, &data, &st)) != 0) { - crc = crc32c(crc, data, len); - consumed += len; - } - - return htonl(crc); -} - /** * batadv_bla_check_duplist() - Check if a frame is in the broadcast dup. * @bat_priv: the bat priv with all the mesh interface information * @skb: contains the multicast packet to be checked - * @payload_ptr: pointer to position inside the head buffer of the skb - * marking the start of the data to be CRC'ed + * @payload_offset: offset in the skb, marking the start of the data to be CRC'ed * @orig: originator mac address, NULL if unknown * * Check if it is on our broadcast list. Another gateway might have sent the @@ -1638,16 +1603,18 @@ static __be32 batadv_skb_crc32(struct sk_buff *skb, u8 *payload_ptr) * Return: true if a packet is in the duplicate list, false otherwise. */ static bool batadv_bla_check_duplist(struct batadv_priv *bat_priv, - struct sk_buff *skb, u8 *payload_ptr, + struct sk_buff *skb, int payload_offset, const u8 *orig) { struct batadv_bcast_duplist_entry *entry; bool ret = false; + int payload_len; int i, curr; - __be32 crc; + u32 crc; /* calculate the crc ... */ - crc = batadv_skb_crc32(skb, payload_ptr); + payload_len = skb->len - payload_offset; + crc = skb_crc32c(skb, payload_offset, payload_len, 0); spin_lock_bh(&bat_priv->bla.bcast_duplist_lock); @@ -1727,7 +1694,7 @@ static bool batadv_bla_check_duplist(struct batadv_priv *bat_priv, static bool batadv_bla_check_ucast_duplist(struct batadv_priv *bat_priv, struct sk_buff *skb) { - return batadv_bla_check_duplist(bat_priv, skb, (u8 *)skb->data, NULL); + return batadv_bla_check_duplist(bat_priv, skb, 0, NULL); } /** @@ -1745,12 +1712,10 @@ bool batadv_bla_check_bcast_duplist(struct batadv_priv *bat_priv, struct sk_buff *skb) { struct batadv_bcast_packet *bcast_packet; - u8 *payload_ptr; bcast_packet = (struct batadv_bcast_packet *)skb->data; - payload_ptr = (u8 *)(bcast_packet + 1); - return batadv_bla_check_duplist(bat_priv, skb, payload_ptr, + return batadv_bla_check_duplist(bat_priv, skb, sizeof(*bcast_packet), bcast_packet->orig); } diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index ae1d7a8dc480f..8fc5fe0e9b053 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -734,7 +734,7 @@ struct batadv_bcast_duplist_entry { u8 orig[ETH_ALEN]; /** @crc: crc32 checksum of broadcast payload */ - __be32 crc; + u32 crc; /** @entrytime: time when the broadcast packet was received */ unsigned long entrytime; -- 2.47.3 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH net-next 0/2] pull request for net-next: batman-adv 2025-07-10
@ 2025-07-10 16:44 Simon Wunderlich
2025-07-10 16:45 ` [PATCH net-next 1/2] batman-adv: Start new development cycle Simon Wunderlich
0 siblings, 1 reply; 6+ messages in thread
From: Simon Wunderlich @ 2025-07-10 16:44 UTC (permalink / raw)
To: kuba, davem; +Cc: netdev, b.a.t.m.a.n, Simon Wunderlich
Hi Jakub, 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 90b83efa6701656e02c86e7df2cb1765ea602d07:
Merge tag 'bpf-next-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (2025-05-28 15:52:42 -0700)
are available in the Git repository at:
git://git.open-mesh.org/linux-merge.git tags/batadv-next-pullrequest-20250710
for you to fetch changes up to 7dc284702bcd065a822a4c0bdbca09a08de5a654:
batman-adv: store hard_iface as iflink private data (2025-05-31 10:41:11 +0200)
----------------------------------------------------------------
This cleanup patchset includes the following patches:
- bump version strings, by Simon Wunderlich
- batman-adv: store hard_iface as iflink private data,
by Matthias Schiffer
----------------------------------------------------------------
Matthias Schiffer (1):
batman-adv: store hard_iface as iflink private data
Simon Wunderlich (1):
batman-adv: Start new development cycle
net/batman-adv/bat_algo.c | 1 +
net/batman-adv/bat_algo.h | 2 --
net/batman-adv/bat_iv_ogm.c | 25 ++++++++-----------------
net/batman-adv/bat_v.c | 6 ++----
net/batman-adv/bat_v_elp.c | 8 ++------
net/batman-adv/bat_v_ogm.c | 14 ++++----------
net/batman-adv/hard-interface.c | 39 ++++++++++++++-------------------------
net/batman-adv/main.c | 7 ++-----
net/batman-adv/main.h | 2 +-
net/batman-adv/mesh-interface.c | 6 +++---
net/batman-adv/multicast.c | 6 ++----
net/batman-adv/netlink.c | 7 ++-----
net/batman-adv/originator.c | 7 ++-----
net/batman-adv/send.c | 7 ++-----
14 files changed, 45 insertions(+), 92 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH net-next 1/2] batman-adv: Start new development cycle 2025-07-10 16:44 [PATCH net-next 0/2] pull request for net-next: batman-adv 2025-07-10 Simon Wunderlich @ 2025-07-10 16:45 ` Simon Wunderlich 2025-07-12 1:00 ` patchwork-bot+netdevbpf 0 siblings, 1 reply; 6+ messages in thread From: Simon Wunderlich @ 2025-07-10 16:45 UTC (permalink / raw) To: kuba, davem; +Cc: netdev, b.a.t.m.a.n, Simon Wunderlich This version will contain all the (major or even only minor) changes for Linux 6.17. The version number isn't a semantic version number with major and minor information. It is just encoding the year of the expected publishing as Linux -rc1 and the number of published versions this year (starting at 0). Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> --- 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 692109be2210..1481eb2bacee 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -13,7 +13,7 @@ #define BATADV_DRIVER_DEVICE "batman-adv" #ifndef BATADV_SOURCE_VERSION -#define BATADV_SOURCE_VERSION "2025.2" +#define BATADV_SOURCE_VERSION "2025.3" #endif /* B.A.T.M.A.N. parameters */ -- 2.39.5 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH net-next 1/2] batman-adv: Start new development cycle 2025-07-10 16:45 ` [PATCH net-next 1/2] batman-adv: Start new development cycle Simon Wunderlich @ 2025-07-12 1:00 ` patchwork-bot+netdevbpf 0 siblings, 0 replies; 6+ messages in thread From: patchwork-bot+netdevbpf @ 2025-07-12 1:00 UTC (permalink / raw) To: Simon Wunderlich; +Cc: kuba, davem, netdev, b.a.t.m.a.n Hello: This series was applied to netdev/net-next.git (main) by Simon Wunderlich <sw@simonwunderlich.de>: On Thu, 10 Jul 2025 18:45:00 +0200 you wrote: > This version will contain all the (major or even only minor) changes for > Linux 6.17. > > The version number isn't a semantic version number with major and minor > information. It is just encoding the year of the expected publishing as > Linux -rc1 and the number of published versions this year (starting at 0). > > [...] Here is the summary with links: - [net-next,1/2] batman-adv: Start new development cycle https://git.kernel.org/netdev/net-next/c/2b05db6b8a10 - [net-next,2/2] batman-adv: store hard_iface as iflink private data https://git.kernel.org/netdev/net-next/c/7dc284702bcd You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-10-28 1:20 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-10-24 9:23 [PATCH net-next 0/2] pull request for net-next: batman-adv 2025-10-24 Simon Wunderlich 2025-10-24 9:23 ` [PATCH net-next 1/2] batman-adv: Start new development cycle Simon Wunderlich 2025-10-28 1:20 ` patchwork-bot+netdevbpf 2025-10-24 9:23 ` [PATCH net-next 2/2] batman-adv: use skb_crc32c() instead of skb_seq_read() Simon Wunderlich -- strict thread matches above, loose matches on Subject: below -- 2025-07-10 16:44 [PATCH net-next 0/2] pull request for net-next: batman-adv 2025-07-10 Simon Wunderlich 2025-07-10 16:45 ` [PATCH net-next 1/2] batman-adv: Start new development cycle Simon Wunderlich 2025-07-12 1:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).