aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSudheer Mogilappagari <[email protected]>2017-07-14 09:10:16 -0400
committerJeff Kirsher <[email protected]>2017-09-29 12:50:59 -0700
commit9a03449d3ea0f6b497ff3a3bf6203a5e72c7e6be (patch)
tree7e607e742a312844a633b0ba846dfc15fbca0b99 /tools/perf/scripts/python
parent16badf758b25bd00528246ab9af938296b9d368d (diff)
i40e: Fix link down message when interface is brought up
i40e_print_link_message() is intended to compare new link state with current link state and print log message only if the new state is different from current state. However in current driver the new state does not get updated when link is going down because of the if condition. When an interface is brought down, vsi->state is set to I40E_VSI_DOWN in i40e_vsi_close() and later i40e_print_link_message() does not get invoked in i40e_link_event due to if condition. Hence link down message doesn't appear when link is going down. The down state is seen later during i40e_open() and old state gets printed. The actual link state doesn't get updated in i40e_close() or i40e_open() but when i40e_handle_link_event is called inside i40e_clean_adminq_subtask. This change allows i40e_print_link_message() to be called when interface is going down and keeps the state information updated. Signed-off-by: Sudheer Mogilappagari <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions