Author: nbd Date: 2015-03-15 21:32:09 +0100 (Sun, 15 Mar 2015) New Revision: 44797
Added: trunk/target/linux/generic/patches-3.18/680-net-skip-gro-for-otherhost-packets.patch trunk/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch trunk/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch Log: 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 <[email protected]> Added: trunk/target/linux/generic/patches-3.18/680-net-skip-gro-for-otherhost-packets.patch =================================================================== --- trunk/target/linux/generic/patches-3.18/680-net-skip-gro-for-otherhost-packets.patch (rev 0) +++ trunk/target/linux/generic/patches-3.18/680-net-skip-gro-for-otherhost-packets.patch 2015-03-15 20:32:09 UTC (rev 44797) @@ -0,0 +1,12 @@ +--- a/net/core/dev.c ++++ b/net/core/dev.c +@@ -4003,6 +4003,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; + Added: trunk/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch =================================================================== --- trunk/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch (rev 0) +++ trunk/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch 2015-03-15 20:32:09 UTC (rev 44797) @@ -0,0 +1,12 @@ +--- 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; + Added: trunk/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch =================================================================== --- trunk/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch (rev 0) +++ trunk/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch 2015-03-15 20:32:09 UTC (rev 44797) @@ -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; + _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
