Created
July 30, 2017 20:34
-
-
Save danisla/be3c3ebb1d939139cdf426ee88d78f56 to your computer and use it in GitHub Desktop.
Kernel patch to disable nf_conntrack hash resize
This file contains 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
--- a/net/netfilter/nf_conntrack_core.c 2017-04-04 21:21:58.000000000 +0000 | |
+++ b/net/netfilter/nf_conntrack_core.c 2017-07-30 18:23:52.951182000 +0000 | |
@@ -1611,6 +1611,12 @@ | |
struct nf_conntrack_tuple_hash *h; | |
struct nf_conn *ct; | |
+#ifdef CONFIG_PREEMPT | |
+ /* Setting hashsize with PREEMPT kernel is not supported. */ | |
+ printk("WARN: nf_conntrack_set_hashsize: not supported with PREEMPT kernel, skipping resize request to: %s", val); | |
+ return 0; | |
+#endif | |
+ | |
if (current->nsproxy->net_ns != &init_net) | |
return -EOPNOTSUPP; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment