]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/net/smsc911x.c
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Sep 2010 02:06:22 +0000 (19:06 -0700)
commitbc8acf2c8c3e43fcc192762a9f964b3e9a17748b
treee3a91392771a22390e59c24fcb7bad3045ce17d1
parent7162f6691e9d39d8d866574687cddb3f1ec65d72
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>
56 files changed:
drivers/net/8139cp.c
drivers/net/acenic.c
drivers/net/atl1c/atl1c_main.c
drivers/net/atl1e/atl1e_main.c
drivers/net/atlx/atl1.c
drivers/net/b44.c
drivers/net/benet/be_main.c
drivers/net/bna/bnad.c
drivers/net/bnx2.c
drivers/net/bnx2x/bnx2x_cmn.c
drivers/net/cassini.c
drivers/net/chelsio/sge.c
drivers/net/cpmac.c
drivers/net/cxgb3/sge.c
drivers/net/cxgb4/sge.c
drivers/net/cxgb4vf/sge.c
drivers/net/dm9000.c
drivers/net/e1000/e1000_main.c
drivers/net/e1000e/netdev.c
drivers/net/gianfar.c
drivers/net/greth.c
drivers/net/ibmlana.c
drivers/net/igb/igb_main.c
drivers/net/igbvf/netdev.c
drivers/net/ipg.c
drivers/net/iseries_veth.c
drivers/net/ixgb/ixgb_main.c
drivers/net/ixgbe/ixgbe_fcoe.c
drivers/net/ixgbe/ixgbe_main.c
drivers/net/ixgbevf/ixgbevf_main.c
drivers/net/jme.c
drivers/net/ll_temac_main.c
drivers/net/macb.c
drivers/net/niu.c
drivers/net/ns83820.c
drivers/net/pasemi_mac.c
drivers/net/ps3_gelic_net.c
drivers/net/qla3xxx.c
drivers/net/qlcnic/qlcnic_init.c
drivers/net/qlge/qlge_main.c
drivers/net/r8169.c
drivers/net/s2io.c
drivers/net/sb1250-mac.c
drivers/net/sfc/rx.c
drivers/net/sh_eth.c
drivers/net/smsc911x.c
drivers/net/spider_net.c
drivers/net/stmmac/stmmac_main.c
drivers/net/tehuti.c
drivers/net/tg3.c
drivers/net/typhoon.c
drivers/net/via-velocity.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vxge/vxge-main.c
drivers/net/xilinx_emaclite.c
include/linux/skbuff.h