summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-11-06 22:19:37 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2013-11-07 20:15:52 +0100
commit4f883ea161933c0fe83da415a7b558233eeda87c (patch)
tree641301eea1127e5a693b180e806c46e213d1f478 /patches/collateral-evolutions
parentea572a878286f231306e37eceee6219caa9740ff (diff)
backports: remove usage of ipv6_stub
We can not easily backport ipv6_stub which provides some IPv6 function callbacks. These patches are removing usage of ipv6_stub which was introduces in this commit: commit 5f81bd2e5d804ca93f3ec8873451b22d2f454721 Author: Cong Wang <amwang@redhat.com> Date: Sat Aug 31 13:44:30 2013 +0800 ipv6: export a stub for IPv6 symbols used by vxlan Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'patches/collateral-evolutions')
-rw-r--r--patches/collateral-evolutions/network/80-ipv6_stub/INFO9
-rw-r--r--patches/collateral-evolutions/network/80-ipv6_stub/cdc_mbim.patch29
2 files changed, 38 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/80-ipv6_stub/INFO b/patches/collateral-evolutions/network/80-ipv6_stub/INFO
new file mode 100644
index 00000000..e244cda6
--- /dev/null
+++ b/patches/collateral-evolutions/network/80-ipv6_stub/INFO
@@ -0,0 +1,9 @@
+We can not easily backport ipv6_stub which provides some IPv6 function
+callbacks.
+These patches are removing usage of ipv6_stub which was introduces in
+this commit:
+commit 5f81bd2e5d804ca93f3ec8873451b22d2f454721
+Author: Cong Wang <amwang@redhat.com>
+Date: Sat Aug 31 13:44:30 2013 +0800
+
+ ipv6: export a stub for IPv6 symbols used by vxlan
diff --git a/patches/collateral-evolutions/network/80-ipv6_stub/cdc_mbim.patch b/patches/collateral-evolutions/network/80-ipv6_stub/cdc_mbim.patch
new file mode 100644
index 00000000..5c8b62e3
--- /dev/null
+++ b/patches/collateral-evolutions/network/80-ipv6_stub/cdc_mbim.patch
@@ -0,0 +1,29 @@
+--- a/drivers/net/usb/cdc_mbim.c
++++ b/drivers/net/usb/cdc_mbim.c
+@@ -184,6 +184,7 @@ error:
+ return NULL;
+ }
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)
+ /* Some devices are known to send Neigbor Solicitation messages and
+ * require Neigbor Advertisement replies. The IPv6 core will not
+ * respond since IFF_NOARP is set, so we must handle them ourselves.
+@@ -236,6 +237,7 @@ static bool is_neigh_solicit(u8 *buf, si
+ msg->icmph.icmp6_code == 0 &&
+ msg->icmph.icmp6_type == NDISC_NEIGHBOUR_SOLICITATION);
+ }
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0) */
+
+
+ static struct sk_buff *cdc_mbim_process_dgram(struct usbnet *dev, u8 *buf, size_t len, u16 tci)
+@@ -252,8 +254,10 @@ static struct sk_buff *cdc_mbim_process_
+ proto = htons(ETH_P_IP);
+ break;
+ case 0x60:
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0)
+ if (is_neigh_solicit(buf, len))
+ do_neigh_solicit(dev, buf, tci);
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0) */
+ proto = htons(ETH_P_IPV6);
+ break;
+ default: