net: use CHECKSUM_NONE instead of magic number
authorCesar Eduardo Barros <cesarb@cesarb.net>
Sat, 26 Mar 2011 05:10:30 +0000 (05:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2011 06:35:05 +0000 (23:35 -0700)
Two places in the kernel were doing skb->ip_summed = 0.

Change both to skb->ip_summed = CHECKSUM_NONE, which is more readable.

Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ksz884x.c
net/ipv6/ip6mr.c

index 540a8dcbcc46d805885c8762eca46e3303d25e6e..7f7d5708a658b61d8979808c43e360896e57dfb0 100644 (file)
@@ -4898,7 +4898,7 @@ static netdev_tx_t netdev_tx(struct sk_buff *skb, struct net_device *dev)
                                goto unlock;
                        }
                        skb_copy_and_csum_dev(org_skb, skb->data);
-                       org_skb->ip_summed = 0;
+                       org_skb->ip_summed = CHECKSUM_NONE;
                        skb->len = org_skb->len;
                        copy_old_skb(org_skb, skb);
                }
index 7ff0343e05c72e330f213cec2a7ef248e5a8a76a..29e48593bf22c3e356bed011bdfbc9b9c2ad9baa 100644 (file)
@@ -663,7 +663,7 @@ static int pim6_rcv(struct sk_buff *skb)
        skb_pull(skb, (u8 *)encap - skb->data);
        skb_reset_network_header(skb);
        skb->protocol = htons(ETH_P_IPV6);
-       skb->ip_summed = 0;
+       skb->ip_summed = CHECKSUM_NONE;
        skb->pkt_type = PACKET_HOST;
 
        skb_tunnel_rx(skb, reg_dev);