aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/r8169-num-rx-desc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/linux-grsec/r8169-num-rx-desc.patch')
-rw-r--r--main/linux-grsec/r8169-num-rx-desc.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/linux-grsec/r8169-num-rx-desc.patch b/main/linux-grsec/r8169-num-rx-desc.patch
new file mode 100644
index 0000000000..c50d963ff9
--- /dev/null
+++ b/main/linux-grsec/r8169-num-rx-desc.patch
@@ -0,0 +1,13 @@
+diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
+index 9cc0215..19e5b4d 100644
+--- a/drivers/net/ethernet/realtek/r8169.c
++++ b/drivers/net/ethernet/realtek/r8169.c
+@@ -80,7 +80,7 @@ static const int multicast_filter_limit = 32;
+ #define R8169_REGS_SIZE 256
+ #define R8169_NAPI_WEIGHT 64
+ #define NUM_TX_DESC 64 /* Number of Tx descriptor registers */
+-#define NUM_RX_DESC 256 /* Number of Rx descriptor registers */
++#define NUM_RX_DESC 512 /* Number of Rx descriptor registers */
+ #define RX_BUF_SIZE 1536 /* Rx Buffer size */
+ #define R8169_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc))
+ #define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))