Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\netdevice.h Create Date:2022-07-28 06:04:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:skb_gro_remcsum_process

Proto:static inline void *skb_gro_remcsum_process(struct sk_buff *skb, void *ptr, unsigned int off, size_t hdrlen, int start, int offset, struct gro_remcsum *grc, bool nopartial)

Type:void

Parameter:

TypeParameterName
struct sk_buff *skb
void *ptr
unsigned intoff
size_thdrlen
intstart
intoffset
struct gro_remcsum *grc
boolnopartial
2859  plen = hdrlen + max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, offset + sizeof(u16), start)
2861  BUG_ON(!csum_valid)
2863  If Not nopartial Then
2864  gro_remcsum_start = off + hdrlen + start
2865  Return ptr
2868  ptr = skb_gro_header_fast(skb, off)
2869  If skb_gro_header_hard(skb, off + plen) Then
2870  ptr = skb_gro_header_slow(skb, off + plen, off)
2871  If Not ptr Then Return NULL
2875  delta = remcsum_adjust(ptr + hdrlen, csum, start, offset)
2879  csum = csum_add(csum, delta)
2881  offset = off + hdrlen + offset
2882  delta = delta
2884  Return ptr