Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ip6_make_flowlabel

Proto:static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb, __be32 flowlabel, bool autolabel, struct flowi6 *fl6)

Type:__be32

Parameter:

TypeParameterName
struct net *net
struct sk_buff *skb
__be32flowlabel
boolautolabel
struct flowi6 *fl6
874  flowlabel &= IPV6_FLOWLABEL_MASK
876  If flowlabel || auto_flowlabels == Sysctl settings for net ipv6.auto_flowlabels || Not autolabel && auto_flowlabels != IP6_AUTO_FLOW_LABEL_FORCED Then Return flowlabel
882  hash = skb_get_hash_flowi6(skb, fl6)
888  hash = l32 - rotate a 32-bit value left*@word: value to rotate*@shift: bits to roll
890  flowlabel = hash & IPV6_FLOWLABEL_MASK
892  If flowlabel_state_ranges Then flowlabel |= IPV6_FLOWLABEL_STATELESS_FLAG
895  Return flowlabel