git: 499d685b02d4 - stable/13 - xen/netback: do not attempt to connect in the Initialised state
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 08:07:03 UTC
The branch stable/13 has been updated by royger:
URL: https://cgit.FreeBSD.org/src/commit/?id=499d685b02d4c3ff5de83f6dc1ea2b2aab7d6909
commit 499d685b02d4c3ff5de83f6dc1ea2b2aab7d6909
Author: Roger Pau Monné <royger@FreeBSD.org>
AuthorDate: 2021-03-16 11:43:49 +0000
Commit: Roger Pau Monné <royger@FreeBSD.org>
CommitDate: 2022-04-12 08:05:47 +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.
Sponsored by: Citrix Systems R&D
(cherry picked from commit 4489124c04727a4aad418eec3148e0c8de23ff4d)
---
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;