Lines Matching refs:DIM
1 Net DIM - Generic Network Dynamic Interrupt Moderation
13 - The Net DIM Algorithm
14 - Registering a Network Device to DIM
27 Dynamic Interrupt Moderation (DIM) (in networking) refers to changing the
31 runtime data sampled from the system. Net DIM is such a mechanism. In each
36 samples is also measured. Net DIM compares the current and the previous data and
40 number of wanted packets per event. The Net DIM algorithm ascribes importance to
44 Part II: The Net DIM Algorithm
47 Each iteration of the Net DIM algorithm follows these steps:
54 supplied by the driver registered to Net DIM. The previous data is the new data
65 certain percentage. Also, since Net DIM does not measure anything by itself, it
82 the Net DIM API and provided by the registered driver.
84 As you can see, Net DIM itself does not actively interact with the system. It
92 Part III: Registering a Network Device to DIM
95 Net DIM API exposes the main function net_dim(struct net_dim *dim,
97 DIM algorithm and has to be called every time the driver would like to check if
100 describes the state of DIM for a specific object (RX queue, TX queue,
108 In order to use Net DIM from a networking driver, the driver needs to call the
110 interrupt. Since Net DIM has a built-in moderation and it might decide to skip
114 using Net DIM to hold a struct net_dim as part of its data structure and use it
115 as the main Net DIM API object. The struct net_dim_sample should hold the latest
119 The net_dim() call itself does not return anything. Instead Net DIM relies on
123 the data flow. After the work is done, Net DIM algorithm needs to be set to
130 The following code demonstrates how to register a driver to Net DIM. The actual
137 /* Callback for net DIM to schedule on a decision to change moderation */
146 /* Signal net DIM work is done and it should move to next iteration */
162 /* Call net DIM */