diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-15 17:56:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-15 22:52:01 -0400 |
commit | 04a0551c87363f100b04d28d7a15a632b70e18e7 (patch) | |
tree | 0e99521316fab64754104677c6fa6b6a63b3f922 /drivers/net/loopback.c | |
parent | 6f85a124d819e1cf33b16d064a6a656fd448a735 (diff) |
loopback: Drop obsolete ip_summed setting
Now that the network stack can handle inbound packets with partial
checksums, we should no longer clobber the ip_summed field in the
loopback driver. This is because CHECKSUM_UNNECESSARY implies that
the checksum field is actually valid which is not true for loopback
packets since it's only partial (and thus complemented).
This allows packets from lo to then be SNATed to an external source
while still preserving the checksum's validity.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/loopback.c')
-rw-r--r-- | drivers/net/loopback.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 489d53be2f5d..3b43bfd85a0f 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c | |||
@@ -75,9 +75,6 @@ static int loopback_xmit(struct sk_buff *skb, struct net_device *dev) | |||
75 | skb_orphan(skb); | 75 | skb_orphan(skb); |
76 | 76 | ||
77 | skb->protocol = eth_type_trans(skb,dev); | 77 | skb->protocol = eth_type_trans(skb,dev); |
78 | #ifndef LOOPBACK_MUST_CHECKSUM | ||
79 | skb->ip_summed = CHECKSUM_UNNECESSARY; | ||
80 | #endif | ||
81 | 78 | ||
82 | #ifdef LOOPBACK_TSO | 79 | #ifdef LOOPBACK_TSO |
83 | if (skb_is_gso(skb)) { | 80 | if (skb_is_gso(skb)) { |