diff options
author | Zhang Lubo <lubo.zhang@intel.com> | 2016-04-28 15:51:42 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2017-06-27 15:10:31 +0800 |
commit | 84e1a4804a6e1ce0dc2eedb260bb847e4221698b (patch) | |
tree | befdb4e31d49b0235ac02a404fe51dd9ff2546a2 /Nt32Pkg/SnpNt32Dxe/SnpNt32.h | |
parent | 793316542829f98acba240e6cd455d046ef11eee (diff) | |
download | edk2-84e1a4804a6e1ce0dc2eedb260bb847e4221698b.tar.gz |
Nt32Pkg: Fix SnpNt32 GetStatus bug
According to UEFI spec, the Snp.GetStatus should
return the recycled transmit buffer address, while
the NT32 SNP always return value 1 for the Txbuffer.
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
(cherry picked from commit a2cc5fea44b5b5a28dcf6448eafe61aa5ebb42c7)
Diffstat (limited to 'Nt32Pkg/SnpNt32Dxe/SnpNt32.h')
-rw-r--r-- | Nt32Pkg/SnpNt32Dxe/SnpNt32.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Nt32Pkg/SnpNt32Dxe/SnpNt32.h b/Nt32Pkg/SnpNt32Dxe/SnpNt32.h index 07f61291f7..cb95c5711c 100644 --- a/Nt32Pkg/SnpNt32Dxe/SnpNt32.h +++ b/Nt32Pkg/SnpNt32Dxe/SnpNt32.h @@ -1,6 +1,6 @@ /** @file
-Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 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
@@ -58,6 +58,12 @@ typedef struct _NT_NET_INTERFACE_INFO { #define MAX_INTERFACE_INFO_NUMBER 16
#define MAX_FILE_NAME_LENGTH 280
+#define SNP_MAX_TX_BUFFER_NUM 65536
+#define SNP_TX_BUFFER_INCREASEMENT 32
+
+
+
+
//
// Functions in Net Library
//
@@ -155,6 +161,20 @@ struct _SNPNT32_GLOBAL_DATA { EFI_LOCK Lock;
//
+ // Array of the recycled transmit buffer address.
+ //
+ UINT64 *RecycledTxBuf;
+
+ //
+ // Current number of recycled buffer pointers in RecycledTxBuf.
+ //
+ UINT32 RecycledTxBufCount;
+
+ // The maximum number of recycled buffer pointers in RecycledTxBuf.
+ //
+ UINT32 MaxRecycledTxBuf;
+
+ //
// Private functions
//
SNPNT32_INITIALIZE_GLOBAL_DATA InitializeGlobalData;
|