The MNP and SNP are independent drivers so the MNP_TX_BUFFER_INCREASEMENT could 
choose
any value as needed. While this patch update the default value of this macro to 
32,
to be same as the maximum recycled buffer numbers in one UNDI GetStatus 
command. It is
a workaround for some incorrect UNDI drivers which may not return the correct 
statuses
for the SNP and MNP to correctly retry/call GetStatus to clear the buffers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan...@intel.com>
CC: Ye Ting <ting...@intel.com>
CC: Wu Jiaxin <jiaxin...@intel.com>
---
 MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h 
b/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h
index c66be64..51391af 100644
--- a/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h
+++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h
@@ -27,7 +27,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER 
EXPRESS OR IMPLIED.
 #define MNP_INIT_NET_BUFFER_NUM       512
 #define MNP_NET_BUFFER_INCREASEMENT   64
 #define MNP_MAX_NET_BUFFER_NUM        65536
-#define MNP_TX_BUFFER_INCREASEMENT    64
+#define MNP_TX_BUFFER_INCREASEMENT    32    // Same as the recycling Q length 
for xmit_done in UNDI command.
 #define MNP_MAX_TX_BUFFER_NUM         65536
 
 #define MNP_MAX_RCVD_PACKET_QUE_SIZE  256
-- 
2.5.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to