mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 02:29:01 +00:00
a34255b795
Removed upstreamed: bcm27xx/patches-5.15/950-0446-drm-vc4-Fix-timings-for-VEC-modes.patch[1] Manually rebased: patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch All other patches automatically rebased 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.75&id=2810061452f9b748b096ad023d318690ca519aa3 Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Signed-off-by: John Audia <therealgraysky@proton.me>
26 lines
1006 B
Diff
26 lines
1006 B
Diff
From 804fbb3f2ec9283f7b778e057a68bfff440a0be6 Mon Sep 17 00:00:00 2001
|
|
From: Rui Salvaterra <rsalvaterra@gmail.com>
|
|
Date: Wed, 30 Mar 2022 22:51:55 +0100
|
|
Subject: [PATCH] kernel: ct: size the hashtable more adequately
|
|
|
|
To set the default size of the connection tracking hash table, a divider of
|
|
16384 becomes inadequate for a router handling lots of connections. Divide by
|
|
2048 instead, making the default size scale better with the available RAM.
|
|
|
|
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
|
|
---
|
|
net/netfilter/nf_conntrack_core.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/net/netfilter/nf_conntrack_core.c
|
|
+++ b/net/netfilter/nf_conntrack_core.c
|
|
@@ -2735,7 +2735,7 @@ int nf_conntrack_init_start(void)
|
|
|
|
if (!nf_conntrack_htable_size) {
|
|
nf_conntrack_htable_size
|
|
- = (((nr_pages << PAGE_SHIFT) / 16384)
|
|
+ = (((nr_pages << PAGE_SHIFT) / 2048)
|
|
/ sizeof(struct hlist_head));
|
|
if (BITS_PER_LONG >= 64 &&
|
|
nr_pages > (4 * (1024 * 1024 * 1024 / PAGE_SIZE)))
|