git: 4489124c0472 - main - xen/netback: do not attempt to connect in the Initialised state
Roger Pau Monné
royger at FreeBSD.org
Tue Mar 23 10:07:53 UTC 2021
The branch main has been updated by royger:
URL: https://cgit.FreeBSD.org/src/commit/?id=4489124c04727a4aad418eec3148e0c8de23ff4d
commit 4489124c04727a4aad418eec3148e0c8de23ff4d
Author: Roger Pau Monné <royger at FreeBSD.org>
AuthorDate: 2021-03-16 11:43:49 +0000
Commit: Roger Pau Monné <royger at FreeBSD.org>
CommitDate: 2021-03-23 10:07:09 +0000
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
---
sys/dev/xen/netback/netback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/xen/netback/netback.c b/sys/dev/xen/netback/netback.c
index 8710120ecef3..06d92093d903 100644
--- a/sys/dev/xen/netback/netback.c
+++ b/sys/dev/xen/netback/netback.c
@@ -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;
More information about the dev-commits-src-main
mailing list