MdeModulePkg: update SNP.GetStatus to handle multiple recycled TX buffer.
authorFu Siyuan <siyuan.fu@intel.com>
Fri, 8 Jan 2016 02:21:25 +0000 (02:21 +0000)
committersfu5 <sfu5@Edk2>
Fri, 8 Jan 2016 02:21:25 +0000 (02:21 +0000)
commit7b4b93a24790a3a802138d75167a8e55f3181d70
treefca557d13ccca5a31749329cd925ab7ea5910de2
parentc2967d35d84fce6caf6691d2d892d20e8c273601
MdeModulePkg: update SNP.GetStatus to handle multiple recycled TX buffer.

This patch fixes a bug in SNP.GetStatus() interface. The UNDI driver may return
multiple transmitted buffers in a single GetStatus command, while SNP.GetStatus
could only return one pointer each time, the rest of them are lost. This patch
fixes this issue by store these recycled pointer in a temporary buffer in SNP
driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19623 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Network/SnpDxe/Get_status.c
MdeModulePkg/Universal/Network/SnpDxe/Snp.c
MdeModulePkg/Universal/Network/SnpDxe/Snp.h