On Tuesday, 27 October 2026 09:55:21 CET netdev-bot+sashiko@kernel.org wrote: > batman-adv: Close OGM aggregation before transmission > > This patch makes the OGM send worker mark the forwarding packet as a full > aggregate under forw_bat_list_lock before it calls batadv_iv_ogm_emit(). > After that, no other context can append OGMs while the packet is being > emitted and cloned. The packet stays on forw_bat_list so interface purging > can still find it. > > > diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c > > index 158d2b8f04036..85e99506a53f5 100644 > > --- a/net/batman-adv/bat_iv_ogm.c > > +++ b/net/batman-adv/bat_iv_ogm.c > > @@ -1909,6 +1909,11 @@ static void batadv_iv_send_outstanding_bat_ogm_packet(struct work_struct *work) > > goto out; > > } > > > > + /* Mark aggregate as full before forcing emit. */ > > + spin_lock_bh(&bat_priv->forw_bat_list_lock); > > + forw_packet->num_packets = BATADV_MAX_AGGREGATION_PACKETS; > > + spin_unlock_bh(&bat_priv->forw_bat_list_lock); > > [Severity: Low] > This isn't a bug, but should the kernel-doc for num_packets be updated > to match this new use? https://patchwork.open-mesh.org/project/b.a.t.m.a.n./patch/20261027-kdoc-num_packets-v1-1-1fa6d584b7b3@narfation.org/ Regards, Sven