[PATCH] ibmveth: Harden driver initilisation
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 3 Oct 2006 17:24:23 +0000 (12:24 -0500)
committerJeff Garzik <jeff@garzik.org>
Thu, 5 Oct 2006 10:43:23 +0000 (06:43 -0400)
commitbbedefccc6b0da43cfaf785dac89c88bc59cb6ed
tree331fe1b4cd7eab50f7f20254d93d30558b67d1eb
parent489b10c1f63fafcb89c330a0603694652068132a
[PATCH] ibmveth: Harden driver initilisation

This patch has been floating around for a while now, Santi originally
sent it in March: http://www.spinics.net/lists/netdev/msg00471.html

After a kexec the ibmveth driver will fail when trying to register
with the Hypervisor because the previous kernel has not unregistered.

So if the registration fails, we unregister and then try again.

We don't unconditionally unregister, because we don't want to disturb
the regular code path for 99% of users.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Santiago Leon <santil@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ibmveth.c