Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932736AbeAHTR2 (ORCPT + 1 other); Mon, 8 Jan 2018 14:17:28 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:46816 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932686AbeAHTRZ (ORCPT ); Mon, 8 Jan 2018 14:17:25 -0500 Date: Mon, 08 Jan 2018 14:17:22 -0500 (EST) Message-Id: <20180108.141722.1413694733176935221.davem@davemloft.net> To: otubo@redhat.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, xen-devel@lists.xenproject.org, jgross@suse.com, boris.ostrovsky@oracle.com, vkuznets@redhat.com, mgamal@redhat.com, cavery@redhat.com Subject: Re: [PATCH] xen-netfront: enable device after manual module load From: David Miller In-Reply-To: <20180105084216.21719-1-otubo@redhat.com> References: <20180105084216.21719-1-otubo@redhat.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 08 Jan 2018 11:17:25 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Eduardo Otubo Date: Fri, 5 Jan 2018 09:42:16 +0100 > When loading the module after unloading it, the network interface would > not be enabled and thus wouldn't have a backend counterpart and unable > to be used by the guest. > > The guest would face errors like: > > [root@guest ~]# ethtool -i eth0 > Cannot get driver information: No such device > > [root@guest ~]# ifconfig eth0 > eth0: error fetching interface information: Device not found > > This patch initializes the state of the netfront device whenever it is > loaded manually, this state would communicate the netback to create its > device and establish the connection between them. > > Signed-off-by: Eduardo Otubo Applied, thank you.