X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fpatches-4.14%2F910-unaligned_access_hacks.patch;h=5dec120b03de18d7429d3b979214e4f664e77553;hb=30c07a56752ee6fd5f82022e05c80721ce0e7092;hp=41e58ce8c60cae6b2821e5507af1e2776fc80124;hpb=01793e8752aa8211d6d74c92722787c403e5420d;p=oweals%2Fopenwrt.git diff --git a/target/linux/ath79/patches-4.14/910-unaligned_access_hacks.patch b/target/linux/ath79/patches-4.14/910-unaligned_access_hacks.patch index 41e58ce8c6..5dec120b03 100644 --- a/target/linux/ath79/patches-4.14/910-unaligned_access_hacks.patch +++ b/target/linux/ath79/patches-4.14/910-unaligned_access_hacks.patch @@ -303,7 +303,7 @@ #endif /* _LINUX_TYPES_H */ --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c -@@ -1351,8 +1351,8 @@ struct sk_buff **inet_gro_receive(struct +@@ -1352,8 +1352,8 @@ struct sk_buff **inet_gro_receive(struct if (unlikely(ip_fast_csum((u8 *)iph, 5))) goto out_unlock; @@ -556,7 +556,7 @@ goto next_ht; --- a/net/ipv6/ip6_offload.c +++ b/net/ipv6/ip6_offload.c -@@ -220,7 +220,7 @@ static struct sk_buff **ipv6_gro_receive +@@ -221,7 +221,7 @@ static struct sk_buff **ipv6_gro_receive continue; iph2 = (struct ipv6hdr *)(p->data + off); @@ -610,7 +610,7 @@ #define IP6_MF 0x0001 #define IP6_OFFSET 0xFFF8 -@@ -444,8 +444,8 @@ static inline void __ipv6_addr_set_half( +@@ -437,8 +437,8 @@ static inline void __ipv6_addr_set_half( } #endif #endif @@ -621,7 +621,7 @@ } static inline void ipv6_addr_set(struct in6_addr *addr, -@@ -504,6 +504,8 @@ static inline bool ipv6_prefix_equal(con +@@ -497,6 +497,8 @@ static inline bool ipv6_prefix_equal(con const __be32 *a1 = addr1->s6_addr32; const __be32 *a2 = addr2->s6_addr32; unsigned int pdw, pbi; @@ -630,7 +630,7 @@ /* check complete u32 in prefix */ pdw = prefixlen >> 5; -@@ -512,7 +514,9 @@ static inline bool ipv6_prefix_equal(con +@@ -505,7 +507,9 @@ static inline bool ipv6_prefix_equal(con /* check incomplete u32 in prefix */ pbi = prefixlen & 0x1f; @@ -641,7 +641,7 @@ return false; return true; -@@ -656,13 +660,13 @@ static inline void ipv6_addr_set_v4mappe +@@ -634,13 +638,13 @@ static inline void ipv6_addr_set_v4mappe */ static inline int __ipv6_addr_diff32(const void *token1, const void *token2, int addrlen) { @@ -657,7 +657,7 @@ if (xb) return i * 32 + 31 - __fls(ntohl(xb)); } -@@ -831,17 +835,18 @@ static inline int ip6_default_np_autolab +@@ -809,17 +813,18 @@ static inline int ip6_default_np_autolab static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, __be32 flowlabel) {