Author: marek
Date: 2010-06-17 10:55:18 +0200 (Thu, 17 Jun 2010)
New Revision: 1699
Modified:
trunk/batman-adv-kernelland/hard-interface.c
Log:
batman-adv: use rx_handler_data pointer to store net_bridge_port pointer
Register net_bridge_port pointer as rx_handler data pointer. As br_port is
removed from struct net_device, another netdev priv_flag is added to indicate
the device serves as a bridge port. Also rcuized pointers are now correctly
dereferenced in br_fdb.c and in netfilter parts.
Signed-off-by: Jiri Pirko <jpirko(a)redhat.com>
Signed-off-by: David S. Miller <davem(a)davemloft.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Modified: trunk/batman-adv-kernelland/hard-interface.c
===================================================================
--- trunk/batman-adv-kernelland/hard-interface.c 2010-06-10 07:50:33 UTC (rev 1698)
+++ trunk/batman-adv-kernelland/hard-interface.c 2010-06-17 08:55:18 UTC (rev 1699)
@@ -74,7 +74,7 @@
#endif
/* Device is being bridged */
- /* if (net_dev->br_port != NULL)
+ /* if (net_dev->priv_flags & IFF_BRIDGE_PORT)
return 0; */
return 1;
Author: marek
Date: 2010-06-10 09:50:33 +0200 (Thu, 10 Jun 2010)
New Revision: 1698
Modified:
trunk/batman-adv-kernelland/bat_debugfs.c
Log:
batman-adv: Ignore debugfs on kernels without debugfs support
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 a
crash during the unload of the module.
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Modified: trunk/batman-adv-kernelland/bat_debugfs.c
===================================================================
--- trunk/batman-adv-kernelland/bat_debugfs.c 2010-06-10 07:50:32 UTC (rev 1697)
+++ trunk/batman-adv-kernelland/bat_debugfs.c 2010-06-10 07:50:33 UTC (rev 1698)
@@ -99,6 +99,8 @@
void debugfs_init(void)
{
bat_debugfs = debugfs_create_dir(DEBUGFS_BAT_SUBDIR, NULL);
+ if (bat_debugfs == ERR_PTR(-ENODEV))
+ bat_debugfs = NULL;
}
void debugfs_destroy(void)
Author: marek
Date: 2010-06-10 09:50:32 +0200 (Thu, 10 Jun 2010)
New Revision: 1697
Modified:
trunk/batman-adv-kernelland/compat.h
Log:
batman-adv: Use kobject_unregister in kernel before 2.6.25
kobject_unregister was replaced in v2.6.24-172-gc10997f by kobject_put.
The old version of kobject_put before v2.6.24-169-g0f4dafc worked
different and couldn't cleanup everything depending on the state as it
wasn't saved inside the kobject.
Reported-by: Simon Wunderlich <siwu(a)hrz.tu-chemnitz.de>
Signed-off-by: Marek Lindner <lindner_marek(a)yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Modified: trunk/batman-adv-kernelland/compat.h
===================================================================
--- trunk/batman-adv-kernelland/compat.h 2010-06-09 21:09:13 UTC (rev 1696)
+++ trunk/batman-adv-kernelland/compat.h 2010-06-10 07:50:32 UTC (rev 1697)
@@ -130,6 +130,8 @@
return kobj;
}
+#define kobject_put(kobj) kobject_unregister(kobj)
+
#endif /* < KERNEL_VERSION(2, 6, 25) */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
Author: axel
Date: 2010-06-08 19:53:36 +0200 (Tue, 08 Jun 2010)
New Revision: 1693
Modified:
trunk/batman-experimental/posix/tunnel.c
Log:
tunnel.c fix gw-speed bits, thanks to Sven Eckelmann
We want to get bits .OOOO... and not as the mask would suggest .OOOOO..
when we decode the encoded bits for the download part of the gateway
speed.
Modified: trunk/batman-experimental/posix/tunnel.c
===================================================================
--- trunk/batman-experimental/posix/tunnel.c 2010-06-08 17:46:46 UTC (rev 1692)
+++ trunk/batman-experimental/posix/tunnel.c 2010-06-08 17:53:36 UTC (rev 1693)
@@ -463,7 +463,8 @@
static void get_gw_speeds( unsigned char class, int *down, int *up ) {
char sbit = (class&0x80)>>7;
- char dpart = (class&0x7C)>>3;
+// char dpart = (class&0x7C)>>3;
+ char dpart = (class&0x78)>>3;
char upart = (class&0x07);
*down= 32*(sbit+2)*(1<<dpart);
The tag, GregKH-20100606 has been created
at e36109825a5d38db310a87e8cee439add80fdc91 (commit)
- Shortlog ------------------------------------------------------------
commit e36109825a5d38db310a87e8cee439add80fdc91
Merge: a1a9b2b f720902
Author: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Date: Sun Jun 6 20:28:45 2010 +0200
Merge branch 'maint' into linux
Conflicts:
drivers/staging/batman-adv/bat_printk.c
drivers/staging/batman-adv/compat.h
-----------------------------------------------------------------------
--
batman-adv