drivers/net: avoid some skb->ip_summed initializations
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 2 Sep 2010 20:07:41 +0000 (13:07 -0700)
committerGuo-Fu Tseng <cooldavid@cooldavid.org>
Thu, 30 Sep 2010 07:48:56 +0000 (15:48 +0800)
commit08f5fcfacad3467f13f25eb11e3e39f87bea577f
treefbd812a5be9733c9462cff14d23ccbd13ca1cd89
parente516972854b5330713e192f72139986bcf70d1a5
drivers/net: avoid some skb->ip_summed initializations

fresh skbs have ip_summed set to CHECKSUM_NONE (0)

We can avoid setting again skb->ip_summed to CHECKSUM_NONE in drivers.

Introduce skb_checksum_none_assert() helper so that we keep this
assertion documented in driver sources.

Change most occurrences of :

skb->ip_summed = CHECKSUM_NONE;

by :

skb_checksum_none_assert(skb);

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
jme.c