summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorFu Siyuan <siyuan.fu@intel.com>2016-02-01 10:30:47 +0800
committerFu Siyuan <siyuan.fu@intel.com>2016-02-03 15:17:06 +0800
commitc1a1980675facc6c18b77c4aba01012c416577a3 (patch)
treeb2333ed8529db446af89f2b9939ace4db5829ee6 /MdeModulePkg/Universal
parent7b334a31b8f9ebfe304a4164330bed60827a7e37 (diff)
downloadedk2-platforms-c1a1980675facc6c18b77c4aba01012c416577a3.tar.xz
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 <siyuan.fu@intel.com> Reviewed-by: Sriram Subramanian <sriram-s@hpe.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/Network/SnpDxe/Transmit.c3
1 files changed, 2 insertions, 1 deletions
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.<BR>
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
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;