Subject: [PATCH net-next 2/3] l2tp: auto load IP modules

From: Stephen Hemminger <[email-masked]>
Date: Wed, 23 Sep 2015 21:33:35 -0700

When creating a IP encapsulated tunnel the necessary l2tp module
should be loaded. It already works for UDP encapsulation, it just
doesn't work for direct IP encap.

Signed-off-by: Stephen Hemminger <[email-masked]>

--- a/net/l2tp/l2tp_ip.c	2015-09-23 21:24:08.644656533 -0700
+++ b/net/l2tp/l2tp_ip.c	2015-09-23 21:24:08.640656514 -0700
@@ -655,3 +655,4 @@ MODULE_VERSION("1.0");
  * enums
  */
 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 2, IPPROTO_L2TP);
+MODULE_ALIAS_NET_PF_PROTO(PF_INET, IPPROTO_L2TP);
--- a/net/l2tp/l2tp_ip6.c	2015-09-23 21:24:08.644656533 -0700
+++ b/net/l2tp/l2tp_ip6.c	2015-09-23 21:24:08.640656514 -0700
@@ -801,3 +801,4 @@ MODULE_VERSION("1.0");
  * enums
  */
 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET6, 2, IPPROTO_L2TP);
+MODULE_ALIAS_NET_PF_PROTO(PF_INET6, IPPROTO_L2TP);