aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-01-16 20:22:58 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-16 20:22:58 -0500
commit7dff08bbda1610697a350eeb7dcdc6177d229407 (patch)
tree9a3461334ac120776c48ac8fc428ca164c0a7bed /net/batman-adv
parentfb1d598d482d9fd448ea68895751bdfb8f29ee8e (diff)
parent1b371d13071d6b6b9dc7a00fe1bc5a6babd68a5b (diff)
Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge
Included change: - properly format already existing kerneldoc Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/bat_iv_ogm.c6
-rw-r--r--net/batman-adv/bridge_loop_avoidance.c24
-rw-r--r--net/batman-adv/translation-table.c8
-rw-r--r--net/batman-adv/types.h6
4 files changed, 31 insertions, 13 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 921ac20cf690..512159bf607f 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -598,7 +598,8 @@ out:
598 return res; 598 return res;
599} 599}
600 600
601/* batadv_iv_ogm_aggregate_new - create a new aggregated packet and add this 601/**
602 * batadv_iv_ogm_aggregate_new - create a new aggregated packet and add this
602 * packet to it. 603 * packet to it.
603 * @packet_buff: pointer to the OGM 604 * @packet_buff: pointer to the OGM
604 * @packet_len: (total) length of the OGM 605 * @packet_len: (total) length of the OGM
@@ -1745,7 +1746,8 @@ static int batadv_iv_ogm_receive(struct sk_buff *skb,
1745 return NET_RX_SUCCESS; 1746 return NET_RX_SUCCESS;
1746} 1747}
1747 1748
1748/* batadv_iv_ogm_orig_print_neigh - print neighbors for the originator table 1749/**
1750 * batadv_iv_ogm_orig_print_neigh - print neighbors for the originator table
1749 * @orig_node: the orig_node for which the neighbors are printed 1751 * @orig_node: the orig_node for which the neighbors are printed
1750 * @if_outgoing: outgoing interface for these entries 1752 * @if_outgoing: outgoing interface for these entries
1751 * @seq: debugfs table seq_file struct 1753 * @seq: debugfs table seq_file struct
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index 5c0eda48d7a2..05f0712be5e7 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -130,7 +130,9 @@ static void batadv_claim_free_ref(struct batadv_bla_claim *claim)
130 call_rcu(&claim->rcu, batadv_claim_free_rcu); 130 call_rcu(&claim->rcu, batadv_claim_free_rcu);
131} 131}
132 132
133/* @bat_priv: the bat priv with all the soft interface information 133/**
134 * batadv_claim_hash_find
135 * @bat_priv: the bat priv with all the soft interface information
134 * @data: search data (may be local/static data) 136 * @data: search data (may be local/static data)
135 * 137 *
136 * looks for a claim in the hash, and returns it if found 138 * looks for a claim in the hash, and returns it if found
@@ -449,7 +451,9 @@ batadv_bla_update_own_backbone_gw(struct batadv_priv *bat_priv,
449 batadv_backbone_gw_free_ref(backbone_gw); 451 batadv_backbone_gw_free_ref(backbone_gw);
450} 452}
451 453
452/* @bat_priv: the bat priv with all the soft interface information 454/**
455 * batadv_bla_answer_request - answer a bla request by sending own claims
456 * @bat_priv: the bat priv with all the soft interface information
453 * @vid: the vid where the request came on 457 * @vid: the vid where the request came on
454 * 458 *
455 * Repeat all of our own claims, and finally send an ANNOUNCE frame 459 * Repeat all of our own claims, and finally send an ANNOUNCE frame
@@ -495,7 +499,9 @@ static void batadv_bla_answer_request(struct batadv_priv *bat_priv,
495 batadv_backbone_gw_free_ref(backbone_gw); 499 batadv_backbone_gw_free_ref(backbone_gw);
496} 500}
497 501
498/* @backbone_gw: the backbone gateway from whom we are out of sync 502/**
503 * batadv_bla_send_request - send a request to repeat claims
504 * @backbone_gw: the backbone gateway from whom we are out of sync
499 * 505 *
500 * When the crc is wrong, ask the backbone gateway for a full table update. 506 * When the crc is wrong, ask the backbone gateway for a full table update.
501 * After the request, it will repeat all of his own claims and finally 507 * After the request, it will repeat all of his own claims and finally
@@ -520,7 +526,9 @@ static void batadv_bla_send_request(struct batadv_bla_backbone_gw *backbone_gw)
520 } 526 }
521} 527}
522 528
523/* @bat_priv: the bat priv with all the soft interface information 529/**
530 * batadv_bla_send_announce
531 * @bat_priv: the bat priv with all the soft interface information
524 * @backbone_gw: our backbone gateway which should be announced 532 * @backbone_gw: our backbone gateway which should be announced
525 * 533 *
526 * This function sends an announcement. It is called from multiple 534 * This function sends an announcement. It is called from multiple
@@ -844,7 +852,9 @@ static int batadv_check_claim_group(struct batadv_priv *bat_priv,
844} 852}
845 853
846 854
847/* @bat_priv: the bat priv with all the soft interface information 855/**
856 * batadv_bla_process_claim
857 * @bat_priv: the bat priv with all the soft interface information
848 * @skb: the frame to be checked 858 * @skb: the frame to be checked
849 * 859 *
850 * Check if this is a claim frame, and process it accordingly. 860 * Check if this is a claim frame, and process it accordingly.
@@ -1311,7 +1321,9 @@ out:
1311 1321
1312 1322
1313 1323
1314/* @bat_priv: the bat priv with all the soft interface information 1324/**
1325 * batadv_bla_is_backbone_gw_orig
1326 * @bat_priv: the bat priv with all the soft interface information
1315 * @orig: originator mac address 1327 * @orig: originator mac address
1316 * @vid: VLAN identifier 1328 * @vid: VLAN identifier
1317 * 1329 *
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index a6fb1ff25f50..b6071f675a3e 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -1382,7 +1382,8 @@ out:
1382 return ret; 1382 return ret;
1383} 1383}
1384 1384
1385/* batadv_transtable_best_orig - Get best originator list entry from tt entry 1385/**
1386 * batadv_transtable_best_orig - Get best originator list entry from tt entry
1386 * @bat_priv: the bat priv with all the soft interface information 1387 * @bat_priv: the bat priv with all the soft interface information
1387 * @tt_global_entry: global translation table entry to be analyzed 1388 * @tt_global_entry: global translation table entry to be analyzed
1388 * 1389 *
@@ -1426,8 +1427,9 @@ batadv_transtable_best_orig(struct batadv_priv *bat_priv,
1426 return best_entry; 1427 return best_entry;
1427} 1428}
1428 1429
1429/* batadv_tt_global_print_entry - print all orig nodes who announce the address 1430/**
1430 * for this global entry 1431 * batadv_tt_global_print_entry - print all orig nodes who announce the address
1432 * for this global entry
1431 * @bat_priv: the bat priv with all the soft interface information 1433 * @bat_priv: the bat priv with all the soft interface information
1432 * @tt_global_entry: global translation table entry to be printed 1434 * @tt_global_entry: global translation table entry to be printed
1433 * @seq: debugfs table seq_file struct 1435 * @seq: debugfs table seq_file struct
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index b53f90d85db9..78370ab31f9c 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -333,7 +333,8 @@ struct batadv_neigh_node {
333 struct rcu_head rcu; 333 struct rcu_head rcu;
334}; 334};
335 335
336/* struct batadv_neigh_node_bat_iv - neighbor information per outgoing 336/**
337 * struct batadv_neigh_node_bat_iv - neighbor information per outgoing
337 * interface for BATMAN IV 338 * interface for BATMAN IV
338 * @tq_recv: ring buffer of received TQ values from this neigh node 339 * @tq_recv: ring buffer of received TQ values from this neigh node
339 * @tq_index: ring buffer index 340 * @tq_index: ring buffer index
@@ -350,7 +351,8 @@ struct batadv_neigh_ifinfo_bat_iv {
350 uint8_t real_packet_count; 351 uint8_t real_packet_count;
351}; 352};
352 353
353/* struct batadv_neigh_ifinfo - neighbor information per outgoing interface 354/**
355 * struct batadv_neigh_ifinfo - neighbor information per outgoing interface
354 * @list: list node for batadv_neigh_node::ifinfo_list 356 * @list: list node for batadv_neigh_node::ifinfo_list
355 * @if_outgoing: pointer to outgoing hard interface 357 * @if_outgoing: pointer to outgoing hard interface
356 * @bat_iv: B.A.T.M.A.N. IV private structure 358 * @bat_iv: B.A.T.M.A.N. IV private structure