kernel: skip GRO for packets bridged to other hosts
[15.05/openwrt.git] / target / linux / generic / patches-3.18 / 680-net-skip-gro-for-otherhost-packets.patch
1 --- a/net/core/dev.c
2 +++ b/net/core/dev.c
3 @@ -4003,6 +4003,9 @@ static enum gro_result dev_gro_receive(s
4         enum gro_result ret;
5         int grow;
6  
7 +       if (skb->pkt_type == PACKET_OTHERHOST)
8 +               goto normal;
9 +
10         if (!(skb->dev->features & NETIF_F_GRO))
11                 goto normal;
12