• Paul Durrant's avatar
    net: add skb_checksum_setup · ed1f50c3
    Paul Durrant authored
    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: default avatarPaul Durrant <paul.durrant@citrix.com>
    Cc: David Miller <davem@davemloft.net>
    Cc: Eric Dumazet <edumazet@google.com>
    Cc: Veaceslav Falico <vfalico@redhat.com>
    Cc: Alexander Duyck <alexander.h.duyck@intel.com>
    Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ed1f50c3
skbuff.c 96.7 KB