Commit b577d7e2 authored by YOSHIFUJI Hideaki / 吉藤英明's avatar YOSHIFUJI Hideaki / 吉藤英明 Committed by David S. Miller

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: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4fbc5b20
...@@ -520,7 +520,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net, ...@@ -520,7 +520,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
dev = netdev_priv(net); dev = netdev_priv(net);
/* Write metadata, and then pass to the receive level */ /* Write metadata, and then pass to the receive level */
skb->dev = net; 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 * Parse the encapsulation header. This actually does the job of
......
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