[B.A.T.M.A.N.] [PATCH 2/4] batctl: Use socket in debugfs instead of batman-adv device

2010-05-19 Thread Sven Eckelmann
to access a batman file in debugfs, we have to search for the mountpoint in /proc/mounts and maybe mount it manually in /sys/kernel/debug. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- Please apply on top of batctl-0.2.x branch. Makefile |4 +- debugfs.c| 269

[B.A.T.M.A.N.] [PATCH 3/4] batman-adv: Move tables from sysfs to debugfs

2010-05-19 Thread Sven Eckelmann
Files which represent more than a single attribute aren't allowed in sysfs. As we have some files which aren't essential and are lists or tables aggregated from data from different places inside batman-adv, we must place them in a filesystem without such a restriction. Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCH 4/4] batctl: Get tables from debugfs instead of sysfs

2010-05-19 Thread Sven Eckelmann
batctl must read the tables exported by batman-adv from debugfs as the old files in /sys/class/net/bat0/mesh/ were removed to follow the sysfs guidelines. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- Please apply on top of batctl-0.2.x branch. Makefile |4 +- debug.c | 103

Re: [B.A.T.M.A.N.] [PATCHv2] batctl: Correct mdev calculation in ping subcommand

2010-05-20 Thread Sven Eckelmann
. Signed-off-by: Daniel Seither p...@tiwoc.de Acked-by: Sven Eckelmann sven.eckelm...@gmx.de Thanks a lot for your contributions, Sven signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] [PATCHv2] batctl: Correct mdev calculation in ping subcommand

2010-05-20 Thread Sven Eckelmann
Daniel Seither wrote: Am 20.05.2010 19:00, schrieb Sven Eckelmann: Sven Eckelmann wrote: Ok, have a small suggestion. Please check that mdev - ... is positive. Otherwise we would have something like (mdev - avg * avg == -0.000., sqrt(...) == NaN): PING 02:00:00:00:00:02 (02:00:00

Re: [B.A.T.M.A.N.] [PATCHv3] batctl: Correct mdev calculation in ping subcommand

2010-05-21 Thread Sven Eckelmann
. Signed-off-by: Daniel Seither p...@tiwoc.de Thanks for the adjustment. :) Acked-by: Sven Eckelmann sven.eckelm...@gmx.de Best regards, Sven signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] sysfs debugfs

2010-05-22 Thread Sven Eckelmann
Andrew Lunn wrote: @Andrew: I attached the revised sysfs ABI files. Do you think it is feasible to get these last patches into 2.6.35 ? The merge window is still open, so it might be possible. However i unfortunately don't have the time at the moment. Maybe Sven could generate the

[B.A.T.M.A.N.] [PATCH] batman-adv: Only fail in debugfs when kernel has debugfs support

2010-05-22 Thread Sven Eckelmann
a error code and the kernel was compiled without debugfs support. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/bat_debugfs.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/batman-adv-kernelland/bat_debugfs.c b/batman-adv-kernelland

[B.A.T.M.A.N.] [PATCH 00/26] Staging: batman-adv

2010-05-22 Thread Sven Eckelmann
-adv: remove redundant struct declaration Staging: batman-adv: fix rogue packets on shutdown Staging: batman-adv: convert all sysfs files to single value files Documentation: ABI: Add information about batman-adv sysfs entries Sven Eckelmann (5): Staging: batman-adv: Call

[B.A.T.M.A.N.] [PATCH 01/10] Staging: batman-adv: remove redundant struct declaration

2010-05-22 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de The hardif_attr and the bat_attr struct share the same attributes, hence it is not necessary to specify 2 different structs. Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging

[B.A.T.M.A.N.] [PATCH 06/10] Staging: batman-adv: Move tables from sysfs to debugfs

2010-05-22 Thread Sven Eckelmann
Files which represent more than a single attribute aren't allowed in sysfs. As we have some files which aren't essential and are lists or tables aggregated from data from different places inside batman-adv, we must place them in a filesystem without such a restriction. Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCH 07/10] Staging: batman-adv: Don't allocate icmp packet with GFP_KERNEL

2010-05-22 Thread Sven Eckelmann
A new buffer for a packet is created when a icmp packet is received. This happens in a context with disabled irq. Thus we are not allowed to sleep or call function which might sleep. kmalloc must be called with GFP_ATOMIC instead of GFP_KERNEL to ensure that it does not sleep. Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCH 08/10] Staging: batman-adv: convert all sysfs files to single value files

2010-05-22 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de This patch removes the extra usage output which came when the sysfs files were read. Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/bat_sysfs.c | 24

Re: [B.A.T.M.A.N.] [PATCH 00/26] Staging: batman-adv

