cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

checksum.h (685B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
      4 */
      5
      6#ifndef _ASM_CHECKSUM_H
      7#define _ASM_CHECKSUM_H
      8
      9#define do_csum	do_csum
     10unsigned int do_csum(const void *voidptr, int len);
     11
     12/*
     13 * computes the checksum of the TCP/UDP pseudo-header
     14 * returns a 16-bit checksum, already complemented
     15 */
     16#define csum_tcpudp_nofold csum_tcpudp_nofold
     17__wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
     18			  __u32 len, __u8 proto, __wsum sum);
     19
     20#define csum_tcpudp_magic csum_tcpudp_magic
     21__sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
     22			  __u32 len, __u8 proto, __wsum sum);
     23
     24#include <asm-generic/checksum.h>
     25
     26#endif