]> git.baikalelectronics.ru Git - kernel.git/commit
loopback: Drop obsolete ip_summed setting
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Aug 2008 21:56:37 +0000 (14:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Aug 2008 02:52:01 +0000 (19:52 -0700)
commit0d064e4c75c70a510af78562b9e36796035246e5
tree0e99521316fab64754104677c6fa6b6a63b3f922
parent89517d98e559f7714ba37833c541f6a0973b7893
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>
drivers/net/loopback.c