2010-05-22 Thread Sven Eckelmann
Greg KH wrote: On Sat, May 22, 2010 at 04:16:45PM +0200, Sven Eckelmann wrote: Hi, we've tried to fix the outstanding problem regarding the sysfs filesystem and fixed some further smaller problems. I hope that it is right were we put the ABI documentation. Not really, but I

Re: [B.A.T.M.A.N.] [PATCH 00/26] Staging: batman-adv

2010-05-22 Thread Sven Eckelmann
Greg KH wrote: [...] The merge window is already closed? v2.6.34 was released 6 days ago. Or do you mean that your merge window for staging is closed? The merge window is for the subsystem maintainers to send stuff to Linus. That stuff must have already been in the linux-next tree for a

[B.A.T.M.A.N.] [PATCH 1/4] Staging: batman-adv: fix rogue packets on shutdown

2010-05-22 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de On module shutdown batman-adv would purge the internal packet queue by sending all remaining packets which could confuse other nodes. Now, the packets are silently discarded. Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCH 2/4] Staging: batman-adv: Call unregister_netdev on failures to get rtnl lock

2010-05-22 Thread Sven Eckelmann
the semaphore in an error situation. So we must use unregister_netdev. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/batman-adv/main.c b/drivers/staging/batman-adv/main.c

[B.A.T.M.A.N.] [PATCH 3/4] Staging: batman-adv: Don't call free_netdev twice

2010-05-22 Thread Sven Eckelmann
Free_netdev is registered as destructor in interface_setup for every soft_device. This destructor is automatically called from unregister_netdev and we must not call it again for the freed net_device. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/main.c

[B.A.T.M.A.N.] [PATCH 00/26] Staging: batman-adv for 2.6.36

2010-05-22 Thread Sven Eckelmann
Staging: batman-adv: Add information about batman-adv sysfs entries Sven Eckelmann (2): Staging: batman-adv: Move device for icmp injection to debugfs Staging: batman-adv: Move tables from sysfs to debugfs Best regards, Sven signature.asc Description

[B.A.T.M.A.N.] [PATCH 3/6] Staging: batman-adv: Move tables from sysfs to debugfs

2010-05-22 Thread Sven Eckelmann
Files which represent more than a single attribute aren't allowed in sysfs. As we have some files which aren't essential and are lists or tables aggregated from data from different places inside batman-adv, we must place them in a filesystem without such a restriction. Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCH 5/6] Staging: batman-adv: Adding netfilter-bridge hooks

2010-05-22 Thread Sven Eckelmann
-by: Linus Lüssing linus.luess...@web.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/hard-interface.c | 14 +- drivers/staging/batman-adv/send.c |9 +++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [B.A.T.M.A.N.] [PATCH] Staging: batman-adv: bonding and interface alternating

2010-05-26 Thread Sven Eckelmann
Only some non-technical comments about the patch for now: I thought we decided that the Staging: part in the title will be appended when the stuff will be send to Greg and should be omitted inside our source trees. Also your patch wouldn't apply in linux-next because the bonding stuff is in

[B.A.T.M.A.N.] [PATCH 1/3] batman: Correct gw_speed down bit mask

2010-06-03 Thread Sven Eckelmann
We want to get bits .... and not as the mask would suggest .O.. when we decode the encoded bits for the download part of the gateway speed. Reported-By: Bill Meier wme...@newsguy.com Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/batman.c |2 +- 1 files changed, 1

[B.A.T.M.A.N.] [PATCH 2/3] batman-adv: Correct gw_speed down bit mask

2010-06-03 Thread Sven Eckelmann
We want to get bits .... and not as the mask would suggest .O.. when we decode the encoded bits for the download part of the gateway speed. Reported-By: Bill Meier wme...@newsguy.com Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/gateway_common.c |2

[B.A.T.M.A.N.] [PATCH 3/3] batman-experimental: Correct gw_speed down bit mask

2010-06-03 Thread Sven Eckelmann
We want to get bits .... and not as the mask would suggest .O.. when we decode the encoded bits for the download part of the gateway speed. Reported-By: Bill Meier wme...@newsguy.com Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de Cc: Axel Neumann neum...@cgws.de --- batman

Re: [B.A.T.M.A.N.] [PATCH] drivers/staging/batman-adv: Convert MAC_FMT to %pM

2010-06-03 Thread Sven Eckelmann
Joe Perches wrote: Remove the last uses of MAC_FMT Signed-off-by: Joe Perches j...@perches.com --- drivers/staging/batman-adv/main.c |3 +- drivers/staging/batman-adv/translation-table.c | 25 --- 2 files changed, 6 insertions(+), 22 deletions(-)

Re: [B.A.T.M.A.N.] [PATCH] drivers/staging/batman-adv: Convert MAC_FMT to %pM

2010-06-03 Thread Sven Eckelmann
Joe Perches wrote: On Thu, 2010-06-03 at 01:23 +0200, Sven Eckelmann wrote: You've also changed the output. So you may partly broke batctl too (have to check that first). There was no change in output. MAC_FMT output is the same as %pM I meant the other patch :) Best regards

Re: [B.A.T.M.A.N.] [PATCH] drivers/staging/batman-adv: Convert MAC_FMT to %pM

2010-06-03 Thread Sven Eckelmann
Joe Perches wrote: On Thu, 2010-06-03 at 01:33 +0200, Sven Eckelmann wrote: Joe Perches wrote: On Thu, 2010-06-03 at 01:23 +0200, Sven Eckelmann wrote: You've also changed the output. So you may partly broke batctl too (have to check that first). There was no change in output

[B.A.T.M.A.N.] [PATCH] batman-adv: return -EFAULT on copy_to_user errors

2010-06-03 Thread Sven Eckelmann
From: Dan Carpenter erro...@gmail.com copy_to_user() returns the number of bites remaining but we want to return a negative error code here. Signed-off-by: Dan Carpenter erro...@gmail.com [sven.eckelm...@gmx.de: Move change from device.c to icmp_socket.c] Signed-off-by: Sven Eckelmann

[B.A.T.M.A.N.] [PATCH-trunk] drivers/staging/batman-adv: Convert MAC_FMT to %pM

2010-06-03 Thread Sven Eckelmann
From: Joe Perches j...@perches.com Remove the last uses of MAC_FMT Signed-off-by: Joe Perches j...@perches.com [sven.eckelm...@gmx.de: Adapted for current batman-adv version] Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/bat_printk.c| 50

Re: [B.A.T.M.A.N.] [PATCH] drivers/staging/batman-adv: Convert MAC_FMT to %pM

2010-06-03 Thread Sven Eckelmann
Joe Perches wrote: Remove the last uses of MAC_FMT Signed-off-by: Joe Perches j...@perches.com --- drivers/staging/batman-adv/main.c |3 +- drivers/staging/batman-adv/translation-table.c | 25 --- 2 files changed, 6 insertions(+), 22 deletions(-)

Re: [B.A.T.M.A.N.] [PATCH-trunk] drivers/staging/batman-adv: Convert MAC_FMT to %pM

2010-06-03 Thread Sven Eckelmann
Sven Eckelmann wrote: From: Joe Perches j...@perches.com Remove the last uses of MAC_FMT Signed-off-by: Joe Perches j...@perches.com [sven.eckelm...@gmx.de: Adapted for current batman-adv version] Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- Marek, can you please remove

[B.A.T.M.A.N.] [PATCH-trunk] batman-adv: Use (pr|netdev)_level macro helpers

2010-06-03 Thread Sven Eckelmann
-by: Sven Eckelmann sven.eckelm...@gmx.de --- This version is just for trunk because I haven't checked if it really works. (not on 2.6.34 nor on 2.6.21). batman-adv-kernelland/aggregation.c |2 + batman-adv-kernelland/bat_debugfs.c |6 ++- batman-adv-kernelland/bat_sysfs.c

Re: [B.A.T.M.A.N.] [PATCH-trunk] batman-adv: Use (pr|netdev)_level macro helpers

2010-06-03 Thread Sven Eckelmann
Sven Eckelmann wrote: From: Joe Perches j...@perches.com Compile tested only Add #define pr_fmt(fmt) KBUILD_MODNAME : fmt Remove batman-adv: from format strings Use pr_level Use netdev_level Signed-off-by: Joe Perches j...@perches.com [sven.eckelm...@gmx.de: Adapted for current

[B.A.T.M.A.N.] [PATCHv2-trunk] batman-adv: Convert MAC_FMT to %pM

2010-06-04 Thread Sven Eckelmann
From: Joe Perches j...@perches.com Remove the last uses of MAC_FMT Signed-off-by: Joe Perches j...@perches.com [sven.eckelm...@gmx.de: Adapted for current batman-adv version] Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- Marek, can you please test it with 2.6.21? It was rebased

Re: [B.A.T.M.A.N.] [PATCH] Staging: batman-adv: bonding and interface alternating

2010-06-04 Thread Sven Eckelmann
Simon Wunderlich wrote: I've also followed your other comments (hopefully correctly), so thank you very much for the review. [...] This is an experimental patch and targeted for upcoming experiments at Wireless Battle Mesh v3 in Bracciano/Italy. Feedback, comments and reviews

[B.A.T.M.A.N.] [PATCH-trunk] batman-adv: Mark locally used symbols as static

