Re: [edk2] adding EDK2 networking to a shipping system board

2015-01-08 Thread Li, Ruth
 0  0
14E 0010 ? N N 0  0
153 06041300 B Y Y 1  1 
PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Offset(0x38,0x203ff)



MSI built-in shell
EFI v2.31 American Megatrends
Revision 4.654

 T   D
D   Y C I
R   P F A
V  VERSION  E G G #D #C DRIVER NAME IMAGE NAME
==  = = = == == === ===
2F 0001 D - -  2  -MouseDriver
40 0010 B - -  1  7 AMI Generic LPC Super I/O DriverCORE_DXE
8F 0500040C ? - -  -  - Intel(R) GOP Driver [5.0.1036]  IntelGopDriver
92 0001 D - -  1  - AMI File System Driver  FileSystem
94 00020502 B - -  1 18PciBus
9B 0010 D - -  1  - PCH Serial ATA Controller Initializ SataController
A6 0001 B - -  1  1 AMI AHCI BUS Driver AHCI
B1 05052300 ? X X  -  - Intel(R) PRO/1000 5.5.23 PCI-E  IntelGigabitLanx64
B4 0001 ? - -  -  - IDER Controller Init Driver IdeRController
B5 0010 ? - -  -  - PCI Serial Driver   PciSerial
BF 0010 ? - -  -  -Terminal
C4 000A ? - -  -  - UEFI PXE Base Code Driver   UefiPxeBcDxe
C6 000A ? - -  -  - TCP Network Service Driver  TcpDxe
C7 000A ? - -  -  - TCP Network Service Driver  TcpDxe
C8 000A ? - -  -  - DHCP Protocol DriverDhcp4Dxe
C9 000A ? - -  -  - IP4 CONFIG Network Service Driver   Ip4ConfigDxe
CA 000A ? - -  -  - IP4 Network Service Driver  Ip4Dxe
CC 000A ? - -  -  - MTFTP4 Network Service  Mtftp4Dxe
CD 000A ? - -  -  - UDP Network Service Driver  Udp4Dxe
CE 000A ? - -  -  - DHCP6 Protocol Driver   Dhcp6Dxe
CF 000A ? - -  -  - IP6 Network Service Driver  Ip6Dxe
D0 000A ? - -  -  - MTFTP6 Network Service Driver   Mtftp6Dxe
D1 000A ? - -  -  - UDP6 Network Service Driver Udp6Dxe
D2 0001 ? - -  -  - AMI NTFS Driver NTFS
10B 008A D - -  3  - AMI USB Driver  UHCD
10D 008A B - -  3  6 USB bus UHCD
10E 0001 D - -  3  - USB Hid driver  UHCD
10F 0001 ? - -  -  - USB Mass Storage driver UHCD
110 0001 ? - -  -  - AMI USB CCID driver UHCD
131 0010 ? - -  -  -BIOSBLKIO
132 0024 B - -  1  1 BIOS[INT10] Video DriverCsmVideo
133 0010 ? - -  -  -
145 0010 D - -  2  -CORE_DXE
146 0010 D - -  1  -CORE_DXE
147 0010 B - -  4  4CORE_DXE
149 0010 B - -  1  1CORE_DXE
14A 0010 ? - -  -  - AMI PS/2 Driver CORE_DXE
14B 0001 ? - -  -  - AMI IDE BUS Driver  CORE_DXE
14E 0010 ? - -  -  -CORE_DXE
153 06041300 B X X  1  1 Intel(R) PRO/1000 6.4.13 PCI-E  Offset(0x38,0x203f






Li, Ruth wrote:
> Could you let us know the output when you type 'drivers' command?
> 
> Thanks,
> Ruth
> -Original Message-
> From: Stephen Polkowski [mailto:step...@centtech.com]
> Sent: Wednesday, January 07, 2015 12:43 PM
> To: edk2-devel@lists.sourceforge.net
> Subject: Re: [edk2] adding EDK2 networking to a shipping system board
> 
> Hi Andrew,
> 
>   Thanks for the reply.   By existing system, I mean that I’m trying to 
> add network 
> support to my Asus Q87E motherboard.   I don’t have the BIOS source for my 
> board 
> so I can’t build a fresh BIOS with networking stack built in.
> 
>   Instead, I’m trying to load the networking DXEs from the MdePkg (EDK2) 
> in the
> UEFI shell.  I’m not having any luck.   Has anyone done this before? 
> 
> Thanks,
> 
> Stephen
> 
> 
>> Message: 1
>> Date: Tue, 06 Jan 2015 11:11:16 -0800
>> From: Andrew Fish 
>> Subject: Re: [edk2] adding EDK2 networking to a shipping system board
>> To: edk2-devel@lists.sourceforge.net
>> Message-ID: <917ef1b5-d0ae-4fc1-bd50-61d7fd4fc...@apple.com>
>> Content-Type: text/plain; charset=us-ascii
>>
>>
>>> On Jan 6, 2015, at 7:46 AM, Stephen Polkowski  wrote:
>>>
>>>
>>> Hi folks,
>>>
>>>Is it possible to add ethernet networking support to a production 
>>> system without a network stack?  The "UEFI Network Stack for EDK 
>>> Getting Started Guide.pdf" demonstrates how to add networking to the NT32 
>>> environment.
>>> Is this still valid for the EDK2?  Also, could it work on a real system?
>>>
>>>For example, I have an Intel Gigabit CT Desktop PCIe card that 

Re: [edk2] adding EDK2 networking to a shipping system board

2015-01-06 Thread Li, Ruth
Could you let us know the output when you type 'drivers' command?

Thanks,
Ruth
-Original Message-
From: Stephen Polkowski [mailto:step...@centtech.com] 
Sent: Wednesday, January 07, 2015 12:43 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] adding EDK2 networking to a shipping system board

Hi Andrew,

Thanks for the reply.   By existing system, I mean that I’m trying to 
add network 
support to my Asus Q87E motherboard.   I don’t have the BIOS source for my 
board 
so I can’t build a fresh BIOS with networking stack built in.

Instead, I’m trying to load the networking DXEs from the MdePkg (EDK2) 
in the
UEFI shell.  I’m not having any luck.   Has anyone done this before? 

Thanks,

Stephen


> Message: 1
> Date: Tue, 06 Jan 2015 11:11:16 -0800
> From: Andrew Fish 
> Subject: Re: [edk2] adding EDK2 networking to a shipping system board
> To: edk2-devel@lists.sourceforge.net
> Message-ID: <917ef1b5-d0ae-4fc1-bd50-61d7fd4fc...@apple.com>
> Content-Type: text/plain; charset=us-ascii
> 
> 
>> On Jan 6, 2015, at 7:46 AM, Stephen Polkowski  wrote:
>> 
>> 
>> Hi folks,
>> 
>>Is it possible to add ethernet networking support to a production 
>> system without a network stack?  The "UEFI Network Stack for EDK 
>> Getting Started Guide.pdf" demonstrates how to add networking to the NT32 
>> environment.
>> Is this still valid for the EDK2?  Also, could it work on a real system?
>> 
>>For example, I have an Intel Gigabit CT Desktop PCIe card that has 
>> a UEFI UNDI driver loaded in its Option Rom.  This option rom is 
>> loaded by my ASUS Q87-E motherboard during boot.  When I type "drivers" in 
>> the uefi 2.0 shell I can see that the driver is loaded.
>> 
>> 15B 06041300 B Y Y 2  2   
>> PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0) ...
>> 
>>Next, I try to load the tcp dxe drivers in a manner similar to the 
>> "Getting Started Guide." The shell hangs after loading SnpDxe.efi 
>> driver.  It doesn't load any of the other DXEs.
>> 
>> load SnpDxe.efi MnpDxe.efi ArpDxe.efi Ip4Dxe.efi Ip4ConfigDxe.efi 
>> load Udp4Dxe.efi Dhcp4Dxe.efi Mtftp4Dxe.efi Tcp4Dxe.efi
>> 
>>Does anyone have a guide on how to add any kind of networking 
>> device to an existing system?  Any help will be greatly appreciated.
>> 
> 
> Not sure what you mean by an existing system? You should be able to load the 
> drivers from the shell. 
> 
> Are you trying to load the EDK or edk2 network stack? Are you building the 
> network stack?
> 
> Thanks,
> 
> Andrew Fish
> 
>> Thanks,
>> 
>> Stephen
>> 
>> 
>> 
>> P.S. - I know that I can enable the "Network Stack" on boards with an 
>> embedded ethernet controller.  I want to know how to do it to a 
>> system without networking support.
>> 
>> -
>> - Dive into the World of Parallel Programming! The Go 
>> Parallel Website, sponsored by Intel and developed in partnership 
>> with Slashdot Media, is your hub for all things parallel software 
>> development, from weekly thought leadership blogs to news, videos, 
>> case studies, tutorials and more. Take a look and join the 
>> conversation now. http://goparallel.sourceforge.net 
>> ___
>> edk2-devel mailing list
>> edk2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
> 


--
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net 
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] MdeModulePkg maintainer: Possible bug in Network/Mtftp4Dxe/Mtftp4Impl.c

2014-04-18 Thread Li, Ruth
Hi Michael,

Thanks for catching this.

While we re-checked the spec, and realized there're some inconsistency in the 
UEFI Spec about the Override Data definition. As we know, 0.0.0.0 is  clearly 
not a valid unicast address.

In "Related Definitions" under EFI_MTFTP4_PROTOCOL.GetInfo():
ServerIp IP address of the MTFTPv4 server. If set to 0.0.0.0, it will use the 
value that was set by the EFI_MTFTP4_PROTOCOL.Configure()  function.
In "Status Codes Returned" table:
 EFI_INVALID_PARAMETER  One or more IPv4 addresses in OverrideData are 
not valid unicast IPv4 addresses if OverrideData is not  NULL.

We'd better have specification to clarify this. At the same time, how about you 
update your code to set a valid IP address so that to get the code running 
first?

Thanks,
Ruth
From: Michael Lorer [mailto:michael.lo...@opus.de]
Sent: Wednesday, April 09, 2014 3:04 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] MdeModulePkg maintainer: Possible bug in 
Network/Mtftp4Dxe/Mtftp4Impl.c

Hi,

I think I found a bug in MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c
Regarding UEFI Specification 2.4 EFI_MTFTP_PROTCOL.GetInfo() (PDF page 1411) in 
the related definitions of Override Data is mentioned that if I use a ServerIp 
address of 0.0.0.0 the currently configured address is used instead.
But the code that checks the incoming Override parameter is checked with this 
function:
https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c#L187

BOOLEAN
Mtftp4OverrideValid (
  IN MTFTP4_PROTOCOL  *Instance,
  IN EFI_MTFTP4_OVERRIDE_DATA *Override
  )
{
  EFI_MTFTP4_CONFIG_DATA*Config;
  IP4_ADDR  Ip;
  IP4_ADDR  Netmask;
  IP4_ADDR  Gateway;

  CopyMem (&Ip, &Override->ServerIp, sizeof (IP4_ADDR));
  if (!NetIp4IsUnicast (NTOHL (Ip), 0)) {
return FALSE;
  }
...

And if I pass there a 0.0.0.0 ip address the whole function returns FALSE and 
the calling function returns EFI_INVALID_PARAMETER:
https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c#L411

Did I get something wrong or is there a bug in the code?
Compared to the gateway the gateway address is only checked with the 
NetIp4IsUnicast-function if it is not null:
https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c#L196


  if (!Config->UseDefaultSetting && (Gateway != 0)) {

...

Regards,
Michael

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] trying to segregate issue if it is with network card uefi driver or uefi network stack or dhcp server

2014-04-07 Thread Li, Ruth
Hi Ritul,

Do you have wireshark capture file for the failed DHCP scenario you mentioned 
below?

Thanks,
Ruth
From: ritul guru (riguru) [mailto:rig...@cisco.com]
Sent: Wednesday, April 02, 2014 9:04 PM
To: edk2-devel@lists.sourceforge.net; Jordan Justen
Subject: [edk2] trying to segregate issue if it is with network card uefi 
driver or uefi network stack or dhcp server


Hi,

I am facing problem in configuring ip through uefi shell. (main purpose is to 
do uefi pxe boot on rhel6.5 pxe server)
First I tried to configure ip (dhcp) from uefi shell, which is giving attached 
logs on dhcp sever, IP is not configured.

Using command:

Shell>Ifconfig -s eth5 dhcp
After this, it doesn't get ip.
[cid:image001.png@01CF530F.C7B47120]

And
I configured IP on the same server which is running rhel (rhel6.5 OS netwotk 
stack), this means there is no issue in dhcp server setup.
How can I find out if issue is with uefi network stack or network card uefi 
driver? as network card legacy driver works fine.


Regards,
Ritul

<>--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] MdeModulePkg/Universal/Network/SnpDxp/Station_address.c

2014-03-11 Thread Li, Ruth
Hi Ari,

I tend to agree with your assessment.

At the same time, I checked UEFI/code again. It turns out the 
PXE_OPFLAGS_STATION_ADDRESS_READ and PXE_OPFLAG_STATION_ADDRESS_WRITE are both 
defined as zero.
[cid:image001.png@01CF3D40.5A455C10]
So, using current BIOS FW, I thought there'll be no actual functionality impact 
if you pass PXE_OPFLAGS_STATION_ADDRESS_WRITE.

Thanks,
Ruth
From: Ari Zigler [mailto:a...@mellanox.com]
Sent: Tuesday, March 11, 2014 2:39 PM
To: edk2-devel@lists.sourceforge.net
Cc: Haggai Eran
Subject: Re: [edk2] MdeModulePkg/Universal/Network/SnpDxp/Station_address.c

Hi Ruth,

Yes, I'm developing a UNDI driver for our device.
The bellow code, if integrated into a BIOS FW, do cause me an issue as it 
implies that there is no need to pass PXE_OPFLAGS_STATION_ADDRESS_WRITE whereas 
my driver expects this kind of flag in order to perform SetAddress(). With the 
current implementation, calling to SetStationAddress on the SNP driver will not 
be processed by our UNDI driver.
I tend to think that this code is not aligned to UNDI spec.

Ari

From: Li, Ruth [mailto:ruth...@intel.com]
Sent: Tuesday, March 11, 2014 5:14 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Cc: Haggai Eran
Subject: Re: [edk2] MdeModulePkg/Universal/Network/SnpDxp/Station_address.c

Ari,

Below piece of code has been here for many years, the purpose of the comment 
seems to remind the operation result for some UNDI implementation.

Are you development UNDI driver for some device? Whether below code bring any 
issue to you?

Thanks,
Ruth
From: Ari Zigler [mailto:a...@mellanox.com]
Sent: Sunday, March 09, 2014 6:07 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Cc: Haggai Eran
Subject: [edk2] MdeModulePkg/Universal/Network/SnpDxp/Station_address.c

Hi,

I found this weird comment (and consequent behavior) in the SnpDxe 
PxeSetStnAddr() implementation:
EFI_STATUS
PxeSetStnAddr (
  SNP_DRIVER  *Snp,
  EFI_MAC_ADDRESS *NewMacAddr
  )
{
...
...
Snp->Cdb.OpFlags = PXE_OPFLAGS_STATION_ADDRESS_READ;
//
// even though the OPFLAGS are set to READ, supplying a new address
// in the CPB will make undi change the mac address to the new one.
//
CopyMem (&Cpb->StationAddr, NewMacAddr, Snp->Mode.HwAddressSize);

Snp->Cdb.CPBsize  = (UINT16) sizeof (PXE_CPB_STATION_ADDRESS);
Snp->Cdb.CPBaddr  = (UINT64)(UINTN) Cpb;
  }
...
...
}

I looked through the UNDI section in the UEFI 2.4A spec for a statement 
declaring that once a CPB is present UNDI corresponding StationAddress() shall 
set the current mac address to the address specified in the CPB struct, but my 
efforts were in vain.

Can anyone refute (or substantiate) this claim?

Thanks,

Ari
<>--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] MdeModulePkg/Universal/Network/SnpDxp/Station_address.c

2014-03-10 Thread Li, Ruth
Ari,

Below piece of code has been here for many years, the purpose of the comment 
seems to remind the operation result for some UNDI implementation.

Are you development UNDI driver for some device? Whether below code bring any 
issue to you?

Thanks,
Ruth
From: Ari Zigler [mailto:a...@mellanox.com]
Sent: Sunday, March 09, 2014 6:07 PM
To: edk2-devel@lists.sourceforge.net
Cc: Haggai Eran
Subject: [edk2] MdeModulePkg/Universal/Network/SnpDxp/Station_address.c

Hi,

I found this weird comment (and consequent behavior) in the SnpDxe 
PxeSetStnAddr() implementation:
EFI_STATUS
PxeSetStnAddr (
  SNP_DRIVER  *Snp,
  EFI_MAC_ADDRESS *NewMacAddr
  )
{
...
...
Snp->Cdb.OpFlags = PXE_OPFLAGS_STATION_ADDRESS_READ;
//
// even though the OPFLAGS are set to READ, supplying a new address
// in the CPB will make undi change the mac address to the new one.
//
CopyMem (&Cpb->StationAddr, NewMacAddr, Snp->Mode.HwAddressSize);

Snp->Cdb.CPBsize  = (UINT16) sizeof (PXE_CPB_STATION_ADDRESS);
Snp->Cdb.CPBaddr  = (UINT64)(UINTN) Cpb;
  }
...
...
}

I looked through the UNDI section in the UEFI 2.4A spec for a statement 
declaring that once a CPB is present UNDI corresponding StationAddress() shall 
set the current mac address to the address specified in the CPB struct, but my 
efforts were in vain.

Can anyone refute (or substantiate) this claim?

Thanks,

Ari
--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] Problem with runing WebServer.efi example

2014-01-12 Thread Li, Ruth
I would recommend you first check whether network drivers are correctly 
connected.

Could you check the serial output when you type 'drivers' command?

Thanks,
Ruth
-Original Message-
From: Pawel Mazurek [mailto:ziur...@gmail.com] 
Sent: Monday, January 13, 2014 9:07 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Problem with runing WebServer.efi example

Hello.

I got a problem while I try to run in emulator WebServer.efi from EDKII.

While I try to run the program i get this error message:
ERROR with Ip4 layer, Status: Not Found
ERROR with Tcp4 layer, Status: Not Found ERROR with Tcp6 layer, Status: Not 
Found ERROR with Udp4 layer, Status: Not Found ERROR with Udp6 layer, Status: 
Not Found Exiting EslServiceNetworkConnect, Status: Not Found Exiting 
EslConstructor, Status: 
Not Found

I don't know how to load network layer, i tried to load following network
drivers:

SnpNt32Dxe.efi MnpDxe.efi ArpDxe.efi Ip4Dxe.efi Ip4ConfigDxe.efi Udp4Dxe.efi 
Dhcp4Dxe.efi Mtftp4Dxe.efi Tcp4Dxe.efi SocketDxe.efi

still didn't help

Thanks in advance


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical 
Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] Network Problem

2014-01-06 Thread Li, Ruth
Did you load the EFI socket driver?

Thanks,
Ruth
-Original Message-
From: Marcin Olszewski [mailto:marols...@vp.pl] 
Sent: Tuesday, January 07, 2014 1:16 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Network Problem

Hello.

I'm a student and I must implement simply web server under EFI for my Project.

At first I want to run example WebServer.efi from EDKII.

I have builded SnpNt32Io.dll like in EFINetworkStackGettingStarted.pdf 
instruction. I have been install WinPcap. At 3.4 point I spoted that i have 
SnpNt32Dxe.efi instead SnpNt32.efi. The same is in case MnpDxe.efi, ArpDxe.efi 
and others.

I have loaded this drivers succesfully. But when I run WebServer.efi, 
SecMain.exe was crash. I read:

ERROR with Ip4 layer, Status: Not Found
ERROR with Tcp4 layer, Status: Not Found ERROR with Tcp6 layer, Status: Not 
Found ERROR with Udp4 layer, Status: Not Found ERROR with Udp6 layer, Status: 
Not Found Exiting EslServiceNetworkConnect, Status: Not Found Exiting 
EslConstructor, Status: Not Found

Please, help me. What is wrong? :)






--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance affects 
their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & 
PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] UEFI SCT few queries

2013-10-28 Thread Li, Ruth
Hi Prabhakar,

Recommend you bring your question to UTWG group. Email: 
u...@uefi.org

Thanks,
Ruth
From: Prabhakar Kushwaha [mailto:prabha...@freescale.com]
Sent: Tuesday, October 29, 2013 12:17 PM
To: boot-architect...@lists.linaro.org; edk2-devel@lists.sourceforge.net; 
b45...@freescale.com
Subject: [edk2] UEFI SCT few queries

Hi List,

I am new to UEFI and exploring about SCT.  I have very basic question regarding 
SCT.

1)  In order to use SCT in an organization, do we require any special license?
2)  Looks like SCT compliance testing is only internal to an organization. We 
don't require to publish its details outside of the organization?
3)  If anyone want to contribute to SCT test cases. Which forum/list he/she can 
be used?

Please guide me.

Regards,
Prabhakar
--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] [PATCH] MdeModulePkg/ArpDxe: Retrieved SnpMode only after configuring Snp

2013-10-16 Thread Li, Ruth
Hi,

Not sure whether you notice this email. Just resend in case you miss that.

Thanks,
Ruth
From: Ryan Harkin [mailto:ryan.har...@linaro.org]
Sent: Wednesday, October 16, 2013 6:05 PM
To: Olivier Martin
Cc: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] [PATCH] MdeModulePkg/ArpDxe: Retrieved SnpMode only after 
configuring Snp



On 9 October 2013 16:31, Ryan Harkin 
mailto:ryan.har...@linaro.org>> wrote:
I would like to revive discussion on this patch.  It seems it has not been 
accepted, perhaps we could have a comment here from the maintainer about what 
is happening?

I think waiting a week is long enough to not make me seem impatient for a reply 
;-)

On 19 July 2013 20:05, Olivier Martin 
mailto:olivier.mar...@arm.com>> wrote:
Sorry, I sent the old patch. Here is the new one.

From: Olivier Martin [olivier.mar...@arm.com]
Sent: 19 July 2013 20:00
To: edk2-devel@lists.sourceforge.net; 
Tian, Feng
Subject: Re: [edk2] [PATCH] MdeModulePkg/ArpDxe: Retrieved SnpMode only after   
configuring Snp

Ting,
here is a new patch that fixes the issue I have. Here is the details of this 
new fix:

MdeModulePkg/ArpDxe: Retrieve a copy of SnpMode after SNP has been 
configured

Before ARP configures its MNP child it gets a copy of SnpMode.
If it is the first configured MNP child then SNP is also initialized.
It may only be at this time the MAC address of the network card be valid 
(ie:
the initial copy of SnpMode would contain an invalid/null MAC address).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin 
mailto:olivier.mar...@arm.com>>

Best Regards,
Olivier

From: Ye, Ting [ting...@intel.com]
Sent: 30 January 2013 07:40
To: edk2-devel@lists.sourceforge.net; 
Tian, Feng
Subject: Re: [edk2] [PATCH] MdeModulePkg/ArpDxe: Retrieved SnpMode only after   
configuring Snp

Olivier,

Thanks for your patch. Though I don't quite agree with you that SnpMode cannot 
be accessed prior to SNP is configured.

As I known some parameters in SnpMode will be initialized in 
SimpleNetworkDriverStart() by calling undi.GetInitInfo. These parameters will 
not be updated by other APIs in SNP protocol including SNP->initialize. One of 
these parameters is 'IfType' used in ARP driver from your patch. Thus I think 
it makes sense that upper layer driver uses this kind of info prior to 
configure SNP to save performance lost in some conditions.

Best Regards,
Ting

From: Olivier Martin 
[mailto:olivier.mar...@arm.com]
Sent: Friday, January 25, 2013 9:07 PM
To: Tian, Feng
Cc: edk2-devel@lists.sourceforge.net
Subject: [edk2] [PATCH] MdeModulePkg/ArpDxe: Retrieved SnpMode only after 
configuring Snp

Dear MdeModulePkg maintainer,
Please find the attached patch that retrieved SnpMode only after configuring 
Snp.

When Arp driver starts (with ArpDriverBindingStart()), its service will be 
created
and the Mnp child configured (ArpService->Mnp->Configure() called in 
ArpCreateService()).

It is only at this time the Snp protocol will be initialized (at the end of 
MnpStart()).
So, a valid SnpMode could not be expected prior to ArpService->Mnp->Configure().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin 
mailto:olivier.mar...@arm.com>>>

Best Regards,
Olivier

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


--- Begin Message ---
Hi, Pollack

I don't agree with the opinion that the Snp.Mode can't be acc

Re: [edk2] MNP PaddingSize Question

2013-08-21 Thread Li, Ruth
Hi Eugene,

Below pieces of code has been there for long time. We need some time to 
evaluate it and see possible impact.

BTW, can I know whether you see the performance impact only over your machine? 
Or generally all machine?

Thanks,
Ruth
From: Cohen, Eugene [mailto:eug...@hp.com]
Sent: Tuesday, August 20, 2013 3:56 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] MNP PaddingSize Question

I've been tracking down a performance issue and have isolated it to this piece 
of MNP initialization code:

  //
  // Make sure the protocol headers immediately following the media header
  // 4-byte aligned, and also preserve additional space for VLAN tag
  //
  MnpDeviceData->PaddingSize = ((4 - SnpMode->MediaHeaderSize) & 0x3) + 
NET_VLAN_TAG_LEN;

On my system this is coming up with '6' (MediaHeaderSize = 0xE) which is 
causing performance issues since some of the memory copies to the resulting 
non-dword aligned addresses are slower.  As an experiment I tried bumping this 
number to '8' and things worked well.

This value is used later when NET_BUFs are being allocated:

if (MnpDeviceData->PaddingSize > 0) {
  //
  // Pad padding bytes before the media header
  //
  NetbufAllocSpace (Nbuf, MnpDeviceData->PaddingSize, NET_BUF_TAIL);
  NetbufTrim (Nbuf, MnpDeviceData->PaddingSize, NET_BUF_HEAD);
}

Can someone explain the purpose of PaddingSize and how that affects the later 
processing of packets?  Is this number a minimum value and is ok to be larger?

Thanks,

Eugene

--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] UNDI's Fragmented Transmit & Transmit Block

2013-02-27 Thread Li, Ruth
Hi Ari

I may misunderstand, you can ignore my statement of 'edk2 not support S/W 
UNDI'. Sorry.

I am wondering, do you meet any specific issue in using current code?

Thanks,
Ruth
From: Ari Zigler [mailto:a...@mellanox.com]
Sent: Wednesday, February 27, 2013 4:57 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] UNDI's Fragmented Transmit & Transmit Block

Hi Ruth, thanks for the prompt reply.

First, I must say that I'm a little surprised by your claim that EDK2 does not 
support S/W UNDI as there is that E100b UNDI driver which happens to work just 
fine under EDK2 implementation and it doesn't seem to be an H/W one.  
(Particularly, it explicitly exposes PXE_SW_UNDI as its !PXE struct. See 
edk2/OptionRomPkg/UndiRuntimeDxe/Init.c:20 and the corresponding implementation 
in SnpDxe/Snp.c:422). Moreover, our device also managed to function under EDK2 
as a S/W UNDI.
Second, assuming that EDK2 will eventually work with S/W UNDI - which module in 
the network stack is responsible for the fragmentation?

Thanks,

Ari

From: Li, Ruth [mailto:ruth...@intel.com]
Sent: Wednesday, February 27, 2013 4:34 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] UNDI's Fragmented Transmit & Transmit Block

Hi,

>From UEFI 2.3.1 Appendix E, the 
>PXE_OPFLAGS_TRANSMIT_FRAGEMENTED/BLOCK/DON'T_BLOCK are only for S/W UNDI. I 
>think current EDK2 implementation only handle the H/W UNDI now.

Thanks,
Ruth
From: Ari Zigler [mailto:a...@mellanox.com]
Sent: Wednesday, February 27, 2013 12:45 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] UNDI's Fragmented Transmit & Transmit Block

Hi,

As no driver in the EDK2 network stack uses Fragmented Transmit 
(PXE_OPFLAGS_TRANSMIT_FRAGMENTED), not even the SnpDxe one, and nevertheless, 
fragmented Ip packets manage to go on the wire (I checked it), what is the 
purpose of this opflag? Who might  partition the packets into fragments? Does 
it need special care?

Another issue is the PXE_OPFLAGS_TRANSMIT_BLOCK/DON'T_BLOCK:
The SnpDxe driver ignores these flags and do not pass them to the UNDI driver. 
The edk2 platform performs UNDI GetStatus periodically to handle the completed 
TX buffers, so I presume the system works in a non-blocking mode, doesn't it? 
Or it might be a bug in the SnpDxe implementation...

Thnaks,

Ari
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] UNDI's Fragmented Transmit & Transmit Block

2013-02-26 Thread Li, Ruth
Hi,

>From UEFI 2.3.1 Appendix E, the 
>PXE_OPFLAGS_TRANSMIT_FRAGEMENTED/BLOCK/DON'T_BLOCK are only for S/W UNDI. I 
>think current EDK2 implementation only handle the H/W UNDI now.

Thanks,
Ruth
From: Ari Zigler [mailto:a...@mellanox.com]
Sent: Wednesday, February 27, 2013 12:45 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] UNDI's Fragmented Transmit & Transmit Block

Hi,

As no driver in the EDK2 network stack uses Fragmented Transmit 
(PXE_OPFLAGS_TRANSMIT_FRAGMENTED), not even the SnpDxe one, and nevertheless, 
fragmented Ip packets manage to go on the wire (I checked it), what is the 
purpose of this opflag? Who might  partition the packets into fragments? Does 
it need special care?

Another issue is the PXE_OPFLAGS_TRANSMIT_BLOCK/DON'T_BLOCK:
The SnpDxe driver ignores these flags and do not pass them to the UNDI driver. 
The edk2 platform performs UNDI GetStatus periodically to handle the completed 
TX buffers, so I presume the system works in a non-blocking mode, doesn't it? 
Or it might be a bug in the SnpDxe implementation...

Thnaks,

Ari
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] Booting Linux kernel using PXE

2013-01-24 Thread Li, Ruth
Per my reading of this log, your network driver was not successfully connected.

Please double check whether you have the right UNDI driver for your board.

Thanks,
Ruth
From: Shivamurthy Shastri [mailto:shiva.linuxwo...@gmail.com]
Sent: Thursday, January 24, 2013 8:15 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Booting Linux kernel using PXE

Hi Ruth,

Here is the log...

2.0 Shell> drivers
T   D
D   Y C I
R   P F A
V  VERSION  E G G #D #C DRIVER NAME IMAGE NAME
=== === = = = == == === ==
39 000A ? N N 0  0   Platform Console Management Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(51CCF399-4FDF-4E55-A45B-E123F84D456A)
3A 000A D N N 1  0   Platform Console Management Driver
3B 000A D N N 1  0  Graphics Console Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(CCCB0C28-4B24-11D5-9A5A-0090273FC14D)
3C 000A ? N N 0  0   Serial Terminal Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(9E863906-A40F-4875-977F-5B93FF237FC6)
3D 000A D N N 4  0  Generic Disk I/O Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(6B38F7B4-AD98-40E9-9093-ACA2B5A253C4)
3E 000B B N N 1  2  Partition Driver(MBR/GPT/El Torito) 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(1FA1F39E-FEFF-4AAE-BD7B-38A070A3B609)
3F 000A D N N 1  0   FAT File System Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(961578FE-B6B7-44C3-AF35-6BC705CD2B1F)
42 0030 D N N 1  0  Usb Ehci Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(BDFE430E-8F2A-4DB0-9991-6F856594777E)
43 000A B N N 1  3   Usb Bus Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(240612B7-A063-11D4-9A3A-0090273FC14D)
44 0011 ? N N 0  0  Usb Mass Storage Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(9FB4B4A7-42C0-4BCD-8540-9BCC6711F83E)
45 000A ? N N 0  0   Simple Network Protocol Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(A2F436EA-A127-4EF8-957C-8048606FF670)
46 000A B N N 1  1   MNP Network Service Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(025BBFC7-E6A9-4B8B-82AD-6815A1AEAF4A)
47 000A ? N N 0  0   IP4 Network Service Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(9FB1A1F3-3B71-4324-B39A-745CBB015FFF)
48 000A D N N 1  0IP4 CONFIG Network Service Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(26841BDE-920A-4E7A-9FBE-637F477143A6)
49 000A ? N N 0  0   UDP Network Service Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(6D6963AB-906D-4A65-A7CA-BD40E5D6AF2B)
4A 000A ? N N 0  0   Tcp Network Service Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(6D6963AB-906D-4A65-A7CA-BD40E5D6AF4D)
4B 000A ? N N 0  0 DHCP Protocol Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(94734718-0BBC-47FB-96A5-EE7A5AE6A2AD)
4C 000A ? N N 0  0   MTFTP4 Network Service 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(DC3641B8-2FA8-4ED3-BC1F-F9962A03454B)
4D 000A ? N N 0  0UEFI PXE Base Code Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(3B1DEAB5-C75D-442E-9238-8E2FFB62B0BB)
4E 000A D N N 1  0  AX88772 Ethernet Driver 
MemoryMapped(0xB,0x9F75,0x9FB7137F)/FvFile(B15239D6-6A01-4808-A0F7-B7F20F073555)


On Thu, Jan 24, 2013 at 5:12 PM, Li, Ruth 
mailto:ruth...@intel.com>> wrote:
Can you type shell command 'drivers' to check whether the network stack driver 
is correctly connected?.

Thanks,
Ruth

From: Shivamurthy Shastri 
[mailto:shiva.linuxwo...@gmail.com<mailto:shiva.linuxwo...@gmail.com>]
Sent: Thursday, January 24, 2013 7:17 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: Re: [edk2] Booting Linux kernel using PXE

Hi Ruth,

Thanks for reply.
Sorry, the info is not helpful for me. I need doc for PXE booting linux kernel 
from UEFI. My UEFI doesn't have any graphics as such.
I am working on development board, where I have UEFI shell running.
I have added network stack in my dsc and fdf files as per the 
http://nchc.dl.sourceforge.net/project/network-io/Documents/EFINetworkStackGettingStarted.pdf


I am not able to set ipconfig  it is giving error as follows:

2.0 Shell> ifconfig -s eth0 static 192.168.0.125 255.255.255.0 192.168.0.1
IfConfig: Unable to set the NIC configure parameters, Access Denied


