/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.3*/45#ifndef _ASM_CHECKSUM_H6#define _ASM_CHECKSUM_H78#define do_csum do_csum9unsigned int do_csum(const void *voidptr, int len);1011/*12* computes the checksum of the TCP/UDP pseudo-header13* returns a 16-bit checksum, already complemented14*/15#define csum_tcpudp_nofold csum_tcpudp_nofold16__wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,17__u32 len, __u8 proto, __wsum sum);1819#define csum_tcpudp_magic csum_tcpudp_magic20__sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,21__u32 len, __u8 proto, __wsum sum);2223#include <asm-generic/checksum.h>2425#endif262728