函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:remcsum_adjust

函数原型:static inline __wsum remcsum_adjust(void *ptr, __wsum csum, int start, int offset)

返回类型:__wsum

参数:

类型参数名称
void *ptr
__wsumcsum
intstart
intoffset
162  psum等于ptroffset
166  csum等于csum_sub(csum, mputes the checksum of a memory block at buff, length len,* and adds in "sum" (32-bit)* returns a 32-bit number suitable for feeding into itself* or csum_tcpudp_magic* this function must be called with even lengths, except* for the last fragment, which )
169  delta等于csum_sub((__force__wsum)Fold a partial checksum, (__force__wsum) * psum)
171  psum等于Fold a partial checksum
173  返回:delta
调用者
名称描述
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_remcsum_process