aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-02-18 17:34:17 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-02-18 17:34:17 +0000
commit39e0aea2ae1d21b117348a7e3a990a6eb5ed7f55 (patch)
treec8777c20e0703ddaa96de437c1dc5101e5b188a8 /target/linux/ar71xx
parent8ed16ce49af4c63c4a495b1d9d040a64e6e1936a (diff)
downloadupstream-39e0aea2ae1d21b117348a7e3a990a6eb5ed7f55.tar.gz
upstream-39e0aea2ae1d21b117348a7e3a990a6eb5ed7f55.tar.bz2
upstream-39e0aea2ae1d21b117348a7e3a990a6eb5ed7f55.zip
ar71xx: fix unaligned access hacks for tcp timestamps
This missing bit of the hack saves hugely on instruction traps on tcp connections to ar71xx based routers. Patch-by: Dave Taht <dave.taht@bufferbloat.net> Patchwork: http://patchwork.openwrt.org/patch/4905/ [juhosg: adjust subject, refresh kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39626 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/patches-3.10/902-unaligned_access_hacks.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/patches-3.10/902-unaligned_access_hacks.patch b/target/linux/ar71xx/patches-3.10/902-unaligned_access_hacks.patch
index a0b5824850..20f5f1c0e2 100644
--- a/target/linux/ar71xx/patches-3.10/902-unaligned_access_hacks.patch
+++ b/target/linux/ar71xx/patches-3.10/902-unaligned_access_hacks.patch
@@ -900,8 +900,9 @@
- tp->rx_opt.rcv_tsval = ntohl(*ptr);
+ tp->rx_opt.rcv_tsval = get_unaligned_be32(ptr);
++ptr;
- if (*ptr)
+- if (*ptr)
- tp->rx_opt.rcv_tsecr = ntohl(*ptr) - tp->tsoffset;
++ if (net_hdr_word(ptr))
+ tp->rx_opt.rcv_tsecr = get_unaligned_be32(ptr) -
+ tp->tsoffset;
else