]> bbs.cooldavid.org Git - jme.git/commit
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:42:25 +0000 (15:42 +0800)
commit97984ab77008f4ad0e8b47de191596f82fb25d9b
tree178481a3d1700121dcbbbf7dc9212a39ef715add
parentbd7e5899931dce8feacc58ca8d2c9f540a159b88
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