summaryrefslogtreecommitdiffstats
path: root/fs/afs/dir.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-04-08 20:32:30 +0200
committerDavid S. Miller <davem@davemloft.net>2010-04-08 20:32:30 +0200
commit2626419ad5be1a054d350786b684b41d23de1538 (patch)
tree0fb43a4a6f01c9a50e3509b4240c018459dee12d /fs/afs/dir.c
parentudp: fix for unicast RX path optimization (diff)
downloadlinux-2626419ad5be1a054d350786b684b41d23de1538.tar.xz
linux-2626419ad5be1a054d350786b684b41d23de1538.zip
tcp: Set CHECKSUM_UNNECESSARY in tcp_init_nondata_skb
Back in commit 04a0551c87363f100b04d28d7a15a632b70e18e7 ("loopback: Drop obsolete ip_summed setting") we stopped setting CHECKSUM_UNNECESSARY in the loopback xmit. This is because such a setting was a lie since it implies that the checksum field of the packet is properly filled in. Instead what happens normally is that CHECKSUM_PARTIAL is set and skb->csum is calculated as needed. But this was only happening for TCP data packets (via the skb->ip_summed assignment done in tcp_sendmsg()). It doesn't happen for non-data packets like ACKs etc. Fix this by setting skb->ip_summed in the common non-data packet constructor. It already is setting skb->csum to zero. But this reminds us that we still have things like ip_output.c's ip_dev_loopback_xmit() which sets skb->ip_summed to the value CHECKSUM_UNNECESSARY, which Herbert's patch teaches us is not valid. So we'll have to address that at some point too. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs/dir.c')
0 files changed, 0 insertions, 0 deletions