diff options
| author | Jacob Keller <[email protected]> | 2017-07-10 13:23:11 -0700 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2017-10-02 08:07:57 -0700 |
| commit | dd5eede2b711350f684e8510300cb3762a821ae6 (patch) | |
| tree | da5b73b3d8b1196005720936259895ada83f0771 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | d876c1583bb1b7f7264880265b824e88b791aa5d (diff) | |
fm10k: avoid divide by zero in rare cases when device is resetting
It is possible that under rare circumstances the device is undergoing
a reset, such as when a PFLR occurs, and the device may be transmitting
simultaneously. In this case, we might attempt to divide by zero when
finding the proper r_idx. Instead, lets read the num_tx_queues once,
and make sure it's non-zero.
Signed-off-by: Jacob Keller <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions