net: Add batman-adv meshing protocol
Subsystems (5)
PATCH v8 1/1 net: Add batman-adv meshing protocol
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.
---
batman-adv is a layer2 meshing protocol currently in drivers/staging/batman-adv. GregKH recently [1][2] gave us his blessing to leave the staging tree and move to a more suitable location.
Short functionality overview:
The batman-adv module is an implementation of the B.A.T.M.A.N. routing protocol operating on layer2 optimized for (but not limited to) wireless networks. Next to finding the best possible path through the network it encapsulates the data traffic and optimizes the transport as well. There also is a user space tool "batctl" which offers various functionalities next to a kernel module configuration interface. Detailed documentation can be found at the project homepage[3].
Everything is addressed in the last round of comments [4].
Following patches were integrated since the last submission:
Marek Lindner (2):
batman-adv: remove hash resize functions
batman-adv: adjust NULL pointer check style
Sven Eckelmann (3):
batman-adv: Remove hash_iterate
batman-adv: Use kernel facilities for bit operations
batman-adv: Remove TYPE_OF_WORD define
[1] https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2010-June/002881.html
[2] https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2010-June/002968.html
[3] http://www.open-mesh.org
[4] https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2010-November/003743.html
.../ABI/testing/sysfs-class-net-batman-adv | 14 + Documentation/ABI/testing/sysfs-class-net-mesh | 69 + Documentation/networking/batman-adv.txt | 240 ++++ MAINTAINERS | 9 + net/Kconfig | 1 + net/Makefile | 1 + net/batman-adv/Kconfig | 25 + net/batman-adv/Makefile | 39 + net/batman-adv/aggregation.c | 273 ++++ net/batman-adv/aggregation.h | 43 + net/batman-adv/bat_debugfs.c | 360 +++++ net/batman-adv/bat_debugfs.h | 33 + net/batman-adv/bat_sysfs.c | 593 +++++++++ net/batman-adv/bat_sysfs.h | 42 + net/batman-adv/bitarray.c | 201 +++ net/batman-adv/bitarray.h | 44 + net/batman-adv/gateway_client.c | 477 +++++++ net/batman-adv/gateway_client.h | 36 + net/batman-adv/gateway_common.c | 177 +++ net/batman-adv/gateway_common.h | 38 + net/batman-adv/hard-interface.c | 651 +++++++++ net/batman-adv/hard-interface.h | 53 + net/batman-adv/hash.c | 62 + net/batman-adv/hash.h | 176 +++ net/batman-adv/icmp_socket.c | 356 +++++ net/batman-adv/icmp_socket.h | 34 + net/batman-adv/main.c | 187 +++ net/batman-adv/main.h | 183 +++ net/batman-adv/originator.c | 564 ++++++++ net/batman-adv/originator.h | 64 + net/batman-adv/packet.h | 136 ++ net/batman-adv/ring_buffer.c | 52 + net/batman-adv/ring_buffer.h | 28 + net/batman-adv/routing.c | 1397 ++++++++++++++++++++ net/batman-adv/routing.h | 48 + net/batman-adv/send.c | 585 ++++++++ net/batman-adv/send.h | 41 + net/batman-adv/soft-interface.c | 697 ++++++++++ net/batman-adv/soft-interface.h | 35 + net/batman-adv/translation-table.c | 534 ++++++++ net/batman-adv/translation-table.h | 45 + net/batman-adv/types.h | 271 ++++ net/batman-adv/unicast.c | 343 +++++ net/batman-adv/unicast.h | 35 + net/batman-adv/vis.c | 949 +++++++++++++ net/batman-adv/vis.h | 37 + 46 files changed, 10278 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-net-batman-adv create mode 100644 Documentation/ABI/testing/sysfs-class-net-mesh create mode 100644 Documentation/networking/batman-adv.txt create mode 100644 net/batman-adv/Kconfig create mode 100644 net/batman-adv/Makefile create mode 100644 net/batman-adv/aggregation.c create mode 100644 net/batman-adv/aggregation.h create mode 100644 net/batman-adv/bat_debugfs.c create mode 100644 net/batman-adv/bat_debugfs.h create mode 100644 net/batman-adv/bat_sysfs.c create mode 100644 net/batman-adv/bat_sysfs.h create mode 100644 net/batman-adv/bitarray.c create mode 100644 net/batman-adv/bitarray.h create mode 100644 net/batman-adv/gateway_client.c create mode 100644 net/batman-adv/gateway_client.h create mode 100644 net/batman-adv/gateway_common.c create mode 100644 net/batman-adv/gateway_common.h create mode 100644 net/batman-adv/hard-interface.c create mode 100644 net/batman-adv/hard-interface.h create mode 100644 net/batman-adv/hash.c create mode 100644 net/batman-adv/hash.h create mode 100644 net/batman-adv/icmp_socket.c create mode 100644 net/batman-adv/icmp_socket.h create mode 100644 net/batman-adv/main.c create mode 100644 net/batman-adv/main.h create mode 100644 net/batman-adv/originator.c create mode 100644 net/batman-adv/originator.h create mode 100644 net/batman-adv/packet.h create mode 100644 net/batman-adv/ring_buffer.c create mode 100644 net/batman-adv/ring_buffer.h create mode 100644 net/batman-adv/routing.c create mode 100644 net/batman-adv/routing.h create mode 100644 net/batman-adv/send.c create mode 100644 net/batman-adv/send.h create mode 100644 net/batman-adv/soft-interface.c create mode 100644 net/batman-adv/soft-interface.h create mode 100644 net/batman-adv/translation-table.c create mode 100644 net/batman-adv/translation-table.h create mode 100644 net/batman-adv/types.h create mode 100644 net/batman-adv/unicast.c create mode 100644 net/batman-adv/unicast.h create mode 100644 net/batman-adv/vis.c create mode 100644 net/batman-adv/vis.h
Documentation/ABI/testing/sysfs-class-net-batman-adv new file +14 -0
@@ -0,0 +1,14 @@ + +What: /sys/class/net/<iface>/batman-adv/mesh_iface +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + The /sys/class/net/<iface>/batman-adv/mesh_iface file + displays the batman mesh interface this <iface> + currently is associated with. + +What: /sys/class/net/<iface>/batman-adv/iface_status +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Indicates the status of <iface> as it is seen by batman.
Documentation/ABI/testing/sysfs-class-net-mesh new file +69 -0
69 lines not on this page · raw message
Documentation/networking/batman-adv.txt new file +240 -0
240 lines not on this page · raw message
MAINTAINERS +9 -0
@@ -1264,6 +1264,15 @@ S: Maintained F: drivers/video/backlight/ F: include/linux/backlight.h +BATMAN ADVANCED +M: Marek Lindner <[email protected]> +M: Simon Wunderlich <[email protected]> +M: Sven Eckelmann <[email protected]> +L: [email protected] +W: http://www.open-mesh.org/ +S: Maintained +F: net/batman-adv/ + BAYCOM/HDLCDRV DRIVERS FOR AX.25 M: Thomas Sailer <[email protected]> L: [email protected]
net/Kconfig +1 -0
@@ -214,6 +214,7 @@ source "net/ieee802154/Kconfig" source "net/sched/Kconfig" source "net/dcb/Kconfig" source "net/dns_resolver/Kconfig" +source "net/batman-adv/Kconfig" config RPS boolean
net/Makefile +1 -0
@@ -69,3 +69,4 @@ endif obj-$(CONFIG_WIMAX) += wimax/ obj-$(CONFIG_DNS_RESOLVER) += dns_resolver/ obj-$(CONFIG_CEPH_LIB) += ceph/ +obj-$(CONFIG_BATMAN_ADV) += batman-adv/
net/batman-adv/Kconfig new file +25 -0
@@ -0,0 +1,25 @@ +# +# B.A.T.M.A.N meshing protocol +# + +config BATMAN_ADV + tristate "B.A.T.M.A.N. Advanced Meshing Protocol" + depends on NET + default n + ---help--- + + 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. + +config BATMAN_ADV_DEBUG + bool "B.A.T.M.A.N. debugging" + depends on BATMAN_ADV != n + ---help--- + + This is an option for use by developers; most people should + say N here. This enables compilation of support for + outputting debugging information to the kernel log. The + output is controlled via the module parameter debug.
net/batman-adv/Makefile new file +39 -0
@@ -0,0 +1,39 @@ +# +# Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: +# +# Marek Lindner, Simon Wunderlich +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA +# + +obj-$(CONFIG_BATMAN_ADV) += batman-adv.o +batman-adv-y += aggregation.o +batman-adv-y += bat_debugfs.o +batman-adv-y += bat_sysfs.o +batman-adv-y += bitarray.o +batman-adv-y += gateway_client.o +batman-adv-y += gateway_common.o +batman-adv-y += hard-interface.o +batman-adv-y += hash.o +batman-adv-y += icmp_socket.o +batman-adv-y += main.o +batman-adv-y += originator.o +batman-adv-y += ring_buffer.o +batman-adv-y += routing.o +batman-adv-y += send.o +batman-adv-y += soft-interface.o +batman-adv-y += translation-table.o +batman-adv-y += unicast.o +batman-adv-y += vis.o
net/batman-adv/aggregation.c new file +273 -0
273 lines not on this page · raw message
net/batman-adv/aggregation.h new file +43 -0
43 lines not on this page · raw message
net/batman-adv/bat_debugfs.c new file +360 -0
360 lines not on this page · raw message
net/batman-adv/bat_debugfs.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2010 B.A.T.M.A.N. contributors: +* +* Marek Lindner +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +* 02110-1301, USA +* +*/ + + +#ifndef _NET_BATMAN_ADV_DEBUGFS_H_ +#define _NET_BATMAN_ADV_DEBUGFS_H_ + +#define DEBUGFS_BAT_SUBDIR "batman_adv" + +void debugfs_init (void ); +void debugfs_destroy (void ); +int debugfs_add_meshif (struct net_device *dev); +void debugfs_del_meshif (struct net_device *dev); + +#endif /* _NET_BATMAN_ADV_DEBUGFS_H_ */
net/batman-adv/bat_sysfs.c new file +593 -0
593 lines not on this page · raw message
net/batman-adv/bat_sysfs.h new file +42 -0
42 lines not on this page · raw message
net/batman-adv/bitarray.c new file +201 -0
201 lines not on this page · raw message
net/batman-adv/bitarray.h new file +44 -0
44 lines not on this page · raw message
net/batman-adv/gateway_client.c new file +477 -0
477 lines not on this page · raw message
net/batman-adv/gateway_client.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: +* +* Marek Lindner +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +* 02110-1301, USA +* +*/ + +#ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ +#define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ + +void gw_deselect (struct bat_priv *bat_priv); +void gw_election (struct bat_priv *bat_priv); +void *gw_get_selected (struct bat_priv *bat_priv); +void gw_check_election (struct bat_priv *bat_priv,struct orig_node *orig_node); +void gw_node_update (struct bat_priv *bat_priv, +struct orig_node *orig_node,uint8_t new_gwflags); +void gw_node_delete (struct bat_priv *bat_priv,struct orig_node *orig_node); +void gw_node_purge (struct bat_priv *bat_priv); +int gw_client_seq_print_text (struct seq_file *seq,void *offset); +int gw_is_target (struct bat_priv *bat_priv,struct sk_buff *skb); + +#endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */
net/batman-adv/gateway_common.c new file +177 -0
177 lines not on this page · raw message
net/batman-adv/gateway_common.h new file +38 -0
@@ -0,0 +1,38 @@ +/* +* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: +* +* Marek Lindner +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +* 02110-1301, USA +* +*/ + +#ifndef _NET_BATMAN_ADV_GATEWAY_COMMON_H_ +#define _NET_BATMAN_ADV_GATEWAY_COMMON_H_ + +enum gw_modes { +GW_MODE_OFF , +GW_MODE_CLIENT , +GW_MODE_SERVER , +}; + +#define GW_MODE_OFF_NAME "off" +#define GW_MODE_CLIENT_NAME "client" +#define GW_MODE_SERVER_NAME "server" + +void gw_bandwidth_to_kbit (uint8_t gw_class,int *down,int *up); +ssize_t gw_bandwidth_set (struct net_device *net_dev,char *buff,size_t count); + +#endif /* _NET_BATMAN_ADV_GATEWAY_COMMON_H_ */
net/batman-adv/hard-interface.c new file +651 -0
270 lines not on this page · raw message
net/batman-adv/hard-interface.h new file +53 -0
53 lines not on this page · raw message
net/batman-adv/hash.c new file +62 -0
62 lines not on this page · raw message
net/batman-adv/hash.h new file +176 -0
176 lines not on this page · raw message
net/batman-adv/icmp_socket.c new file +356 -0
356 lines not on this page · raw message
net/batman-adv/main.c new file +187 -0
187 lines not on this page · raw message
net/batman-adv/main.h new file +183 -0
183 lines not on this page · raw message
net/batman-adv/originator.c new file +564 -0
564 lines not on this page · raw message
net/batman-adv/originator.h new file +64 -0
64 lines not on this page · raw message
net/batman-adv/packet.h new file +136 -0
136 lines not on this page · raw message
net/batman-adv/ring_buffer.c new file +52 -0
52 lines not on this page · raw message
net/batman-adv/routing.c new file +1397 -0
1,397 lines not on this page · raw message
net/batman-adv/routing.h new file +48 -0
48 lines not on this page · raw message
net/batman-adv/send.c new file +585 -0
585 lines not on this page · raw message
net/batman-adv/send.h new file +41 -0
41 lines not on this page · raw message
net/batman-adv/soft-interface.c new file +697 -0
697 lines not on this page · raw message
net/batman-adv/soft-interface.h new file +35 -0
Lines of this file are not shown. View the raw message.
net/batman-adv/translation-table.c new file +534 -0
534 lines not on this page · raw message
net/batman-adv/translation-table.h new file +45 -0
45 lines not on this page · raw message
net/batman-adv/types.h new file +271 -0
271 lines not on this page · raw message
net/batman-adv/unicast.c new file +343 -0
343 lines not on this page · raw message
net/batman-adv/vis.c new file +949 -0
949 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.2.3
Part of the diff is not shown here. View the raw message.
From: Sven Eckelmann <[email protected]>
Date: Mon, 13 Dec 2010 22:19:28 +0100
Quoted 6 lines
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 <[email protected]>
Applied, thanks Sven.
How do you want to take care of the copy that still lives under staging?
Greg, any preferences on your end?
I'm more than happy to do the removal from my net-next-2.6 tree since the bonafide copy of net/batman-adv is now there.
A message that is not in the archive (sent off-list or not yet received): 20101216.140153.232733922.davem-fT/PcQaiUtIeIZ0/[email protected]
Quoted 8 lines · David Miller
From: Sven Eckelmann <[email protected]>
Date: Mon, 13 Dec 2010 22:19:28 +0100Quoted 5 lines
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.
Quoted 6 lines
Quoted 1 line
Signed-off-by Sven Eckelmann <[email protected]>Applied, thanks Sven.
How do you want to take care of the copy that still lives under staging?
I wanted to send a patch which removes it to Greg. Otherwise their might be merge conflicts due to a patchset we send him for 2.6.38.
This brings me to another topic. How do you want to get patches for batman- adv? Do you prefer to pull changes from a git tree or do you want do have them sent to netdev and you as real patches? Do you have special restrictions on the time were you want to except feature patches for the next kernel version (before Linus' merge window)?
thanks,
Sven
A message that is not in the archive (sent off-list or not yet received): [email protected]
From: Sven Eckelmann <[email protected]>
Date: Thu, 16 Dec 2010 23:21:09 +0100
Quoted 5 lines
This brings me to another topic. How do you want to get patches for batman- adv? Do you prefer to pull changes from a git tree or do you want do have them sent to netdev and you as real patches? Do you have special restrictions on the time were you want to except feature patches for the next kernel version (before Linus' merge window)?
Patches or GIT tree is fine. Either way it should be based upon net-next-2.6
If you use a GIT tree, you should still post the individual patches for review on netdev.
Quoted 12 lines · David Miller
From: Sven Eckelmann <[email protected]>
Date: Mon, 13 Dec 2010 22:19:28 +0100Quoted 6 lines
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 <[email protected]>Applied, thanks Sven.
Quoted 7 lines
How do you want to take care of the copy that still lives under staging?
Greg, any preferences on your end?
I'm more than happy to do the removal from my net-next-2.6 tree since the bonafide copy of
net/batman-advis now there.
That might conflict with the patches that I have added to my tree for merging in the .38 timeframe for the batman code. How about I just drop the whole drivers/staging/batman/ directory in my tree and then we don't have any merge issues?
thanks,
greg k-h
A message that is not in the archive (sent off-list or not yet received): [email protected]
From: Greg KH <[email protected]>
Date: Thu, 16 Dec 2010 14:21:11 -0800
Quoted 18 lines · David Miller
Quoted 17 lines
From: Sven Eckelmann <[email protected]>
Date: Mon, 13 Dec 2010 22:19:28 +0100Quoted 6 lines
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 <[email protected]>Applied, thanks Sven.
How do you want to take care of the copy that still lives under staging?
Greg, any preferences on your end?
Quoted 7 lines
Quoted 2 lines
I'm more than happy to do the removal from my net-next-2.6 tree since the bonafide copy of
net/batman-advis now there.That might conflict with the patches that I have added to my tree for merging in the .38 timeframe for the batman code. How about I just drop the whole
drivers/staging/batman/directory in my tree and then we don't have any merge issues?
Perfect.
Sven Eckelmann
maintainerPATCH 1/1 Staging: batman-adv: Remove batman-adv from staging
In reply to David Millerbatman-adv is now moved to net/batman-adv/ and can be removed from staging.
---
This is actually for Greg because he has some patches in his tree for 2.6.38.
I just wanted to thank Greg and David for her work. Thanks :)
drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/batman-adv/Kconfig | 26 - drivers/staging/batman-adv/Makefile | 39 - drivers/staging/batman-adv/README | 240 ---- drivers/staging/batman-adv/TODO | 10 - drivers/staging/batman-adv/aggregation.c | 273 ---- drivers/staging/batman-adv/aggregation.h | 43 - drivers/staging/batman-adv/bat_debugfs.c | 360 ----- drivers/staging/batman-adv/bat_debugfs.h | 33 - drivers/staging/batman-adv/bat_sysfs.c | 593 --------- drivers/staging/batman-adv/bat_sysfs.h | 42 - drivers/staging/batman-adv/bitarray.c | 201 --- drivers/staging/batman-adv/bitarray.h | 47 - drivers/staging/batman-adv/gateway_client.c | 477 ------- drivers/staging/batman-adv/gateway_client.h | 36 - drivers/staging/batman-adv/gateway_common.c | 177 --- drivers/staging/batman-adv/gateway_common.h | 38 - drivers/staging/batman-adv/hard-interface.c | 652 --------- drivers/staging/batman-adv/hard-interface.h | 53 - drivers/staging/batman-adv/hash.c | 83 -- drivers/staging/batman-adv/hash.h | 259 ---- drivers/staging/batman-adv/icmp_socket.c | 357 ----- drivers/staging/batman-adv/icmp_socket.h | 34 - drivers/staging/batman-adv/main.c | 187 --- drivers/staging/batman-adv/main.h | 180 --- drivers/staging/batman-adv/originator.c | 546 -------- drivers/staging/batman-adv/originator.h | 64 - drivers/staging/batman-adv/packet.h | 136 -- drivers/staging/batman-adv/ring_buffer.c | 52 - drivers/staging/batman-adv/ring_buffer.h | 28 - drivers/staging/batman-adv/routing.c | 1393 -------------------- drivers/staging/batman-adv/routing.h | 48 - drivers/staging/batman-adv/send.c | 586 -------- drivers/staging/batman-adv/send.h | 41 - drivers/staging/batman-adv/soft-interface.c | 697 ---------- drivers/staging/batman-adv/soft-interface.h | 35 - .../staging/batman-adv/sysfs-class-net-batman-adv | 14 - drivers/staging/batman-adv/sysfs-class-net-mesh | 69 - drivers/staging/batman-adv/translation-table.c | 528 -------- drivers/staging/batman-adv/translation-table.h | 45 - drivers/staging/batman-adv/types.h | 271 ---- drivers/staging/batman-adv/unicast.c | 343 ----- drivers/staging/batman-adv/unicast.h | 35 - drivers/staging/batman-adv/vis.c | 903 ------------- drivers/staging/batman-adv/vis.h | 37 - 46 files changed, 0 insertions(+), 10314 deletions(-) delete mode 100644 drivers/staging/batman-adv/Kconfig delete mode 100644 drivers/staging/batman-adv/Makefile delete mode 100644 drivers/staging/batman-adv/README delete mode 100644 drivers/staging/batman-adv/TODO delete mode 100644 drivers/staging/batman-adv/aggregation.c delete mode 100644 drivers/staging/batman-adv/aggregation.h delete mode 100644 drivers/staging/batman-adv/bat_debugfs.c delete mode 100644 drivers/staging/batman-adv/bat_debugfs.h delete mode 100644 drivers/staging/batman-adv/bat_sysfs.c delete mode 100644 drivers/staging/batman-adv/bat_sysfs.h delete mode 100644 drivers/staging/batman-adv/bitarray.c delete mode 100644 drivers/staging/batman-adv/bitarray.h delete mode 100644 drivers/staging/batman-adv/gateway_client.c delete mode 100644 drivers/staging/batman-adv/gateway_client.h delete mode 100644 drivers/staging/batman-adv/gateway_common.c delete mode 100644 drivers/staging/batman-adv/gateway_common.h delete mode 100644 drivers/staging/batman-adv/hard-interface.c delete mode 100644 drivers/staging/batman-adv/hard-interface.h delete mode 100644 drivers/staging/batman-adv/hash.c delete mode 100644 drivers/staging/batman-adv/hash.h delete mode 100644 drivers/staging/batman-adv/icmp_socket.c delete mode 100644 drivers/staging/batman-adv/icmp_socket.h delete mode 100644 drivers/staging/batman-adv/main.c delete mode 100644 drivers/staging/batman-adv/main.h delete mode 100644 drivers/staging/batman-adv/originator.c delete mode 100644 drivers/staging/batman-adv/originator.h delete mode 100644 drivers/staging/batman-adv/packet.h delete mode 100644 drivers/staging/batman-adv/ring_buffer.c delete mode 100644 drivers/staging/batman-adv/ring_buffer.h delete mode 100644 drivers/staging/batman-adv/routing.c delete mode 100644 drivers/staging/batman-adv/routing.h delete mode 100644 drivers/staging/batman-adv/send.c delete mode 100644 drivers/staging/batman-adv/send.h delete mode 100644 drivers/staging/batman-adv/soft-interface.c delete mode 100644 drivers/staging/batman-adv/soft-interface.h delete mode 100644 drivers/staging/batman-adv/sysfs-class-net-batman-adv delete mode 100644 drivers/staging/batman-adv/sysfs-class-net-mesh delete mode 100644 drivers/staging/batman-adv/translation-table.c delete mode 100644 drivers/staging/batman-adv/translation-table.h delete mode 100644 drivers/staging/batman-adv/types.h delete mode 100644 drivers/staging/batman-adv/unicast.c delete mode 100644 drivers/staging/batman-adv/unicast.h delete mode 100644 drivers/staging/batman-adv/vis.c delete mode 100644 drivers/staging/batman-adv/vis.h
drivers/staging/Kconfig +0 -2
@@ -140,8 +140,6 @@ source "drivers/staging/wlags49_h2/Kconfig" source "drivers/staging/wlags49_h25/Kconfig" -source "drivers/staging/batman-adv/Kconfig" - source "drivers/staging/samsung-laptop/Kconfig" source "drivers/staging/sm7xx/Kconfig"
drivers/staging/Makefile +0 -1
@@ -47,7 +47,6 @@ obj-$(CONFIG_IIO) += iio/ obj-$(CONFIG_ZRAM) += zram/ obj-$(CONFIG_WLAGS49_H2) += wlags49_h2/ obj-$(CONFIG_WLAGS49_H25) += wlags49_h25/ -obj-$(CONFIG_BATMAN_ADV) += batman-adv/ obj-$(CONFIG_SAMSUNG_LAPTOP) += samsung-laptop/ obj-$(CONFIG_FB_SM7XX) += sm7xx/ obj-$(CONFIG_VIDEO_DT3155) += dt3155v4l/
drivers/staging/batman-adv/Kconfig deleted +0 -26
@@ -1,26 +0,0 @@ -# -# B.A.T.M.A.N meshing protocol -# - -config BATMAN_ADV - tristate "B.A.T.M.A.N. Advanced Meshing Protocol" - depends on NET - default n - ---help--- - - 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. - -config BATMAN_ADV_DEBUG - bool "B.A.T.M.A.N. debugging" - depends on BATMAN_ADV != n - ---help--- - - This is an option for use by developers; most people should - say N here. This enables compilation of support for - outputting debugging information to the kernel log. The - output is controlled via the module parameter debug. -
drivers/staging/batman-adv/Makefile deleted +0 -39
@@ -1,39 +0,0 @@ -# -# Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: -# -# Marek Lindner, Simon Wunderlich -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of version 2 of the GNU General Public -# License as published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA -# - -obj-$(CONFIG_BATMAN_ADV) += batman-adv.o -batman-adv-y += aggregation.o -batman-adv-y += bat_debugfs.o -batman-adv-y += bat_sysfs.o -batman-adv-y += bitarray.o -batman-adv-y += gateway_client.o -batman-adv-y += gateway_common.o -batman-adv-y += hard-interface.o -batman-adv-y += hash.o -batman-adv-y += icmp_socket.o -batman-adv-y += main.o -batman-adv-y += originator.o -batman-adv-y += ring_buffer.o -batman-adv-y += routing.o -batman-adv-y += send.o -batman-adv-y += soft-interface.o -batman-adv-y += translation-table.o -batman-adv-y += unicast.o -batman-adv-y += vis.o
drivers/staging/batman-adv/README deleted +0 -240
240 lines not on this page · raw message
drivers/staging/batman-adv/TODO deleted +0 -10
@@ -1,10 +0,0 @@ - * Request a new review - * Process the comments from the review - * Move into mainline proper - -Please send all patches to: - Marek Lindner <[email protected]> - Simon Wunderlich <[email protected]> - Sven Eckelmann <[email protected]> - [email protected] - Greg Kroah-Hartman <[email protected]>
drivers/staging/batman-adv/aggregation.c deleted +0 -273
273 lines not on this page · raw message
drivers/staging/batman-adv/aggregation.h deleted +0 -43
43 lines not on this page · raw message
drivers/staging/batman-adv/bat_debugfs.c deleted +0 -360
360 lines not on this page · raw message
drivers/staging/batman-adv/bat_debugfs.h deleted +0 -33
@@ -1,33 +0,0 @@ -/* -* Copyright (C) 2010 B.A.T.M.A.N. contributors: -* -* Marek Lindner -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of version 2 of the GNU General Public -* License as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -* 02110-1301, USA -* -*/ - - -#ifndef _NET_BATMAN_ADV_DEBUGFS_H_ -#define _NET_BATMAN_ADV_DEBUGFS_H_ - -#define DEBUGFS_BAT_SUBDIR "batman_adv" - -void debugfs_init (void ); -void debugfs_destroy (void ); -int debugfs_add_meshif (struct net_device *dev); -void debugfs_del_meshif (struct net_device *dev); - -#endif /* _NET_BATMAN_ADV_DEBUGFS_H_ */
drivers/staging/batman-adv/bat_sysfs.c deleted +0 -593
593 lines not on this page · raw message
drivers/staging/batman-adv/bat_sysfs.h deleted +0 -42
42 lines not on this page · raw message
drivers/staging/batman-adv/bitarray.c deleted +0 -201
201 lines not on this page · raw message
drivers/staging/batman-adv/bitarray.h deleted +0 -47
47 lines not on this page · raw message
drivers/staging/batman-adv/gateway_client.c deleted +0 -477
477 lines not on this page · raw message
drivers/staging/batman-adv/gateway_client.h deleted +0 -36
@@ -1,36 +0,0 @@ -/* -* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: -* -* Marek Lindner -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of version 2 of the GNU General Public -* License as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -* 02110-1301, USA -* -*/ - -#ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ -#define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ - -void gw_deselect (struct bat_priv *bat_priv); -void gw_election (struct bat_priv *bat_priv); -void *gw_get_selected (struct bat_priv *bat_priv); -void gw_check_election (struct bat_priv *bat_priv,struct orig_node *orig_node); -void gw_node_update (struct bat_priv *bat_priv, -struct orig_node *orig_node,uint8_t new_gwflags); -void gw_node_delete (struct bat_priv *bat_priv,struct orig_node *orig_node); -void gw_node_purge (struct bat_priv *bat_priv); -int gw_client_seq_print_text (struct seq_file *seq,void *offset); -int gw_is_target (struct bat_priv *bat_priv,struct sk_buff *skb); - -#endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */
drivers/staging/batman-adv/gateway_common.c deleted +0 -177
177 lines not on this page · raw message
drivers/staging/batman-adv/gateway_common.h deleted +0 -38
@@ -1,38 +0,0 @@ -/* -* Copyright (C) 2009-2010 B.A.T.M.A.N. contributors: -* -* Marek Lindner -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of version 2 of the GNU General Public -* License as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -* 02110-1301, USA -* -*/ - -#ifndef _NET_BATMAN_ADV_GATEWAY_COMMON_H_ -#define _NET_BATMAN_ADV_GATEWAY_COMMON_H_ - -enum gw_modes { -GW_MODE_OFF , -GW_MODE_CLIENT , -GW_MODE_SERVER , -}; - -#define GW_MODE_OFF_NAME "off" -#define GW_MODE_CLIENT_NAME "client" -#define GW_MODE_SERVER_NAME "server" - -void gw_bandwidth_to_kbit (uint8_t gw_class,int *down,int *up); -ssize_t gw_bandwidth_set (struct net_device *net_dev,char *buff,size_t count); - -#endif /* _NET_BATMAN_ADV_GATEWAY_COMMON_H_ */
drivers/staging/batman-adv/hard-interface.c deleted +0 -652
350 lines not on this page · raw message
drivers/staging/batman-adv/hard-interface.h deleted +0 -53
53 lines not on this page · raw message
drivers/staging/batman-adv/hash.c deleted +0 -83
83 lines not on this page · raw message
drivers/staging/batman-adv/hash.h deleted +0 -259
259 lines not on this page · raw message
drivers/staging/batman-adv/icmp_socket.c deleted +0 -357
357 lines not on this page · raw message
drivers/staging/batman-adv/icmp_socket.h deleted +0 -34
Lines of this file are not shown. View the raw message.
drivers/staging/batman-adv/main.c deleted +0 -187
187 lines not on this page · raw message
drivers/staging/batman-adv/main.h deleted +0 -180
180 lines not on this page · raw message
drivers/staging/batman-adv/originator.c deleted +0 -546
546 lines not on this page · raw message
drivers/staging/batman-adv/originator.h deleted +0 -64
64 lines not on this page · raw message
drivers/staging/batman-adv/packet.h deleted +0 -136
136 lines not on this page · raw message
drivers/staging/batman-adv/ring_buffer.c deleted +0 -52
52 lines not on this page · raw message
drivers/staging/batman-adv/ring_buffer.h deleted +0 -28
Lines of this file are not shown. View the raw message.
drivers/staging/batman-adv/routing.c deleted +0 -1393
1,393 lines not on this page · raw message
drivers/staging/batman-adv/routing.h deleted +0 -48
48 lines not on this page · raw message
drivers/staging/batman-adv/send.c deleted +0 -586
586 lines not on this page · raw message
drivers/staging/batman-adv/send.h deleted +0 -41
41 lines not on this page · raw message
drivers/staging/batman-adv/soft-interface.c deleted +0 -697
697 lines not on this page · raw message
drivers/staging/batman-adv/soft-interface.h deleted +0 -35
Lines of this file are not shown. View the raw message.
drivers/staging/batman-adv/sysfs-class-net-batman-adv deleted +0 -14
Lines of this file are not shown. View the raw message.
drivers/staging/batman-adv/sysfs-class-net-mesh deleted +0 -69
69 lines not on this page · raw message
drivers/staging/batman-adv/translation-table.c deleted +0 -528
528 lines not on this page · raw message
drivers/staging/batman-adv/translation-table.h deleted +0 -45
45 lines not on this page · raw message
drivers/staging/batman-adv/types.h deleted +0 -271
271 lines not on this page · raw message
drivers/staging/batman-adv/unicast.c deleted +0 -343
343 lines not on this page · raw message
drivers/staging/batman-adv/unicast.h deleted +0 -35
Lines of this file are not shown. View the raw message.
drivers/staging/batman-adv/vis.c deleted +0 -903
903 lines not on this page · raw message
drivers/staging/batman-adv/vis.h deleted +0 -37
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.2.3
Part of the diff is not shown here. View the raw message.
David Miller
maintainerRe: [PATCH] Staging: batman-adv: Remove batman-adv from staging
From: Sven Eckelmann <[email protected]>
Date: Thu, 16 Dec 2010 23:28:17 +0100
Quoted 5 lines
batman-adv is now moved to
net/batman-adv/and can be removed from staging.Signed-off-by Sven Eckelmann <[email protected]>Cc David S. Miller <[email protected]>
As discussed in a previous email, please submit this to Greg KH for the staging tree, not to me for net-next-2.6.
Otherwise there will be all kinds of unnecessary merge conflicts.
A message that is not in the archive (sent off-list or not yet received): 1292538497-13604-1-git-send-email-sven-KaDOiPu9UxWEi8DpZVb4nw@public.gmane.org
Re: [PATCH] Staging: batman-adv: Remove batman-adv from staging
Quoted 7 lines · Sven Eckelmann
batman-adv is now moved to
net/batman-adv/and can be removed from staging.Signed-off-by Sven Eckelmann <[email protected]>Cc David S. Miller <[email protected]>---
This is actually for Greg because he has some patches in his tree for 2.6.38.
Wonderful, that worked great, and it's now applied.
Quoted 1 line
I just wanted to thank Greg and David for her work. Thanks :)
I used to have long enough hair that for one whole year my university thought I was female, sending me things in the mail that started out, "Dear Ms. Greg..."
Unfortunately, those days for me are long gone, but it is nice to see that my feminine side still shines through :)
greg k-h
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH] Staging: batman-adv: Remove batman-adv from staging
Quoted 12 lines · Greg KH
Quoted 8 lines · Sven Eckelmann
batman-adv is now moved to
net/batman-adv/and can be removed from staging.Signed-off-by Sven Eckelmann <[email protected]>Cc David S. Miller <[email protected]>---
This is actually for Greg because he has some patches in his tree for 2.6.38.Wonderful, that worked great, and it's now applied.
Quoted 8 lines
Quoted 1 line
I just wanted to thank Greg and David for her work. Thanks :)
I used to have long enough hair that for one whole year my university thought I was female, sending me things in the mail that started out, "Dear Ms. Greg..."
Unfortunately, those days for me are long gone, but it is nice to see that my feminine side still shines through :)
I am really sorry about that. Blame the bad weather for my inability to press quite important letters at the correct moment. I never wanted to say that you are female or that David and you are the same person. :)
thanks,
Sven