projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e54c77f
)
batman-adv: do not print orig nodes without nc neighbors on nc table print
author
Marek Lindner
<
[email protected]
>
Wed, 17 Apr 2013 20:56:03 +0000
(
04:56
+0800)
committer
Antonio Quartulli
<
[email protected]
>
Wed, 29 May 2013 00:44:55 +0000
(
02:44
+0200)
Signed-off-by: Marek Lindner <
[email protected]
>
Signed-off-by: Antonio Quartulli <
[email protected]
>
net/batman-adv/network-coding.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/network-coding.c
b/net/batman-adv/network-coding.c
index 0787a34609b9aca97f4e5a028d33ab4deebf77a6..22cd51fea7306e7d3045546669ea4760131f8665 100644
(file)
--- a/
net/batman-adv/network-coding.c
+++ b/
net/batman-adv/network-coding.c
@@
-1763,6
+1763,13
@@
int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset)
/* For each orig_node in this bin */
rcu_read_lock();
hlist_for_each_entry_rcu(orig_node, head, hash_entry) {
+ /* no need to print the orig node if it does not have
+ * network coding neighbors
+ */
+ if (list_empty(&orig_node->in_coding_list) &&
+ list_empty(&orig_node->out_coding_list))
+ continue;
+
seq_printf(seq, "Node: %pM\n", orig_node->orig);
seq_puts(seq, " Ingoing: ");