From: Martin Hundebøll Date: Tue, 16 Oct 2012 14:13:48 +0000 (+0200) Subject: batman-adv: Add wrapper to look up neighbor and send skb X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~254^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb351ba0bba23f01af00e36bfe20897201f404fa;p=pandora-kernel.git batman-adv: Add wrapper to look up neighbor and send skb 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 Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- Reading git-diff-tree failed