2010-06-06 Thread Sven Eckelmann
-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/bitarray.c |2 +- batman-adv-kernelland/bitarray.h |3 - batman-adv-kernelland/hard-interface.c|2 +- batman-adv-kernelland/hash.c |2 +- batman-adv-kernelland/hash.h

[B.A.T.M.A.N.] [PATCH-maint] batman-adv: Mark locally used symbols as static

2010-06-06 Thread Sven Eckelmann
-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- bitarray.c |2 +- bitarray.h |3 - hard-interface.c|2 +- hash.c |2 +- hash.h |6 --- originator.c| 32 originator.h|2 - routing.c

[B.A.T.M.A.N.] [PATCH-trunk] batman-adv: Remove unused code from compat.h

2010-06-06 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/compat.h | 14 -- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/batman-adv-kernelland/compat.h b/batman-adv-kernelland/compat.h index 614d116..af0e9d8 100644 --- a/batman-adv-kernelland

[B.A.T.M.A.N.] [PATCH-maint] batman-adv: Remove unused code from compat.h

2010-06-06 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- compat.h | 14 -- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/compat.h b/compat.h index 144e25a..9307976 100644 --- a/compat.h +++ b/compat.h @@ -39,9 +39,6 @@ #define skb_mac_header(_skb) \ ((_skb

[B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (renewed)

2010-06-06 Thread Sven Eckelmann
: batman-adv: convert all sysfs files to single value files Staging: batman-adv: Add information about batman-adv sysfs entries Staging: batman-adv: remove superfluous hint to translation table Simon Wunderlich (1): Staging: batman-adv: convert vis_interval into define Sven Eckelmann

[B.A.T.M.A.N.] [PATCH 1/9] Staging: batman-adv: remove redundant struct declaration

2010-06-06 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de The hardif_attr and the bat_attr struct share the same attributes, hence it is not necessary to specify 2 different structs. Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging

[B.A.T.M.A.N.] [PATCH 4/9] Staging: batman-adv: convert all sysfs files to single value files

2010-06-06 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de This patch removes the extra usage output which came when the sysfs files were read. Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/bat_sysfs.c | 24

[B.A.T.M.A.N.] [PATCH 3/9] Staging: batman-adv: Move tables from sysfs to debugfs

2010-06-06 Thread Sven Eckelmann
Files which represent more than a single attribute aren't allowed in sysfs. As we have some files which aren't essential and are lists or tables aggregated from data from different places inside batman-adv, we must place them in a filesystem without such a restriction. Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCH 7/9] Staging: batman-adv: remove superfluous hint to translation table

2010-06-06 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Marek Lindner lindner_ma...@yahoo.de [sven.eckelm...@gmx.de: Rework on top of current version] Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/translation-table.c |3 +-- 1 files changed, 1

[B.A.T.M.A.N.] [PATCH 8/9] Staging: batman-adv: convert vis_interval into define

2010-06-06 Thread Sven Eckelmann
...@hrz.tu-chemnitz.de [sven.eckelm...@gmx.de: Rework on top of current version] Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/main.c |3 --- drivers/staging/batman-adv/main.h |3 ++- drivers/staging/batman-adv/vis.c |4 ++-- 3 files changed, 4

[B.A.T.M.A.N.] [PATCH 9/9] Staging: batman-adv: Convert MAC_FMT to %pM

2010-06-06 Thread Sven Eckelmann
From: Joe Perches j...@perches.com Remove the last uses of MAC_FMT Signed-off-by: Joe Perches j...@perches.com [sven.eckelm...@gmx.de: Adapted for current batman-adv version] Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/main.c |3

[B.A.T.M.A.N.] [PATCH 2/9] Staging: batman-adv: Move device for icmp injection to debugfs

2010-06-06 Thread Sven Eckelmann
doesn't allow to use complete separated meshes as we rely on structures which are not part of the private data of a batman device. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/Makefile |2 +- drivers/staging/batman-adv/bat_debugfs.c | 77

Re: [B.A.T.M.A.N.] [PATCH] drivers/staging/batman-adv: Use (pr|netdev)_level macro helpers

2010-06-16 Thread Sven Eckelmann
Sven Eckelmann wrote: [...] Found some time to play a little bit around with your patch and noticed that it crashes the kernel. I did my tests using following interesting part: [...] I compiled the module and loaded it using `insmod batman-adv.ko`. This will create some files in /sys

[B.A.T.M.A.N.] [PATCH] batman-adv: use rx_handler_data pointer to store net_bridge_port pointer

2010-06-17 Thread Sven Eckelmann
and in netfilter parts. Signed-off-by: Jiri Pirko jpi...@redhat.com Signed-off-by: David S. Miller da...@davemloft.net Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/hard-interface.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/batman-adv

