net: add skb_checksum_setup
authorPaul Durrant <[email protected]>
Thu, 9 Jan 2014 10:02:46 +0000 (10:02 +0000)
committerDavid S. Miller <[email protected]>
Tue, 14 Jan 2014 22:24:19 +0000 (14:24 -0800)
commited1f50c3a7c1ad1b1b4d584308eab77d57a330f8
tree81bf10db834db5e50a915548acf87c492688ec0e
parentb86f81cca9442ce6cfbe76d10fb8d2c61122ae12
net: add skb_checksum_setup

This patch adds a function to set up the partial checksum offset for IP
packets (and optionally re-calculate the pseudo-header checksum) into the
core network code.
The implementation was previously private and duplicated between xen-netback
and xen-netfront, however it is not xen-specific and is potentially useful
to any network driver.

Signed-off-by: Paul Durrant <[email protected]>
Cc: David Miller <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Veaceslav Falico <[email protected]>
Cc: Alexander Duyck <[email protected]>
Cc: Nicolas Dichtel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/skbuff.h
net/core/skbuff.c