diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-18 18:22:41 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-18 18:22:41 +0000 |
commit | b011293d0be54dc724039acb0450dc8a6666ba32 (patch) | |
tree | 53fd6c3483b758f5e3c4a1e8377f475f1a7fc8c0 /target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch | |
parent | 17afb853eec6dc4f39f0815831379be004f98cc5 (diff) | |
download | upstream-b011293d0be54dc724039acb0450dc8a6666ba32.tar.gz upstream-b011293d0be54dc724039acb0450dc8a6666ba32.tar.bz2 upstream-b011293d0be54dc724039acb0450dc8a6666ba32.zip |
kernel: replace GRO optimization patch with a new one that supports VLANs/bridges with different MAC addresses
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44877
Diffstat (limited to 'target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch')
-rw-r--r-- | target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch b/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch deleted file mode 100644 index 292d02174a..0000000000 --- a/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch +++ /dev/null @@ -1,26 +0,0 @@ -Subject: NET: skip GRO for otherhost packets - -For network drivers using napi_gro_receive, packets are run through GRO, -even when the destination MAC address does not match, and they're supposed -to be delivered to another host behind a different bridge port. - -This can be very expensive, because for drivers without TSO or scatter- -gather, this can only be undone by copying the skb and checksumming it -again. - -Fix this by leaving skbs with PACKET_OTHERHOST untouched. - -Signed-off-by: Felix Fietkau <nbd@openwrt.org> - ---- a/net/core/dev.c -+++ b/net/core/dev.c -@@ -3967,6 +3967,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; - |