mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
MFC: r282908
netfront: wait for backend to connect before sending ARP Sponsored by: Citrix Systems R&D
This commit is contained in:
parent
0e545d0456
commit
edc9f99bb6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=283218
@ -683,7 +683,6 @@ netfront_backend_changed(device_t dev, XenbusState newstate)
|
|||||||
switch (newstate) {
|
switch (newstate) {
|
||||||
case XenbusStateInitialising:
|
case XenbusStateInitialising:
|
||||||
case XenbusStateInitialised:
|
case XenbusStateInitialised:
|
||||||
case XenbusStateConnected:
|
|
||||||
case XenbusStateUnknown:
|
case XenbusStateUnknown:
|
||||||
case XenbusStateClosed:
|
case XenbusStateClosed:
|
||||||
case XenbusStateReconfigured:
|
case XenbusStateReconfigured:
|
||||||
@ -695,13 +694,15 @@ netfront_backend_changed(device_t dev, XenbusState newstate)
|
|||||||
if (network_connect(sc) != 0)
|
if (network_connect(sc) != 0)
|
||||||
break;
|
break;
|
||||||
xenbus_set_state(dev, XenbusStateConnected);
|
xenbus_set_state(dev, XenbusStateConnected);
|
||||||
#ifdef INET
|
|
||||||
netfront_send_fake_arp(dev, sc);
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case XenbusStateClosing:
|
case XenbusStateClosing:
|
||||||
xenbus_set_state(dev, XenbusStateClosed);
|
xenbus_set_state(dev, XenbusStateClosed);
|
||||||
break;
|
break;
|
||||||
|
case XenbusStateConnected:
|
||||||
|
#ifdef INET
|
||||||
|
netfront_send_fake_arp(dev, sc);
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user