Author: nbd Date: 2015-03-16 05:19:09 +0100 (Mon, 16 Mar 2015) New Revision: 44798
Modified: 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: add missing description for GRO optimization patch Signed-off-by: Felix Fietkau <[email protected]> Modified: 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 2015-03-15 20:32:09 UTC (rev 44797) +++ trunk/target/linux/generic/patches-3.18/680-net-skip-gro-for-otherhost-packets.patch 2015-03-16 04:19:09 UTC (rev 44798) @@ -1,3 +1,17 @@ +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 <[email protected]> + --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4003,6 +4003,9 @@ static enum gro_result dev_gro_receive(s Modified: 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 2015-03-15 20:32:09 UTC (rev 44797) +++ trunk/target/linux/generic/patches-3.19/680-net-skip-gro-for-otherhost-packets.patch 2015-03-16 04:19:09 UTC (rev 44798) @@ -1,3 +1,17 @@ +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 <[email protected]> + --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3967,6 +3967,9 @@ static enum gro_result dev_gro_receive(s Modified: 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 2015-03-15 20:32:09 UTC (rev 44797) +++ trunk/target/linux/generic/patches-4.0/680-net-skip-gro-for-otherhost-packets.patch 2015-03-16 04:19:09 UTC (rev 44798) @@ -1,3 +1,17 @@ +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 <[email protected]> + --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4005,6 +4005,9 @@ static enum gro_result dev_gro_receive(s _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
