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_step

Proto:static int net_dim_step(struct dim *dim)

Type:int

Parameter:

TypeParameterName
struct dim *dim
106  If tired == Net DIM profiles:* There are different set of profiles for each CQ period mode.* There are different set of profiles for RX/TX CQs.* Each profile size must be of NET_DIM_PARAMS_NUM_PROFILES * 2 Then Return DIM_TOO_TIRED
110  Case tune_state == DIM_PARKING_ON_TOP
111  Case tune_state == DIM_PARKING_TIRED
112  Break
113  Case tune_state == DIM_GOING_RIGHT
114  If profile_ix == Net DIM profiles:* There are different set of profiles for each CQ period mode.* There are different set of profiles for RX/TX CQs.* Each profile size must be of NET_DIM_PARAMS_NUM_PROFILES - 1 Then Return DIM_ON_EDGE
116  profile_ix++
117  steps_right++
118  Break
119  Case tune_state == DIM_GOING_LEFT
120  If profile_ix == 0 Then Return DIM_ON_EDGE
122  profile_ix--
123  steps_left++
124  Break
127  tired++
128  Return DIM_STEPPED
Caller
NameDescribe
net_dim_exit_parking
net_dim_decision