Commit 48ae866
[pfcwd] Update PFC storm detection logic for Mellanox platforms (sonic-net#1586)
Use "PFC duration" counters in micro seconds instead of quanta
SONiC PFCWD logic requires "pfc duration" value in micro seconds but in
SAI it was provided as quanta of time. So it required additional conversion
which used speed value to do such conversion and it could cause PFCWD to
detect storm on operationally down port in case of link flapping.
Now there are new SAI attributes that provide "pfc duration" in micro
seconds so PCWD storm detection logic is updated in order to use this
new "pfc duration" counters. Such algorithm change helps to avoid false
PFC storm detection in case of link flapping because conversion is not
needed anymore.
Signed-off-by: Volodymyr Samotiy <[email protected]>1 parent 850001f commit 48ae866
2 files changed
Lines changed: 45 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
340 | 378 | | |
341 | 379 | | |
342 | 380 | | |
| |||
367 | 405 | | |
368 | 406 | | |
369 | 407 | | |
370 | | - | |
371 | | - | |
372 | | - | |
| 408 | + | |
373 | 409 | | |
374 | 410 | | |
375 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 15 | | |
32 | 16 | | |
33 | 17 | | |
| |||
53 | 37 | | |
54 | 38 | | |
55 | 39 | | |
56 | | - | |
| 40 | + | |
57 | 41 | | |
58 | 42 | | |
59 | 43 | | |
| |||
79 | 63 | | |
80 | 64 | | |
81 | 65 | | |
82 | | - | |
| 66 | + | |
83 | 67 | | |
84 | 68 | | |
85 | 69 | | |
| |||
0 commit comments