From patchwork Mon Jun 21 08:10:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jedrzej Jagielski X-Patchwork-Id: 1494934 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G7j0J1QBNz9sW7 for ; Mon, 21 Jun 2021 18:11:11 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1DF6A400A9; Mon, 21 Jun 2021 08:11:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WOr6diCmafcO; Mon, 21 Jun 2021 08:11:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 28A42400C9; Mon, 21 Jun 2021 08:11:08 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 285D61BF41F for ; Mon, 21 Jun 2021 08:11:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 16DA3400C9 for ; Mon, 21 Jun 2021 08:11:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d-qSAKP9c9L1 for ; Mon, 21 Jun 2021 08:11:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by smtp2.osuosl.org (Postfix) with ESMTPS id A6AD1400A9 for ; Mon, 21 Jun 2021 08:11:05 +0000 (UTC) IronPort-SDR: FvCNS+GFwu9cmi15yEho4J5YfBuRYJ0SWS7alYTs4cg/81dYN7TETNNICN0ZwX980+uaDmHxHP zQIrmBr2QCwg== X-IronPort-AV: E=McAfee;i="6200,9189,10021"; a="186491709" X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="186491709" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2021 01:10:26 -0700 IronPort-SDR: pGJPr70spAjOYK+CEMj7121tSn4V1jmS5CKPMEL1zqc4VYrA7cfQvxunN+Wo863ji/quWjGQXD F5PtvVJSztsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,289,1616482800"; d="scan'208";a="453802992" Received: from amlin-018-224.igk.intel.com ([10.102.18.224]) by fmsmga008.fm.intel.com with ESMTP; 21 Jun 2021 01:10:25 -0700 From: =?utf-8?q?J=C4=99drzej_Jagielski?= To: intel-wired-lan@lists.osuosl.org Date: Mon, 21 Jun 2021 08:10:00 +0000 Message-Id: <1624263000-8709-1-git-send-email-jedrzej.jagielski@intel.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Subject: [Intel-wired-lan] [PATCH net-next v1] iavf: Add trace while removing device X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?J=C4=99drzej_Jagielski?= Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" 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: Jędrzej Jagielski Reported-by: kernel test robot --- drivers/net/ethernet/intel/iavf/iavf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index 4fead59..b2a5fcb 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -3973,6 +3973,7 @@ static void iavf_remove(struct pci_dev *pdev) err); } + dev_info(&adapter->pdev->dev, "Removing device\n"); /* Shut down all the garbage mashers on the detention level */ adapter->state = __IAVF_REMOVE; adapter->aq_required = 0;