Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\udp.h Create Date:2022-07-28 19:16:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:udp_rcv_segment

Proto:static inline struct sk_buff *udp_rcv_segment(struct sock *sk, struct sk_buff *skb, bool ipv4)

Type:struct sk_buff

Parameter:

TypeParameterName
struct sock *sk
struct sk_buff *skb
boolipv4
470  features = NETIF_F_SG
476  If Not inet_get_convert_csum(sk) Then features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM
479  If pkt_type == MC/BRD frame looped back Then ip_summed = A checksum is set up to be offloaded to a device as described in the output description for CHECKSUM_PARTIAL
485  segs = __skb_gso_segment(skb, features, false)
486  If IS_ERR_OR_NULL(segs) Then
487  segs_nr = Warning: this field is not always filled in (UFO)!
489  atomic_add(segs_nr, & sk_drops)
490  SNMP_ADD_STATS(__UDPX_MIB(sk, ipv4), UDP_MIB_INERRORS, segs_nr)
491  free an sk_buff
492  Return NULL
495  consume_skb(skb)
496  Return segs