2.0 Shell> ifconfig -l
eth0
  MAC: 00-00-00-00-00-00
  Media State: Media disconnected
  Not configured.


On Thu, Jan 24, 2013 at 4:05 PM, Li, Ruth 
mailto:ruth...@intel.com>> wrote:
Shiva,

I think you can check this doc to get some instruction

http://www.novell.com/docrep/2012/12/sles_11_sp2_for_uefi_client_best_practices_white_paper.pdf

Thanks,
Ruth

From: Shivamurthy Shastri 
[mailto:shiva.linuxwo...@gmail.com<mailto:s

Re: [edk2] Booting Linux kernel using PXE

2013-01-24 Thread Li, Ruth
Can you type shell command 'drivers' to check whether the network stack driver 
is correctly connected?.

Thanks,
Ruth

From: Shivamurthy Shastri [mailto:shiva.linuxwo...@gmail.com]
Sent: Thursday, January 24, 2013 7:17 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Booting Linux kernel using PXE

Hi Ruth,

Thanks for reply.
Sorry, the info is not helpful for me. I need doc for PXE booting linux kernel 
from UEFI. My UEFI doesn't have any graphics as such.
I am working on development board, where I have UEFI shell running.
I have added network stack in my dsc and fdf files as per the 
http://nchc.dl.sourceforge.net/project/network-io/Documents/EFINetworkStackGettingStarted.pdf


I am not able to set ipconfig  it is giving error as follows:

2.0 Shell> ifconfig -s eth0 static 192.168.0.125 255.255.255.0 192.168.0.1
IfConfig: Unable to set the NIC configure parameters, Access Denied


2.0 Shell> ifconfig -l
eth0
  MAC: 00-00-00-00-00-00
  Media State: Media disconnected
  Not configured.


On Thu, Jan 24, 2013 at 4:05 PM, Li, Ruth 
mailto:ruth...@intel.com>> wrote:
Shiva,

I think you can check this doc to get some instruction

http://www.novell.com/docrep/2012/12/sles_11_sp2_for_uefi_client_best_practices_white_paper.pdf

Thanks,
Ruth

From: Shivamurthy Shastri 
[mailto:shiva.linuxwo...@gmail.com<mailto:shiva.linuxwo...@gmail.com>]
Sent: Thursday, January 24, 2013 6:12 PM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] Booting Linux kernel using PXE

Hi,

Anyone did PXE booting in UEFI. I want to know the settings or steps for 
booting linux kernel from UEFI.

--
Thanks and Regards,
Shiva.

--
Master Visual Studio, SharePoint, SQL, ASP.NET<http://ASP.NET>, C# 2012, HTML5, 
CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/edk2-devel



--
Thanks and Regards,
Shiva.
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] Booting Linux kernel using PXE

2013-01-24 Thread Li, Ruth
Shiva,

I think you can check this doc to get some instruction

http://www.novell.com/docrep/2012/12/sles_11_sp2_for_uefi_client_best_practices_white_paper.pdf

Thanks,
Ruth

From: Shivamurthy Shastri [mailto:shiva.linuxwo...@gmail.com]
Sent: Thursday, January 24, 2013 6:12 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Booting Linux kernel using PXE

Hi,

Anyone did PXE booting in UEFI. I want to know the settings or steps for 
booting linux kernel from UEFI.

--
Thanks and Regards,
Shiva.
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel


Re: [edk2] DHCP Fast Mode Patch

2012-09-17 Thread Li, Ruth
Eugene,

For this problem, I would prefer using UEFI defined dhcp callback method to 
achieve the platform policy of 'select first offer' or any other policy. And 
using dhcp callback mechanism, you have opportunity to do more dhcp-packet 
validation to guarantee the first received option is actually correct one.

Currently, both IPv4 and IPv6 already support this mechanism.

For DHCPv4,
In MdeModulePkg\Universal\Network\Dhcp4Dxe\Dhcp4Io.c,
DhcpHandleSelect() will invoke callback function (Dhcp4Event = Dhcp4RcvdOffer) 
when a DHCP offer is received.
DhcpChooseOffer() will invoke callback function (Dhcp4Event = Dhcp4SelectOffer) 
to see if user wants to select a special offer.

For DHCPv6,
In NetworkPkg\Dhcp6Dxe\Dhcp6Io.c
Dhcp6HandleAdvertiseMsg() and Dhcp6SelectAdvertiseMsg() do the same thing as v4.

Thanks,
Ruth

From: Cohen, Eugene [mailto:eug...@hp.com]
Sent: Friday, September 14, 2012 4:18 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] DHCP Fast Mode Patch

Dear MdeModulePkg Maintainer,

The attached patch adds a boolean PCD value to change the behavior of the 
Dhcpv4 driver to enable it to select the first offer received.  I found that 
this can resolve issues in some network environments where there is an 
expectation for clients to select the first offer (despite the fact that the 
RFCs do not require this).   This could have been implemented using DHCP 
callbacks but this approach provides a more compact solution (3 lines of code).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eug...@hp.com

Thanks,

Eugene

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel