[PATCH batadv 3/3] batman-adv: correct batadv_recv_frag_packet() return kernel-doc

Sven Eckelmann <[email protected]> Fri, 12 Jun 2026 15:04:25 +0200
Newsgroups org.open-mesh.lists.batman
Message-ID <[email protected]>
The function batadv_recv_frag_packet() is always consuming the skb. The
NET_RX_DROP is only indicating whether there was direct visible problem
while processing it.

Signed-off-by: Sven Eckelmann <[email protected]>
---
 net/batman-adv/routing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 46ba1c47..b105f7b1 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -1091,7 +1091,7 @@ int batadv_recv_unicast_tvlv(struct sk_buff *skb,
  * the assembled packet will exceed our MTU; 2) Buffer fragment, if we still
  * lack further fragments; 3) Merge fragments, if we have all needed parts.
  *
- * Return: NET_RX_DROP if the skb is not consumed, NET_RX_SUCCESS otherwise.
+ * Return: NET_RX_SUCCESS on success or NET_RX_DROP in case of failure
  */
 int batadv_recv_frag_packet(struct sk_buff *skb,
 			    struct batadv_hard_iface *recv_if)

-- 
2.47.3