[undi] Ensure only one UNDI instance is loaded
commitb7af0aa34ee3e35ba4f94f4104c29b299bc0ed0d
authorStefan Hajnoczi <stefanha@gmail.com>
Fri, 12 Feb 2010 18:06:34 +0000 (12 18:06 +0000)
committerMarty Connor <mdc@etherboot.org>
Wed, 24 Feb 2010 17:58:29 +0000 (24 12:58 -0500)
treea5f4c783c2d3ebbba867c4f3c2505fd40992db86
parentcd9c94851bd62bad6bbcb64dd47a8d86bb428b64
[undi] Ensure only one UNDI instance is loaded

Loading multiple UNDI instances would be useful in systems that have
several network cards with vendor PXE ROMs.  However, we cannot rely on
UNDI ROMs working correctly with multiple instances loaded
simultaneously.

The gPXE UNDI driver supports the following multi-NIC configurations:
1. Chainloading undionly.kpxe on a specific NIC.
2. Loading the UNDI driver for the first probed device and ignoring all
   other UNDI devices in the system.

This patch refuses to probe additional UNDI devices so there can never
be multiple instances of UNDI loaded.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Marty Connor <mdc@etherboot.org>
src/arch/i386/drivers/net/undiload.c