Commit f22f8567 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

loopback: Enable TSO

This patch enables TSO since the loopback device is naturally
capable of handling packets of any size.  This also means that
we won't enable GSO on lo which is good until GSO is fixed to
preserve netfilter state as netfilter treats loopback packets
in a special way.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e4119a43
...@@ -234,9 +234,7 @@ static void loopback_setup(struct net_device *dev) ...@@ -234,9 +234,7 @@ static void loopback_setup(struct net_device *dev)
dev->type = ARPHRD_LOOPBACK; /* 0x0001*/ dev->type = ARPHRD_LOOPBACK; /* 0x0001*/
dev->flags = IFF_LOOPBACK; dev->flags = IFF_LOOPBACK;
dev->features = NETIF_F_SG | NETIF_F_FRAGLIST dev->features = NETIF_F_SG | NETIF_F_FRAGLIST
#ifdef LOOPBACK_TSO
| NETIF_F_TSO | NETIF_F_TSO
#endif
| NETIF_F_NO_CSUM | NETIF_F_NO_CSUM
| NETIF_F_HIGHDMA | NETIF_F_HIGHDMA
| NETIF_F_LLTX | NETIF_F_LLTX
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment