netdev_rx_err() and netdev_tx_complete_err() get passed the error code, but currently use it only in debug messages. Retain error numbers and frequencey counts for up to NETDEV_MAX_UNIQUE_ERRORS (4) different errors for each of TX and RX. This allows the "ifstat" command to report the reasons for TX/RX errors in most cases, even in non-debug builds.tags/v0.9.6
|
|
||
193 |
|
193 |
|
194 |
|
194 |
|
195 |
|
195 |
|
|
196 |
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
196 |
|
207 |
|
197 |
|
208 |
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
|
209 |
|
|
|
210 |
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
|
|
206 |
|
215 |
|
207 |
|
216 |
|
208 |
|
217 |
|
|
|
||
250 |
|
259 |
|
251 |
|
260 |
|
252 |
|
261 |
|
253 |
|
|
|
254 |
|
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
255 |
|
266 |
|
256 |
|
267 |
|
257 |
|
268 |
|
|
|
||
317 |
|
317 |
|
318 |
|
318 |
|
319 |
|
319 |
|
320 |
|
|
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
|
324 |
|
|
|
325 |
|
|
|
326 |
|
|
|
327 |
|
|
|
|
320 |
|
|
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
|
324 |
|
|
|
325 |
|
|
|
326 |
|
|
|
327 |
|
|
328 |
|
328 |
|
329 |
|
329 |
|
330 |
|
330 |
|
|
|
||
332 |
|
332 |
|
333 |
|
333 |
|
334 |
|
334 |
|
335 |
|
|
|
336 |
|
|
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
337 |
|
339 |
|
338 |
|
340 |
|
339 |
|
341 |
|
|
|
||
392 |
|
392 |
|
393 |
|
393 |
|
394 |
|
394 |
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
399 |
|
399 |
|
400 |
|
400 |
|
401 |
|
401 |
|
|
|
||
409 |
|
409 |
|
410 |
|
410 |
|
411 |
|
411 |
|
412 |
|
|
|
|
412 |
|
|
|
413 |
|
|
413 |
|
414 |
|
414 |
|
415 |
|
415 |
|
416 |
|
|
|
||
45 |
|
45 |
|
46 |
|
46 |
|
47 |
|
47 |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
48 |
|
87 |
|
49 |
|
88 |
|
50 |
|
89 |
|
|
|
||
91 |
|
130 |
|
92 |
|
131 |
|
93 |
|
132 |
|
|
133 |
|
|
94 |
|
134 |
|
95 |
|
|
|
96 |
|
135 |
|
97 |
|
136 |
|
98 |
|
137 |
|
99 |
|
|
|
100 |
|
138 |
|
101 |
|
139 |
|
102 |
|
140 |
|
|
|
||
158 |
|
196 |
|
159 |
|
197 |
|
160 |
|
198 |
|
161 |
|
|
|
|
199 |
|
|
162 |
|
200 |
|
163 |
|
201 |
|
164 |
|
202 |
|
|
|
||
183 |
|
221 |
|
184 |
|
222 |
|
185 |
|
223 |
|
186 |
|
|
|
|
224 |
|
|
187 |
|
225 |
|
188 |
|
226 |
|
189 |
|
227 |
|
|
|
||
58 |
|
58 |
|
59 |
|
59 |
|
60 |
|
60 |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
61 |
|
80 |
|
62 |
|
81 |
|
63 |
|
82 |
|
|
|
||
69 |
|
88 |
|
70 |
|
89 |
|
71 |
|
90 |
|
72 |
|
|
|
73 |
|
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
74 |
|
95 |
|
75 |
|
96 |
|
76 |
|
97 |
|