From: Fu Siyuan Date: Mon, 1 Feb 2016 02:30:47 +0000 (+0800) Subject: MdeModulePkg: Correct one return status code in SNP Transmit function. X-Git-Tag: edk2-stable201903~7897 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c1a1980675facc6c18b77c4aba01012c416577a3 MdeModulePkg: Correct one return status code in SNP Transmit function. According to UEFI spec, a BUFFER_FULL return status in UNDI Transmit command indicates UNDI "Transmit buffer is full. Call Get Status command toempty buffer." So this patch updates the SNP Transmit to return EFI_NOT_READY for BUFFER_FULL to let the call know the buffer full status. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-by: Sriram Subramanian Reviewed-by: Laszlo Ersek Reviewed-by: Ye Ting --- diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c index e6c5af77ec..73461bce42 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c @@ -1,7 +1,7 @@ /** @file Implementation of transmitting a packet. -Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -195,6 +195,7 @@ PxeTransmit ( case PXE_STATCODE_SUCCESS: return EFI_SUCCESS; + case PXE_STATCODE_BUFFER_FULL: case PXE_STATCODE_QUEUE_FULL: case PXE_STATCODE_BUSY: Status = EFI_NOT_READY;