Skip to content

Commit

Permalink
batman-adv: Detect missing primaryif during tp_send as error
Browse files Browse the repository at this point in the history
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: 33a3bb4 ("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>
  • Loading branch information
Sven Eckelmann authored and Simon Wunderlich committed Nov 4, 2016
1 parent 27915aa commit e13258f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/batman-adv/tp_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e13258f

Please sign in to comment.