Re: undi for 10G Nic

Stefan Hajnoczi <[email protected]> Fri, 9 Oct 2009 06:28:53 +0100
Newsgroups gmane.network.etherboot.user
Message-ID <[email protected]>
On Fri, Oct 9, 2009 at 12:50 AM, Luca <[email protected]> wrote:
> I had two NICs, both of them with undi. Using undi.iso I noticed that the
> first NIC was correctly initialized. The second one was disabled so of
> course the initialization process failed. During the init process for the
> second NIC though, the variable undinet_entry_point was set by the function
> undinet_probe with values relative to the second NIC (the disabled one).
> So when after I did the ifopen for the first NIC, that failed.

Good spot.  I haven't look at the code and the impact of your patch
but it sounds like the undi driver is not written to support multiple
instances.  Hopefully this is an implementation detail in gPXE's UNDI
code rather than a limitation of UNDI.

Your patch looks like it works by overwriting undinet_entry_point for
the last opened NIC.  Does this allow for both NICs to be open and
used simultaneously?  Would the entry point need to be part of
undi_nic or undi_device in order to support true simultaneous
operation?

Stefan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference