xen/netback: do not attempt to connect in the Initialised state

Only attempt to fetch the configuration data and connect the shared
ring once the frontend has switched to the 'Connected' state. This
seems to be inline with what Linux netback does, and is required to
make newer versions of NetBSD netfront work, since NetBSD only
publishes the required configuration before switching to the Connected
state.

MFC after:	1 week
Sponsored by:	Citrix Systems R&D
This commit is contained in:
Roger Pau Monné 2021-03-16 12:43:49 +01:00
parent be97fc8dce
commit 4489124c04

View File

@ -1392,8 +1392,8 @@ xnb_frontend_changed(device_t dev, XenbusState frontend_state)
switch (frontend_state) {
case XenbusStateInitialising:
break;
case XenbusStateInitialised:
break;
case XenbusStateConnected:
xnb_connect(xnb);
break;