Repository : ssh://git@open-mesh.org/alfred
On branch : master
>---------------------------------------------------------------
commit 20fb7a66a576bac25d216a24b6dfea8bdbb214fb
Author: Sven Eckelmann <sven.eckelmann(a)openmesh.com>
Date: Wed May 24 12:32:08 2017 +0200
alfred: Only query tq of remote master in slave mode
The querying of the originator mac address and tq values of the orignator
address takes significant amount of time. It is therefore better to avoid
the TQ retrieval code when possible.
The TQ will not be used in master mode and it can therefore be skipped
together with the code which tries to find the new best server.
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)openmesh.com>
Signed-off-by: Simon Wunderlich <simon.wunderlich(a)openmesh.com>
>---------------------------------------------------------------
20fb7a66a576bac25d216a24b6dfea8bdbb214fb
recv.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/recv.c b/recv.c
index 3fd964d..8aa512d 100644
--- a/recv.c
+++ b/recv.c
@@ -304,6 +304,13 @@ process_alfred_announce_master(struct globals *globals,
}
clock_gettime(CLOCK_MONOTONIC, &server->last_seen);
+
+ /* TQ is not used for master sync mode */
+ if (globals->opmode == OPMODE_MASTER) {
+ server->tq = 0;
+ return 0;
+ }
+
if (strcmp(globals->mesh_iface, "none") != 0) {
macaddr = translate_mac(globals->mesh_iface,
(struct ether_addr *)&server->hwaddr);
@@ -315,8 +322,7 @@ process_alfred_announce_master(struct globals *globals,
server->tq = 255;
}
- if (globals->opmode == OPMODE_SLAVE)
- set_best_server(globals);
+ set_best_server(globals);
return 0;
}
The annotated tag, v4.12-rc3 has been created
at 992074ed78d9b1a05d18c656fa16b51f4d25005e (tag)
tagging 5ed02dbb497422bf225783f46e6eadd237d23d6b (commit)
replaces v4.12-rc2
tagged by Linus Torvalds
on Sun May 28 17:20:59 2017 -0700
- Shortlog ------------------------------------------------------------
Linux 4.12-rc3
-----BEGIN PGP SIGNATURE-----
iQEcBAABAgAGBQJZK2lrAAoJEHm+PkMAQRiGm3AH/13F1DlIk05aSXHoDr/idIpR
GMHmk3YF+EuFjsL463Sh6s/SSWmz0Lda8euaoB4wCWvQFX2ZjTE+aOd79XlRiZJQ
OTtLkV9I41eXIJUpEOHia7xZiCsbw+usqcHrm1aBoSh5KKV2iQmEOrnJdibqJVOF
eXUMphNK/zFtAd2bKtQSxkaBnOOqsQUgVQSkr2K9rSg25l0KokFC6c5K5IjLn4x9
QgDY4wmMvHrDz0CtpoqlNM4XqbsDJVrFeZGfg6hlMqSRDeXeg4h3Ol0VfIT496RP
QBdrDb6hWO+HKt9B0M+7Q+8a/Fsw+5dtpqv1W/Wlr0i4CS6euU8NChAmrpkrqGo=
=m5ba
-----END PGP SIGNATURE-----
-----------------------------------------------------------------------
--
linux integration
Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
>---------------------------------------------------------------
commit 82f2fa5b637dad468f79f6357173683fac4c1a35
Author: Markus Elfring <elfring(a)users.sourceforge.net>
Date: Sat May 6 17:57:36 2017 +0200
batman-adv: Combine two seq_puts() calls into one call in batadv_nc_nodes_seq_print_text()
A bit of text was put into a sequence by two separate function calls.
Print the same data by a single function call instead.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring(a)users.sourceforge.net>
Signed-off-by: Sven Eckelmann <sven(a)narfation.org>
>---------------------------------------------------------------
82f2fa5b637dad468f79f6357173683fac4c1a35
net/batman-adv/network-coding.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
index e1f6fc7..3604d78 100644
--- a/net/batman-adv/network-coding.c
+++ b/net/batman-adv/network-coding.c
@@ -1935,9 +1935,7 @@ int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset)
list)
seq_printf(seq, "%pM ",
nc_node->addr);
- seq_puts(seq, "\n");
-
- seq_puts(seq, " Outgoing: ");
+ seq_puts(seq, "\n Outgoing: ");
/* For out_nc_node to this orig_node */
list_for_each_entry_rcu(nc_node,
&orig_node->out_coding_list,