The branch, master has been created at ea0a7b50fbd7b711fd23a2b3e8cae62b41011eae (commit)
- Shortlog ------------------------------------------------------------ commit ea0a7b50fbd7b711fd23a2b3e8cae62b41011eae Author: Simon Wunderlich siwu@hrz.tu-chemnitz.de Date: Wed Dec 30 04:38:07 2009 +0000
batman-adv: fix regression in the regression fix
null-initialized fields instead of the source fields were used to allocate and copy the incoming HNA buffer ...
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
commit 773bed14e9ec59cc2d86ddb415447423d2e5215f Author: Marek Lindner lindner_marek@yahoo.de Date: Wed Dec 30 03:36:43 2009 +0000
batman-adv: fix kmalloc regressions
The previous patch kmalloc introduced some regressions that this patch tries to solve.
Signed-off-by: Marek Lindner lindner_marek@yahoo.de Acked-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
commit 4f987bc12fd99a5094a773c6c5c9e504cc42dbaf Author: Simon Wunderlich siwu@hrz.tu-chemnitz.de Date: Wed Dec 30 01:33:46 2009 +0000
batman-adv: check all kmalloc()s
there are some kmallocs left which are not checked whether they succeeds or not, which might lead to corrupted data structures if the system memory is full. This patch should clean up the remaining unchecked kmalloc()s.
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
commit 36aefc6f9c381b8228a0d5d6ed2458329781eb1d Author: Andrew Lunn andrew@lunn.ch Date: Wed Dec 30 00:28:34 2009 +0000
Staging: batman-adv: Allow the MAC address to be set
Some embedded devices have very limited sources of entropy for the random number generator. It has been observed that the random MAC address on the interface bat0 is not always random. When testing with a collection of identical hardware, sometimes the bat0 device the same MAC address on multiple devices, causing mayhem. This patch allows the MAC address to be set by the user.
Signed-off-by: Andrew Lunn andrew@lunn.ch Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
commit fe28a94c01e14fc1a1a7b1306eaac518a474427f Author: Simon Wunderlich siwu@hrz.tu-chemnitz.de Date: Tue Dec 29 15:47:31 2009 +0000
batman-adv: receive packets directly using skbs
This patch removes the (ugly and racy) packet receiving thread and the kernel socket usage. Instead, packets are received directly by registering the ethernet type and handling skbs instead of self-allocated buffers.
Some consequences and comments:
* we don't copy the payload data when forwarding/sending/receiving data anymore. This should boost performance. * packets from/to different interfaces can be (theoretically) processed simultaneously. Only the big originator hash lock might be in the way. * no more polling or sleeping/wakeup/scheduling issues when receiving packets * this might introduce new race conditions. * aggregation and vis code still use packet buffers and are not (yet) converted. * all spinlocks were converted to irqsave/restore versions to solve some lifelock issues when preempted. This might be overkill, some of these locks might be reverted later. * skb copies are only done if neccesary to avoid overhead
performance differences:
* we made some "benchmarks" with intel laptops. * bandwidth on Gigabit Ethernet increased from ~500 MBit/s to ~920 MBit/s * ping latency decresed from ~2ms to ~0.2 ms
I did some tests on my 9 node qemu environment and could confirm that usual sending/receiving, forwarding, vis, batctl ping etc works.
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de Acked-by: Sven Eckelmann sven.eckelmann@gmx.de Acked-by: Marek Lindner lindner_marek@yahoo.de Acked-by: Linus Lüssing linus.luessing@web.de
commit 7a61e77fd20d19e693690f779174cd5bfca84d72 Author: Marek Lindner lindner_marek@yahoo.de Date: Tue Dec 29 13:23:35 2009 +0000
batman-adv: mark trunk as 0.3.0 alpha
The git repository contains a newly created maint(enance) branch which becomes the batman-adv stable branch. Only bugfixes and lightweight interface changes needed for the linux kernel integration will be made available there. All new features go into the 0.3-branch.
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
-----------------------------------------------------------------------