mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
firewire net: Ensure checksumming in upper layer.
It is wrong to set skb->ip_summed to CHECKSUM_UNNECESSARY unless the device has already checked it. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4fbc5b20e2
commit
b577d7e2ad
@ -520,7 +520,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
|
||||
dev = netdev_priv(net);
|
||||
/* Write metadata, and then pass to the receive level */
|
||||
skb->dev = net;
|
||||
skb->ip_summed = CHECKSUM_UNNECESSARY; /* don't check it */
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
|
||||
/*
|
||||
* Parse the encapsulation header. This actually does the job of
|
||||
|
Loading…
Reference in New Issue
Block a user