net_open() keeps one socket open across opens and, before reusing it,
compared only the device name. Every efinet unit is named "net", so
once one interface was open, opening another went out through the first.
net_configure() has the same gap since 48b29e9e54c5 made it keep its
socket: an interface configured for an initmd was reused for whatever
currdev named later.
Compare the unit as well. On a switch, also reset netdev_opens, which
net_cleanup() left alone: net_open() then skipped opening the new
interface and left the caller with no socket. And drop the cached DHCP
lease, which belongs to the old interface. bootp() would ask the new
interface's server to renew it, and a server with no record of the
lease refuses or ignores the request, so the switch waits until bootp()
gives up and falls back to DISCOVER.
Sponsored by: Rubicon Communications, LLC ("Netgate")