diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-15 20:32:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-15 20:32:09 +0000 |
commit | 270bc6427b89c996ec7eb657dc66f20e4a3b297b (patch) | |
tree | 4554c0883b783548bf73f8290402ae36a0051a92 /target/linux/generic/patches-4.0 | |
parent | 6c434d5f06d22a5cb3bb94735803e746a88e553b (diff) | |
download | upstream-270bc6427b89c996ec7eb657dc66f20e4a3b297b.tar.gz upstream-270bc6427b89c996ec7eb657dc66f20e4a3b297b.tar.bz2 upstream-270bc6427b89c996ec7eb657dc66f20e4a3b297b.zip |
kernel: skip GRO for packets bridged to other hosts
Eliminates excessive skb copying when bridging from LAN to WLAN on
ramips.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44797
Diffstat (limited to 'target/linux/generic/patches-4.0')
-rw-r--r-- | target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch b/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch new file mode 100644 index 0000000000..fc3625848b --- /dev/null +++ b/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch @@ -0,0 +1,12 @@ +--- a/net/core/dev.c ++++ b/net/core/dev.c +@@ -4005,6 +4005,9 @@ static enum gro_result dev_gro_receive(s + enum gro_result ret; + int grow; + ++ if (skb->pkt_type == PACKET_OTHERHOST) ++ goto normal; ++ + if (!(skb->dev->features & NETIF_F_GRO)) + goto normal; + |