firewire net: Ensure checksumming in upper layer.
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Sat, 19 Jan 2013 21:43:40 +0000 (21:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 04:16:03 +0000 (23:16 -0500)
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>
drivers/firewire/net.c

index e7a711f..df6a1ca 100644 (file)
@@ -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