All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] batman-adv: Return hna count on local buffer fill
@ 2010-12-19 19:28 Sven Eckelmann
  2010-12-20 18:32 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Eckelmann @ 2010-12-19 19:28 UTC (permalink / raw)
  To: davem; +Cc: netdev, Sven Eckelmann

hna_local_fill_buffer must return the number of added hna entries and
not the last checked hash bucket.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
This patch is for net-next-2.6

 net/batman-adv/translation-table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index a19e16c..a633b5a4 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -162,7 +162,7 @@ int hna_local_fill_buffer(struct bat_priv *bat_priv,
 		atomic_set(&bat_priv->hna_local_changed, 0);
 
 	spin_unlock_bh(&bat_priv->hna_lhash_lock);
-	return i;
+	return count;
 }
 
 int hna_local_seq_print_text(struct seq_file *seq, void *offset)
-- 
1.7.2.3


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

* Re: [PATCH] batman-adv: Return hna count on local buffer fill
  2010-12-19 19:28 [PATCH] batman-adv: Return hna count on local buffer fill Sven Eckelmann
@ 2010-12-20 18:32 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-12-20 18:32 UTC (permalink / raw)
  To: sven; +Cc: netdev

From: Sven Eckelmann <sven@narfation.org>
Date: Sun, 19 Dec 2010 20:28:10 +0100

> hna_local_fill_buffer must return the number of added hna entries and
> not the last checked hash bucket.
> 
> Signed-off-by: Sven Eckelmann <sven@narfation.org>

Applied.

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

end of thread, other threads:[~2010-12-20 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-19 19:28 [PATCH] batman-adv: Return hna count on local buffer fill Sven Eckelmann
2010-12-20 18:32 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.