函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\checksum.h Create Date:2022-07-27 06:51:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:csum_add

函数原型:static inline __wsum csum_add(__wsum csum, __wsum addend)

返回类型:__wsum

参数:

类型参数名称
__wsumcsum
__wsumaddend
59  res等于csum
60  res加等于addend
61  返回:(__force __wsum)(res + (res < addend))
调用者
名称描述
csum_sub
csum_block_add
csum_replace_by_diff
csum_replace4
__skb_checksum_validate_completeValidate (init) checksum based on checksum complete
skb_remcsum_processUpdate skbuf and packet to reflect the remote checksum offload operation.* When called, ptr indicates the starting point for skb->csum when* ip_summed is CHECKSUM_COMPLETE. If we need create checksum complete
__skb_gro_checksum_validate_complete
skb_gro_remcsum_process
IP6_ECN_set_ceNote:* IP_ECN_set_ce() has to tweak IPV4 checksum when setting CE,* meaning both changes have no effect on skb->csum if/when CHECKSUM_COMPLETE* In IPv6 case, no checksum compensates the change in IPv6 header,* so we have to update skb->csum.
udp_csum_outgoingdp_csum_outgoing - compute UDPv4/v6 checksum over fragments*@sk: socket we are writing to*@skb: sk_buff containing the filled-in UDP header* (checksum field must be zeroed out)
udp_csum