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:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:net_dim

Proto:void net_dim(struct dim *dim, struct dim_sample end_sample)

Type:void

Parameter:

TypeParameterName
struct dim *dim
struct dim_sampleend_sample
224  Case state == DIM_MEASURE_IN_PROGRESS
225  nevents = Calculate the gap between two values.* Take wrap-around and variable size into consideration.(BITS_PER_TYPE(u16), event_ctr, event_ctr)
228  If nevents < Number of events between DIM iterations.* Causes a moderation of the algorithm run. Then Break
230  dim_calc_stats( & start_sample, & end_sample, & curr_stats)
231  If net_dim_decision( & curr_stats, dim) Then
234  Break
237  Case state == DIM_START_MEASURE
238  dim_update_sample - set a sample's fields with given values*@event_ctr: number of events to set*@packets: number of packets to set*@bytes: number of bytes to set*@s: DIM sample
240  state = DIM_MEASURE_IN_PROGRESS
241  Break
242  Case state == DIM_APPLY_NEW_PROFILE
243  Break