On Tuesday, October 16, 2012 22:13:48 Martin Hundebøll wrote:
By adding batadv_send_skb_to_orig() in send.c, we can remove duplicate code that looks up the next hop and then calls batadv_send_skb_packet().
Furthermore, this prepares the upcoming new implementation of fragmentation, which requires the next hop to route packets.
Please note that this doesn't entirely remove the next-hop lookup in routing.c and unicast.c, since it is used by the current fragmentation code.
Also note that the next-hop info is removed from debug messages in translation-table.c, since it is looked up elsewhere.
Signed-off-by: Martin Hundebøll martin@hundeboll.net
v2: batadv_send_skb_to_orig() returns boolean and let the caller decide what to propagate. v3: forgot to add files before doing "git commit --amend". Sorry for the noise. v4: Changed the argument order of batadv_send_skb_to_orig() v5: Added kernel documentation. v6: Refined kernel doc.
routing.c | 37 +++++++----------------------- send.c | 33 +++++++++++++++++++++++++++ send.h | 3 +++ translation-table.c | 65 ++++++++++++++--------------------------------------- unicast.c | 8 +++---- vis.c | 35 ++++++++--------------------- 6 files changed, 74 insertions(+), 107 deletions(-)
Applied in revision 7e86840.
Thanks, Marek