batman-adv: add kerneldoc for batadv_iv_ogm_aggr_packet
authorSimon Wunderlich <simon@open-mesh.com>
Mon, 23 Nov 2015 18:57:21 +0000 (19:57 +0100)
committerAntonio Quartulli <a@unstable.cc>
Tue, 2 Feb 2016 04:55:09 +0000 (12:55 +0800)
Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/bat_iv_ogm.c

index a6d389b..7377313 100644 (file)
@@ -396,7 +396,14 @@ static u8 batadv_hop_penalty(u8 tq, const struct batadv_priv *bat_priv)
        return new_tq;
 }
 
-/* is there another aggregated packet here? */
+/**
+ * batadv_iv_ogm_aggr_packet - checks if there is another OGM attached
+ * @buff_pos: current position in the skb
+ * @packet_len: total length of the skb
+ * @tvlv_len: tvlv length of the previously considered OGM
+ *
+ * Return: true if there is enough space for another OGM, false otherwise.
+ */
 static bool batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len,
                                      __be16 tvlv_len)
 {