Last active
March 12, 2020 20:44
-
-
Save SaveTheRbtz/b9bb088a35f48d103ac21501270e971d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/malloc.c b/src/core/malloc.c | |
index 32c20353..83f3e980 100644 | |
--- a/src/core/malloc.c | |
+++ b/src/core/malloc.c | |
@@ -98,7 +98,7 @@ size_t freemem; | |
* | |
* Currently fixed at 512kB. | |
*/ | |
-#define HEAP_SIZE ( 512 * 1024 ) | |
+#define HEAP_SIZE ( 4 * 1024 * 1024 ) | |
/** The heap itself */ | |
static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) ))); | |
diff --git a/src/drivers/net/intel.h b/src/drivers/net/intel.h | |
index 16a72a11..d43bbcee 100644 | |
--- a/src/drivers/net/intel.h | |
+++ b/src/drivers/net/intel.h | |
@@ -145,10 +145,10 @@ struct intel_descriptor { | |
* Minimum value is 8, since the descriptor ring length must be a | |
* multiple of 128. | |
*/ | |
-#define INTEL_NUM_RX_DESC 16 | |
+#define INTEL_NUM_RX_DESC 512 | |
/** Receive descriptor ring fill level */ | |
-#define INTEL_RX_FILL 8 | |
+#define INTEL_RX_FILL 256 | |
/** Receive buffer length */ | |
#define INTEL_RX_MAX_LEN 2048 | |
@@ -161,7 +161,7 @@ struct intel_descriptor { | |
* Descriptor ring length must be a multiple of 16. ICH8/9/10 | |
* requires a minimum of 16 TX descriptors. | |
*/ | |
-#define INTEL_NUM_TX_DESC 16 | |
+#define INTEL_NUM_TX_DESC 512 | |
/** Transmit descriptor ring maximum fill level */ | |
#define INTEL_TX_FILL ( INTEL_NUM_TX_DESC - 1 ) | |
diff --git a/src/include/ipxe/tcp.h b/src/include/ipxe/tcp.h | |
index 21be3ca8..695e5479 100644 | |
--- a/src/include/ipxe/tcp.h | |
+++ b/src/include/ipxe/tcp.h | |
@@ -351,9 +351,9 @@ struct tcp_options { | |
* bandwidth), since in the event of a lost packet the window size | |
* represents the maximum amount that will need to be retransmitted. | |
* | |
- * We therefore choose a maximum window size of 256kB. | |
+ * We therefore choose a maximum window size of 1Mb. | |
*/ | |
-#define TCP_MAX_WINDOW_SIZE ( 256 * 1024 ) | |
+#define TCP_MAX_WINDOW_SIZE ( 1 * 1024 * 1024 ) | |
/** | |
* Path MTU |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment