diff mbox series

[LEDE-DEV,v3] kernel: add kmod-fou

Message ID 20180201194229.azvlehqbujh5gh6v@moc6.cz
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series [LEDE-DEV,v3] kernel: add kmod-fou | expand

Commit Message

Filip Moc Feb. 1, 2018, 7:42 p.m. UTC
Once installed fou kernel module allows you to use FOU (Foo over UDP)
and GUE (Generic UDP encapsulation) tunnel protocols.

To get ip fou command working you also need to install ip-full.

Signed-off-by: Filip Moc <lede@moc6.cz>
---

Notes:
    More info about FOU can be found here: https://lwn.net/Articles/614348/
    
    ip fou in iproute2 from v4.8.0 to v4.14.1 (currently in LEDE) is broken on
    big-endian systems. This is fixed in v4.15.0: 
      https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?h=v4.15.0&id=33f6dd23a51c4ed5afbf161317c8d01f003f2c2a

    v2->v3:
      - Replace AutoLoad with AutoProbe

 package/kernel/linux/modules/netsupport.mk | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
diff mbox series

Patch

diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 836034ad12..3521b94d6c 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -434,6 +434,28 @@  endef
 $(eval $(call KernelPackage,sit))
 
 
+define KernelPackage/fou
+  SUBMENU:=$(NETWORK_SUPPORT_MENU)
+  TITLE:=FOU and GUE decapsulation
+  DEPENDS:= \
+	+kmod-iptunnel \
+	+kmod-udptunnel4 \
+	+IPV6:kmod-udptunnel6
+  KCONFIG:= \
+	CONFIG_NET_FOU \
+	CONFIG_NET_FOU_IP_TUNNELS=y
+  FILES:=$(LINUX_DIR)/net/ipv4/fou.ko
+  AUTOLOAD:=$(call AutoProbe,fou)
+endef
+
+define KernelPackage/fou/description
+ Kernel module for FOU (Foo over UDP) and GUE (Generic UDP Encapsulation) tunnelling.
+ Requires Kernel 3.18 or newer.
+endef
+
+$(eval $(call KernelPackage,fou))
+
+
 define KernelPackage/ip6-tunnel
   SUBMENU:=$(NETWORK_SUPPORT_MENU)
   TITLE:=IP-in-IPv6 tunnelling