Re: [B.A.T.M.A.N.] [PATCH] batman-adv: use rx_handler_data pointer to store net_bridge_port pointer

2010-06-17 Thread Sven Eckelmann
Marek Lindner wrote: On Thursday 17 June 2010 00:42:11 Sven Eckelmann wrote: I have merged it into maint (not into trunk), but somebody has to think about a way to to get it working on older kernels. This patch has to made on top of that patch to get it integrated into the next kernel

Re: [B.A.T.M.A.N.] [PATCH] batman-adv: use rx_handler_data pointer to store net_bridge_port pointer

2010-06-17 Thread Sven Eckelmann
Andrew Lunn wrote: --- a/batman-adv-kernelland/hard-interface.h +++ b/batman-adv-kernelland/hard-interface.h @@ -38,3 +38,8 @@ int batman_skb_recv(struct sk_buff *skb, struct net_device *orig_dev); int hardif_min_mtu(void); void

Re: [B.A.T.M.A.N.] MTU/connection problem

2010-06-17 Thread Sven Eckelmann
Clemens John wrote: Hi, I have a problem to connect to the Internet. We are using Batman advanced 0.2.1 and IPv4 here in oldenburg. Our setup looks like this: Laptop-[wifi]-Fonera-[wifi]-Dir300--OpenVPN-- virtual OpenWrt machine--internet. The default route of the laptop goes to the

Re: [B.A.T.M.A.N.] MTU/connection problem

2010-06-18 Thread Sven Eckelmann
On Friday 18 June 2010 19:40:57 Clemens John wrote: Am Donnerstag 17 Juni 2010, 17:19:52 schrieb Linus Lüssing: wow, you're quick and eager, great spirit (woops, guess there is too much soccer talking around here during these days again :D)! Well, anyway, we'll get your setup fitting your

Re: [B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (renewed)

2010-06-19 Thread Sven Eckelmann
Greg KH wrote: On Sun, Jun 06, 2010 at 09:28:12PM +0200, Sven Eckelmann wrote: Hi, here are patches targetted for 2.6.36. These replace all patches send to you for 2.6.36 in mails following 1275850985-27105-1-git-send-email-sven.eckelm...@gmx.de due to conflicting changes for 2.6.35

[B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (2)

2010-06-19 Thread Sven Eckelmann
and interface alternating Sven Eckelmann (2): Staging: batman-adv: Mark locally used symbols as static Staging: batman-adv: Ignore debugfs on kernels without debugfs support

[B.A.T.M.A.N.] [PATCH 1/8] Staging: batman-adv: Mark locally used symbols as static

2010-06-19 Thread Sven Eckelmann
-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/bitarray.c |2 +- drivers/staging/batman-adv/bitarray.h |3 - drivers/staging/batman-adv/hash.c |2 +- drivers/staging/batman-adv/hash.h |6 -- drivers/staging

[B.A.T.M.A.N.] [PATCH 2/8] Staging: batman-adv: Ignore debugfs on kernels without debugfs support

2010-06-19 Thread Sven Eckelmann
All code for debugfs is ignored when the creation of the batman-adv root directory in debugfs fails. It must also be ignored when the debugfs_create_dir tells us that debugfs is not implemented to prevent possible crashes in the future. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de

[B.A.T.M.A.N.] [PATCH 3/8] Staging: batman-adv: permit setting ogm interval to JITTER*2

2010-06-19 Thread Sven Eckelmann
-by: Simon Wunderlich s...@hrz.tu-chemnitz.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/bat_sysfs.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/batman-adv/bat_sysfs.c b/drivers/staging/batman-adv/bat_sysfs.c index

[B.A.T.M.A.N.] [PATCH 4/8] Staging: batman-adv: Add release information for version 2010.0.0

2010-06-19 Thread Sven Eckelmann
From: Simon Wunderlich s...@hrz.tu-chemnitz.de Signed-off-by: Simon Wunderlich s...@hrz.tu-chemnitz.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/CHANGELOG | 12 drivers/staging/batman-adv/README|2 +- drivers/staging/batman-adv

[B.A.T.M.A.N.] [PATCH 5/8] Staging: batman-adv: 32bit sequence number and TTL for broadcasts

2010-06-19 Thread Sven Eckelmann
been added to the broadcast packet type, just to make sure. These changes required to increase the compatibility level once again. Signed-off-by: Simon Wunderlich s...@hrz.tu-chemnitz.de [sven.eckelm...@gmx.de: Change atomic64_* back to atomic_*, Rework on top of current version] Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCH 8/8] Staging: batman-adv: record route for ICMP messages

2010-06-19 Thread Sven Eckelmann
...@gmx.de: Rework on top of current version] Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/icmp_socket.c | 45 ++ drivers/staging/batman-adv/icmp_socket.h |3 +- drivers/staging/batman-adv/packet.h | 17

