From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: ipxe.org, ip: 212.13.204.60, mailfrom: mcb30@ipxe.org) Received: from duck.fensystems.co.uk (duck.fensystems.co.uk [212.13.204.60]) by groups.io with SMTP; Wed, 22 May 2019 15:26:12 -0700 Received: from pudding.home (cbs92326-cmbg19-2-0-cust10.5-4.cable.virginm.net [86.1.148.75]) by duck.fensystems.co.uk (Postfix) with ESMTPSA id D6ADF1B7A0; Wed, 22 May 2019 23:26:09 +0100 (BST) Subject: Re: [edk2-devel] iSCSI and iBFT To: devel@edk2.groups.io, tpilar@solarflare.com, Laszlo Ersek References: <3644c44636fb4fe5b719128ec1443b4c@ukex01.SolarFlarecom.com> <1c6545291d0f460fac20abf2187a551c@ukex01.SolarFlarecom.com> <29d7e6a4-667a-7929-f4e3-96303ed0d39d@solarflare.com> From: "Michael Brown" Message-ID: <006adde9-25fd-bdd8-1bda-bbea4302e777@ipxe.org> Date: Wed, 22 May 2019 23:26:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <29d7e6a4-667a-7929-f4e3-96303ed0d39d@solarflare.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit On 22/05/2019 11:40, Tomas Pilar (tpilar) wrote: > Yeah, I just AllocateCopyPool the static struct on heap for each device. I can honestly see how one would assume that a protocol instance would never be installed on more than one handle, same as I assumed that using a statically allocated struct containing nothing but boilerplate info would also be fine. > > The whole NII and UNDI drivers vs. SNP drivers compatibility across OEMs/IBVs and IHVs is a painful trash fire and this is just the last problem in a very long line of annoyances. Thanks for writing up the end result. I can't immediately see any more viable way for iPXE to determine the NII corresponding to the user's concept of "the NIC from which I booted", but I'm open to suggestions. Thanks again, Michael