From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] xen-netfront: enable device after manual module load Date: Mon, 08 Jan 2018 14:17:22 -0500 (EST) Message-ID: <20180108.141722.1413694733176935221.davem@davemloft.net> References: <20180105084216.21719-1-otubo@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 To: otubo@redhat.com Return-path: In-Reply-To: <20180105084216.21719-1-otubo@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org 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.