Skip to content

Commit bdb9e5c

Browse files
jjagielskanguy11
authored andcommitted
iavf: Add trace while removing device
Add kernel trace that device was removed. Currently there is no such information. I.e. Host admin removes a PCI device from a VM, than on VM shall be info about the event. This patch adds info log to iavf_remove function. Signed-off-by: Arkadiusz Kubalewski <[email protected]> Signed-off-by: Jedrzej Jagielski <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 9f4651e commit bdb9e5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/intel/iavf/iavf_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4000,6 +4000,7 @@ static void iavf_remove(struct pci_dev *pdev)
40004000
if (iavf_lock_timeout(&adapter->crit_lock, 5000))
40014001
dev_warn(&adapter->pdev->dev, "failed to acquire crit_lock in %s\n", __FUNCTION__);
40024002

4003+
dev_info(&adapter->pdev->dev, "Removing device\n");
40034004
/* Shut down all the garbage mashers on the detention level */
40044005
iavf_change_state(adapter, __IAVF_REMOVE);
40054006
adapter->aq_required = 0;

0 commit comments

Comments
 (0)