X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FIp4Dxe%2FIp4If.c;h=dfd58406c2d302a0d3b343810e6c90c98a13557a;hp=083876a3875016c760a624a16d098ed3d032475d;hb=5405e9a66b5ecf9f8a7ba571ead43cbee45161ae;hpb=725c7e225784e2115c8a2edd2f4f12a09d63e54b diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c index 083876a387..dfd58406c2 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c @@ -80,7 +80,7 @@ Ip4CancelFrameArp ( /** Wrap a transmit request into a newly allocated IP4_LINK_TX_TOKEN. - @param Interface The interface to send out from + @param Interface The interface to send out to. @param IpInstance The IpInstance that transmit the packet. NULL if the packet is sent by the IP4 driver itself. @param Packet The packet to transmit @@ -511,9 +511,9 @@ Ip4CreateInterface ( **/ EFI_STATUS Ip4SetAddress ( - IN IP4_INTERFACE *Interface, - IN IP4_ADDR IpAddr, - IN IP4_ADDR SubnetMask + IN OUT IP4_INTERFACE *Interface, + IN IP4_ADDR IpAddr, + IN IP4_ADDR SubnetMask ) { EFI_ARP_CONFIG_DATA ArpConfig; @@ -613,7 +613,7 @@ ON_ERROR: /** - Fileter function to cancel all the frame related to an IP instance. + Filter function to cancel all the frame related to an IP instance. @param Frame The transmit request to test whether to cancel @param Context The context which is the Ip instance that issued @@ -681,7 +681,7 @@ Ip4CancelReceive ( @param Interface The interface used by the IpInstance @param IpInstance The Ip instance that free the interface. NULL if - the Ip driver is releasing the default interface. + the Ip driver is releasing the default interface. @retval EFI_SUCCESS The interface use IpInstance is freed. @@ -815,28 +815,22 @@ Ip4OnArpResolvedDpc ( Ip4FreeArpQue (ArpQue, EFI_SUCCESS); } +/** + Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK. + + @param Event The Arp request event. + @param Context The context of the callback, a point to the ARP + queue. + + @return None + +**/ VOID EFIAPI Ip4OnArpResolved ( IN EFI_EVENT Event, IN VOID *Context ) -/*++ - -Routine Description: - - Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK - -Arguments: - - Event - The Arp request event - Context - The context of the callback, a point to the ARP queue - -Returns: - - None - ---*/ { // // Request Ip4OnArpResolvedDpc as a DPC at TPL_CALLBACK @@ -879,28 +873,21 @@ Ip4OnFrameSentDpc ( Ip4FreeLinkTxToken (Token); } +/** + Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK. + + @param Event The transmit token's event. + @param Context Context which is point to the token. + + @return None + +**/ VOID EFIAPI Ip4OnFrameSent ( IN EFI_EVENT Event, IN VOID *Context ) -/*++ - -Routine Description: - - Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK - -Arguments: - - Event - The transmit token's event - Context - Context which is point to the token. - -Returns: - - None. - ---*/ { // // Request Ip4OnFrameSentDpc as a DPC at TPL_CALLBACK @@ -929,6 +916,7 @@ Returns: @retval EFI_OUT_OF_RESOURCES Failed to allocate resource to send the frame @retval EFI_NO_MAPPING Can't resolve the MAC for the nexthop @retval EFI_SUCCESS The packet is successfully transmitted. + @retval other Other error occurs. **/ EFI_STATUS @@ -1196,6 +1184,7 @@ Returns: @retval EFI_ALREADY_STARTED There is already a pending receive request. @retval EFI_OUT_OF_RESOURCES Failed to allocate resource to receive @retval EFI_SUCCESS The recieve request has been started. + @retval other Other error occurs. **/ EFI_STATUS