Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dim\net_dim.c Create Date:2022-07-28 07:19:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:net_dim_stats_compare

Proto:static int net_dim_stats_compare(struct dim_stats *curr, struct dim_stats *prev)

Type:int

Parameter:

TypeParameterName
struct dim_stats *curr
struct dim_stats *prev
140  If Not ytes per msec Then Return If ytes per msec Then DIM_STATS_BETTER Else DIM_STATS_SAME
143  If Is a difference between values justifies taking an action.* We consider 10% difference as significant.(ytes per msec , ytes per msec ) Then Return If ytes per msec > ytes per msec Then DIM_STATS_BETTER Else DIM_STATS_WORSE
147  If Not packets per msec Then Return If packets per msec Then DIM_STATS_BETTER Else DIM_STATS_SAME
151  If Is a difference between values justifies taking an action.* We consider 10% difference as significant.(packets per msec , packets per msec ) Then Return If packets per msec > packets per msec Then DIM_STATS_BETTER Else DIM_STATS_WORSE
155  If Not vents per msec Then Return DIM_STATS_SAME
158  If Is a difference between values justifies taking an action.* We consider 10% difference as significant.(vents per msec , vents per msec ) Then Return If vents per msec < vents per msec Then DIM_STATS_BETTER Else DIM_STATS_WORSE
162  Return DIM_STATS_SAME
Caller
NameDescribe
net_dim_decision