From: Jedrzej Jagielski Date: Tue, 22 Jun 2021 13:43:48 +0000 (+0200) Subject: iavf: Add trace while removing device X-Git-Tag: v6.6.17~8491^2~286^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdb9e5c7aec73a7b8b5acab37587b6de1203e68d;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jedrzej Jagielski Tested-by: Konrad Jankowski Signed-off-by: Tony Nguyen --- diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index b1221aa..a6f10d9 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -4000,6 +4000,7 @@ static void iavf_remove(struct pci_dev *pdev) if (iavf_lock_timeout(&adapter->crit_lock, 5000)) dev_warn(&adapter->pdev->dev, "failed to acquire crit_lock in %s\n", __FUNCTION__); + dev_info(&adapter->pdev->dev, "Removing device\n"); /* Shut down all the garbage mashers on the detention level */ iavf_change_state(adapter, __IAVF_REMOVE); adapter->aq_required = 0;