aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMarcin Szycik <[email protected]>2023-06-05 10:52:22 -0400
committerTony Nguyen <[email protected]>2023-07-17 10:08:22 -0700
commitc2ed2403f12c74a74a0091ed5d830e72c58406e8 (patch)
treef4d7e540834368cf98d5fd220cf51c53eda74ced /tools/perf/scripts/python/event_analyzing_sample.py
parenta77ed5c5b768e9649be240a2d864e5cd9c6a2015 (diff)
iavf: Wait for reset in callbacks which trigger it
There was a fail when trying to add the interface to bonding right after changing the MTU on the interface. It was caused by bonding interface unable to open the interface due to interface being in __RESETTING state because of MTU change. Add new reset_waitqueue to indicate that reset has finished. Add waiting for reset to finish in callbacks which trigger hw reset: iavf_set_priv_flags(), iavf_change_mtu() and iavf_set_ringparam(). We use a 5000ms timeout period because on Hyper-V based systems, this operation takes around 3000-4000ms. In normal circumstances, it doesn't take more than 500ms to complete. Add a function iavf_wait_for_reset() to reuse waiting for reset code and use it also in iavf_set_channels(), which already waits for reset. We don't use error handling in iavf_set_channels() as this could cause the device to be in incorrect state if the reset was scheduled but hit timeout or the waitng function was interrupted by a signal. Fixes: 4e5e6b5d9d13 ("iavf: Fix return of set the new channel count") Signed-off-by: Marcin Szycik <[email protected]> Co-developed-by: Dawid Wesierski <[email protected]> Signed-off-by: Dawid Wesierski <[email protected]> Signed-off-by: Sylwester Dziedziuch <[email protected]> Signed-off-by: Kamil Maziarz <[email protected]> Signed-off-by: Mateusz Palczewski <[email protected]> Tested-by: Rafal Romanowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions