mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Update the default size of MNP TX buffer pool.
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.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>
This commit is contained in:
parent
f000a8c60e
commit
7b334a31b8
|
@ -27,7 +27,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#define MNP_INIT_NET_BUFFER_NUM 512
|
#define MNP_INIT_NET_BUFFER_NUM 512
|
||||||
#define MNP_NET_BUFFER_INCREASEMENT 64
|
#define MNP_NET_BUFFER_INCREASEMENT 64
|
||||||
#define MNP_MAX_NET_BUFFER_NUM 65536
|
#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_TX_BUFFER_NUM 65536
|
||||||
|
|
||||||
#define MNP_MAX_RCVD_PACKET_QUE_SIZE 256
|
#define MNP_MAX_RCVD_PACKET_QUE_SIZE 256
|
||||||
|
|
Loading…
Reference in New Issue