[B.A.T.M.A.N.] [PATCH] batctl: Merge differences between v2010.0.0

2010-06-20 Thread Sven Eckelmann
batctl started to diverge when the batctl-0.2.x (later batctl-maint) was created. Even when not all changes inside the batctl branch has to be in the batctl-maint branch, it must be ensured that all changes in batctl-maint are also part of batctl. Signed-off-by: Sven Eckelmann sven.eckelm

Re: [B.A.T.M.A.N.] [PATCH] batctl: Merge differences between v2010.0.0

2010-06-20 Thread Sven Eckelmann
Sven Eckelmann wrote: batctl started to diverge when the batctl-0.2.x (later batctl-maint) was created. Even when not all changes inside the batctl branch has to be in the batctl-maint branch, it must be ensured that all changes in batctl-maint are also part of batctl. Signed-off-by: Sven

[B.A.T.M.A.N.] [PATCHv2] batctl: Merge differences between v2010.0.0

2010-06-20 Thread Sven Eckelmann
batctl started to diverge when the batctl-0.2.x (later batctl-maint) was created. Even when not all changes inside the batctl branch has to be in the batctl-maint branch, it must be ensured that all changes in batctl-maint are also part of batctl. Signed-off-by: Sven Eckelmann sven.eckelm

Re: [B.A.T.M.A.N.] [PATCH 6/8] Staging: batman-adv: Add bonding functionality

