Hi, Chris

Could you please help to check the return status of the gBS->SignalEvent and 
DispatchDpc (see attached patch file)?  Ping's call back function should be 
invoked when IP4 driver calling SignalEvent or DispatchDpc (mostly after 
SingalEvent if you execute the ping command in EFI shell).

Best Regards,
Siyuan

From: Chris Cuthbert [mailto:nd6...@hotmail.com]
Sent: Sunday, August 17, 2014 11:14 AM
To: Edk2 Devel
Subject: [edk2] Missing Ping Reply

Hi All,

I am implementing a UEFI driver for a network controller and I am producing 
Simple Network Protocol(SNP). To test this, I am using the 'ping' shell 
command. The problem is that I never get the first ping reply. I have debugged 
this all the way up the IPv4 stack and I can see that reply packet is being 
passed up but the first packet never reaches the 'ping' command. Logs below. 
From the ping source code it looks like it is creating an event to get a call 
back on reply packet and as part of the call back, it registers for event again 
if more replies are expected. But the first reply never kicks the call back 
function.
Any suggestions ?
Thanx.

Shell> ping -n 1 172.25.17.100
Ping StartsAPing 172.25.17.100 16 data bytes
NicVfTransmit                                                          (ARP 
request)
NicVfGetPacket                                                        (ARP 
reply)
NicVfTransmit                                                          (Ping 
packet)
NicVfGetPacket                                                        (Ping 
reply)
Ip4AccpetFrame EFI_IP_PROTO_ICMP                    (ICMP recognized)
Ip4IcmpHandle ICMP_QUERY_MESSAGE
Ip4ProcessIcmpQuery Ip4Demultiplex                    (Ip4Demultiplex function 
call)
Ip4Demultiplex Ip4InterfaceEnquePacket
Ip4Demultiplex Ip4InterfaceEnquePacket
Ip4Demultiplex Ip4InterfaceDeliverPacket
Ip4Demultiplex Ip4InterfaceDeliverPacket

1 packets transmitted, 0 received, 100% packet loss, time 0ms

Attachment: Debug.patch
Description: Debug.patch

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to