From: Tom Herbert Date: Tue, 4 Nov 2014 17:06:51 +0000 (-0800) Subject: net: Move fou_build_header into fou.c and refactor X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~274^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63487babf08d6d67483c67ed21d8cea6674a44ec;p=pandora-kernel.git net: Move fou_build_header into fou.c and refactor Move fou_build_header out of ip_tunnel.c and into fou.c splitting it up into fou_build_header, gue_build_header, and fou_build_udp. This allows for other users for TX of FOU or GUE. Change ip_tunnel_encap to call fou_build_header or gue_build_header based on the tunnel encapsulation type. Similarly, added fou_encap_hlen and gue_encap_hlen functions which are called by ip_encap_hlen. New net/fou.h has prototypes and defines for this. Added NET_FOU_IP_TUNNELS configuration. When this is set, IP tunnels can use FOU/GUE and fou module is also selected. Signed-off-by: Tom Herbert Signed-off-by: David S. Miller --- Reading git-diff-tree failed