b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19
@ 2016-11-19 11:06 Simon Wunderlich
  2016-11-19 11:06 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Revert "fix splat on disabling an interface" Simon Wunderlich
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Simon Wunderlich @ 2016-11-19 11:06 UTC (permalink / raw)
  To: davem; +Cc: netdev, b.a.t.m.a.n

Hi David,

here are some bugfix patches which we would like to have integrated
into net.

Please pull or let me know of any problem!

Thank you,
      Simon

The following changes since commit 9799c50372b23ed774791bdb87d700f1286ee8a9:

  batman-adv: fix splat on disabling an interface (2016-10-21 14:47:02 +0200)

are available in the git repository at:

  git://git.open-mesh.org/linux-merge.git tags/batadv-net-for-davem-20161119

for you to fetch changes up to e13258f38e927b61cdb5f4ad25309450d3b127d1:

  batman-adv: Detect missing primaryif during tp_send as error (2016-11-04 12:27:39 +0100)

----------------------------------------------------------------
Here are two batman-adv bugfix patches:

 - Revert a splat on disabling interface which created another problem,
   by Sven Eckelmann

 - Fix error handling when the primary interface disappears during a
   throughput meter test, by Sven Eckelmann

----------------------------------------------------------------
Sven Eckelmann (2):
      batman-adv: Revert "fix splat on disabling an interface"
      batman-adv: Detect missing primaryif during tp_send as error

 net/batman-adv/hard-interface.c | 1 +
 net/batman-adv/tp_meter.c       | 1 +
 2 files changed, 2 insertions(+)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Revert "fix splat on disabling an interface"
  2016-11-19 11:06 [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19 Simon Wunderlich
@ 2016-11-19 11:06 ` Simon Wunderlich
  2016-11-19 11:06 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Detect missing primaryif during tp_send as error Simon Wunderlich
  2016-11-19 16:21 ` [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19 David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Wunderlich @ 2016-11-19 11:06 UTC (permalink / raw)
  To: davem; +Cc: netdev, b.a.t.m.a.n

From: Sven Eckelmann <sven@narfation.org>

The commit 9799c50372b2 ("batman-adv: fix splat on disabling an interface")
fixed a warning but at the same time broke the rtnl function add_slave for
devices which were temporarily removed.

batadv_softif_slave_add requires soft_iface of and hard_iface to be NULL
before it is allowed to be enslaved. But this resetting of soft_iface to
NULL in batadv_hardif_disable_interface was removed with the aforementioned
commit.

Reported-by: Julian Labus <julian@freifunk-rtk.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Acked-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
---
 net/batman-adv/hard-interface.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index e034afb..08ce361 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -652,6 +652,7 @@ void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface,
 			batadv_softif_destroy_sysfs(hard_iface->soft_iface);
 	}
 
+	hard_iface->soft_iface = NULL;
 	batadv_hardif_put(hard_iface);
 
 out:
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Detect missing primaryif during tp_send as error
  2016-11-19 11:06 [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19 Simon Wunderlich
  2016-11-19 11:06 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Revert "fix splat on disabling an interface" Simon Wunderlich
@ 2016-11-19 11:06 ` Simon Wunderlich
  2016-11-19 16:21 ` [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19 David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Wunderlich @ 2016-11-19 11:06 UTC (permalink / raw)
  To: davem; +Cc: netdev, b.a.t.m.a.n

From: Sven Eckelmann <sven@narfation.org>

The throughput meter detects different situations as problems for the
current test. It stops the test after these and reports it to userspace.
This also has to be done when the primary interface disappeared during the
test.

Fixes: 33a3bb4a3345 ("batman-adv: throughput meter implementation")
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
---
 net/batman-adv/tp_meter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/batman-adv/tp_meter.c b/net/batman-adv/tp_meter.c
index 2333777..8af1611 100644
--- a/net/batman-adv/tp_meter.c
+++ b/net/batman-adv/tp_meter.c
@@ -837,6 +837,7 @@ static int batadv_tp_send(void *arg)
 	primary_if = batadv_primary_if_get_selected(bat_priv);
 	if (unlikely(!primary_if)) {
 		err = BATADV_TP_REASON_DST_UNREACHABLE;
+		tp_vars->reason = err;
 		goto out;
 	}
 
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19
  2016-11-19 11:06 [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19 Simon Wunderlich
  2016-11-19 11:06 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Revert "fix splat on disabling an interface" Simon Wunderlich
  2016-11-19 11:06 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Detect missing primaryif during tp_send as error Simon Wunderlich
@ 2016-11-19 16:21 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2016-11-19 16:21 UTC (permalink / raw)
  To: sw; +Cc: netdev, b.a.t.m.a.n

From: Simon Wunderlich <sw@simonwunderlich.de>
Date: Sat, 19 Nov 2016 12:06:12 +0100

> here are some bugfix patches which we would like to have integrated
> into net.
> 
> Please pull or let me know of any problem!

Pulled.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-19 16:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-19 11:06 [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19 Simon Wunderlich
2016-11-19 11:06 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Revert "fix splat on disabling an interface" Simon Wunderlich
2016-11-19 11:06 ` [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Detect missing primaryif during tp_send as error Simon Wunderlich
2016-11-19 16:21 ` [B.A.T.M.A.N.] [PATCH 0/2] pull request for net: batman-adv 2016-11-19 David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).