2010-06-21 Thread Sven Eckelmann
Sven Eckelmann wrote: From: Simon Wunderlich s...@hrz.tu-chemnitz.de [...] Bonding is deactivated by default, and can be activated by echo 1 /sys/class/net/bat0/mesh/bonding for each individual node. Signed-off-by: Simon Wunderlich s...@hrz.tu-chemnitz.de [sven.eckelm...@gmx.de

[B.A.T.M.A.N.] [PATCH 1/2] batctl: Remove dead code from old sysfs parsing

2010-06-21 Thread Sven Eckelmann
code related to that were removed right away when batctl was adopted to the new sysfs handling. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- functions.c | 18 -- functions.h |1 - 2 files changed, 0 insertions(+), 19 deletions(-) diff --git a/functions.c b

[B.A.T.M.A.N.] [PATCH 2/2] batctl: Use NULL instead of 0 for pointers

2010-06-21 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- debugfs.c |2 +- sys.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debugfs.c b/debugfs.c index 3b6e2bf..6df 100644 --- a/debugfs.c +++ b/debugfs.c @@ -38,7 +38,7 @@ static char debugfs_mountpoint

Re: [B.A.T.M.A.N.] [PATCH 6/8] Staging: batman-adv: Add bonding functionality

2010-06-21 Thread Sven Eckelmann
Marek Lindner wrote: On Monday 21 June 2010 11:04:53 Sven Eckelmann wrote: I noticed that the bonding file in sysfs is not documented while working on batctl yesterday. Can you please provide a short text for http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=blob;f=d ri

[B.A.T.M.A.N.] [PATCH 1/2] batctl: Add support for git revision string

2010-06-21 Thread Sven Eckelmann
example would be v2010.0.0-15-g154f68a-dirty Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batctl/Makefile | 34 +++--- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/batctl/Makefile b/batctl/Makefile index ab9c075..fde5486 100644

[B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Add support for git revision string

2010-06-21 Thread Sven Eckelmann
example would be v2010.0.0-25-gdc3f30c-dirty Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv/Makefile| 30 +++--- batman-adv/Makefile.kbuild |2 +- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/batman-adv/Makefile b/batman

Re: [B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (2)

2010-06-22 Thread Sven Eckelmann
Greg KH wrote: On Sat, Jun 19, 2010 at 02:51:45AM +0200, Sven Eckelmann wrote: Hi, here are patches targetted for 2.6.36. They are made on top of patches you have already received in 1275852501-28523-1-git-send-email-sven.eckelm...@gmx.de : * Staging: batman-adv: remove

Re: [B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (2)

2010-06-22 Thread Sven Eckelmann
Greg KH wrote: So, to make it dirt-simple for me, so my simple mind can figure it out, can you resend the patches that I need to apply that are not in my staging-next tree? Yes, of course. I will sent them as response to this mail. thanks, Sven signature.asc Description: This is a

Re: [B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (2)

2010-06-23 Thread Sven Eckelmann
On Tue, Jun 22, 2010 at 02:06:46PM -0700, Greg KH wrote: On Tue, Jun 22, 2010 at 01:23:32AM +0200, Sven Eckelmann wrote: Greg KH wrote: So, to make it dirt-simple for me, so my simple mind can figure it out, can you resend the patches that I need to apply that are not in my staging

Re: [B.A.T.M.A.N.] batman-adv: Migration from staging to net

2010-06-23 Thread Sven Eckelmann
part of the mail (regarding the merge process): Sven Eckelmann wrote: To the merge process itself. We should prepare a patch which adds everything in net/batman-adv/ (and Documentation/ABI/testing/, MAINTAINERS) and then send it to net...@vger.kernel.org/David S. Miller. After it was merged we

[B.A.T.M.A.N.] [PATCH 1/4] batman-adv: Use nproc to get number of available processors

2010-06-23 Thread Sven Eckelmann
since version 8.1. On systems without nproc it will just assume that a single processing unit is available. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/batman-adv/Makefile b/batman-adv/Makefile

[B.A.T.M.A.N.] [PATCH 4/4] vis: Use nproc to get number of available processors

2010-06-23 Thread Sven Eckelmann
since version 8.1. On systems without nproc it will just assume that a single processing unit is available. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- vis/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vis/Makefile b/vis/Makefile index 675dcd8..a119758

[B.A.T.M.A.N.] [PATCH] batman-adv: Move printk to pr_* macros

2010-06-23 Thread Sven Eckelmann
Reported-by: Joe Perches j...@perches.com Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv/bat_debugfs.c |7 ++-- batman-adv/bat_sysfs.c | 74 +++ batman-adv/compat.h| 13 +++ batman-adv/gateway_common.c

[B.A.T.M.A.N.] [PATCHv2] batman-adv: Move printk to simplified macros

2010-06-23 Thread Sven Eckelmann
will be printed using a bat_(info|err|warning) macro to prefix it also with batman-adv: batX: in each line. Reported-by: Joe Perches j...@perches.com Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- This patch replaces the slightly different named patch Move printk to pr_* macros. It should provide

[B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (2)

2010-06-26 Thread Sven Eckelmann
-adv: adapting source version to revised versioning scheme Staging: batman-adv: fix early debugfs deinitialization Simon Wunderlich (1): Staging: batman-adv: Lower resolution for timeouts Sven Eckelmann (1): Staging: batman-adv: Add include guards to all header files drivers

[B.A.T.M.A.N.] [PATCH 1/8] Staging: batman-adv: Convert names from Java to C style

2010-06-26 Thread Sven Eckelmann
From: Antonio Quartulli or...@ritirata.org Useless but meaningfull patch that converts JavaStyle names into c_style Signed-off-by: Antonio Quartulli or...@ritirata.org Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/main.c |2 +- drivers/staging

[B.A.T.M.A.N.] [PATCH 2/8] Staging: batman-adv: Avoid rounding issues for local hna timeout

2010-06-26 Thread Sven Eckelmann
the multiplication before the division now. Signed-off-by: Linus Lüssing linus.luess...@web.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/translation-table.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/batman-adv/translation

[B.A.T.M.A.N.] [PATCH 4/8] Staging: batman-adv: replace manual calculation by msecs_to_jiffies() for better readability

2010-06-26 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/send.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/batman-adv

[B.A.T.M.A.N.] [PATCH 5/8] Staging: batman-adv: Add sysfs abi documentation about bonding

2010-06-26 Thread Sven Eckelmann
From: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/sysfs-class-net-mesh |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/staging

[B.A.T.M.A.N.] [PATCH 6/8] Staging: batman-adv: adapting source version to revised versioning scheme

2010-06-26 Thread Sven Eckelmann
) Signed-off-by: Marek Lindner lindner_ma...@yahoo.de Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/main.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/batman-adv/main.h b/drivers/staging/batman-adv/main.h index

[B.A.T.M.A.N.] [PATCH 7/8] Staging: batman-adv: Add include guards to all header files

2010-06-26 Thread Sven Eckelmann
We include different header files indirectly to the same source file. This creates weird compiler errors from time to time. Include guards should prefend that functions/variables/... gets redefined by itself. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv

[B.A.T.M.A.N.] [PATCH 8/8] Staging: batman-adv: fix early debugfs deinitialization

2010-06-26 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/batman-adv/main.c b/drivers/staging/batman-adv/main.c index ae88806..d7e2960 100644 --- a/drivers/staging/batman-adv

[B.A.T.M.A.N.] Reviewing batman-adv for net/

2010-06-26 Thread Sven Eckelmann
Hi, batman-adv is a meshing protocol currently in drivers/staging/batman-adv. We asked GregKH recently [1] if he thinks that it is ok to send a patch to you for review. He acknowledged that request and now we would like to ask you to review it. I will send a patch referencing this mail. I

[B.A.T.M.A.N.] [PATCH] net: Add batman-adv meshing protocol

2010-06-26 Thread Sven Eckelmann
B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is a routing protocol for multi-hop ad-hoc mesh networks. The networks may be wired or wireless. See http://www.open-mesh.org/ for more information and user space tools. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- .../ABI

Re: [B.A.T.M.A.N.] Staging: batman-adv for 2.6.36 (3)

2010-06-26 Thread Sven Eckelmann
Hi, Sven Eckelmann wrote: here are patches targetted for 2.6.36. All patches needed for that patchset are already part of your staging-next tree. All patches are cleanup patches and no new feature is added. It seems that I forgot two smaller changes. Please add them to the list of patches

[B.A.T.M.A.N.] [PATCH 1/2] Staging: batman-adv: Allow to build it inside the kernel

2010-06-26 Thread Sven Eckelmann
We must use the user supplied information about how the code should be compiled instead of always trying to build it as module. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- drivers/staging/batman-adv/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[B.A.T.M.A.N.] The state of batman-adv branches in june 2010

2010-06-26 Thread Sven Eckelmann
Hi, as we started to have different branches and repositories, everything became a little bit more complex to track. I will try to summarize what and where is something going on inside the batman-adv universe. Please note that the different repositories and branches were changed slightly. For

Re: [B.A.T.M.A.N.] PATCH fragmentation of unicast packets

2010-06-27 Thread Sven Eckelmann
Andreas Langer wrote: If fragmentation is on, the mtu of the bat interface will be set to 1500 and bigger packets will be splitted in two parts. The receiver stores the packets in a buffer list for each originator, which will be created with the first fragmented packet. For this handling i

Re: [B.A.T.M.A.N.] PATCH batctl fragmentation handling

2010-06-27 Thread Sven Eckelmann
Andreas Langer wrote: Added options to enable/disable fragmentation Signed-off-by: Andreas Langer an.langer at gmx.de --- batctl/main.c | 29 + batctl/sys.c |7 +++ batctl/sys.h |2 ++ 3 files changed, 26 insertions(+), 12 deletions(-) Same

Re: [B.A.T.M.A.N.] Reviewing batman-adv for net/

2010-06-28 Thread Sven Eckelmann
Hagen Paul Pfeifer wrote: Thanks for your comments. Marek already answered the first two questions, and I will write something about the last part. [...] o The major code is twisted about bookkeeping stuff, configuration aspects and so on. The minor codebase is about protocol processing. What

Re: [B.A.T.M.A.N.] PATCH fragmentation of unicast packets

2010-06-28 Thread Sven Eckelmann
Sven Eckelmann wrote: And can you try to add [] around PATCH in the summary line and remove the regards... stuff from the commits message? Otherwise it will be part of the commit message and the patch we send to the kernel folks. Ah, forgot something. Could you also change the subject

Re: [B.A.T.M.A.N.] Multicast video over 2 node mesh

2010-06-28 Thread Sven Eckelmann
Nathan Wharton wrote: I am having problems getting multicast video over my 2 node mesh. I am building under openwrt and the version is 0.3.0-alpha rv1715. First thing: multicast is currently implemented over broadcast. I have a lan bridge on each side. If I directly add ath0 to the lan

Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Add last-seen in originator table

2010-06-30 Thread Sven Eckelmann
Linus Lüssing wrote: From: mesh-node mesh-n...@mesh-node1.(none) I think the person who applies this should remove the From and the next empty line... or do you have a secret dwarf named mesh-node who works for you? :D Right now, there is no easy/intuitive way to find out whether a node

Re: [B.A.T.M.A.N.] [PATCH 1/2] batctl: layer2 unicast packet fragmentation

2010-07-05 Thread Sven Eckelmann
On Wed, Jun 30, 2010 at 09:00:35PM +0200, Andreas Langer wrote: - * Andreas Langer a.lan...@q-dsl.de, Marek Lindner lindner_ma...@yahoo.de + * Andreas Langer an.lan...@gmx.de, Marek Lindner lindner_ma...@yahoo.de Can you please make that an extra patch. Following files have outdated(?) email

Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: layer2 unicast packet fragmentation

2010-07-05 Thread Sven Eckelmann
On Wed, Jun 30, 2010 at 09:00:36PM +0200, Andreas Langer wrote: diff --git a/batman-adv/fragmentation.c b/batman-adv/fragmentation.c new file mode 100644 index 000..f36ad0e --- /dev/null +++ b/batman-adv/fragmentation.c @@ -0,0 +1,150 @@ +/* + * Copyright (C) 2007-2010 B.A.T.M.A.N.

<    1   2   3   4   5   6   7   8   9   10   >