]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
config/pf-ring: Change default cluster type: cluster_flow
authorJeff Lucovsky <jlucovsky@oisf.net>
Sun, 16 Apr 2023 12:38:33 +0000 (08:38 -0400)
committerVictor Julien <vjulien@oisf.net>
Thu, 4 May 2023 13:47:54 +0000 (15:47 +0200)
This commit changes the default pf-ring cluster type to cluster-flow.
Round-robin clustering is not recommended for Suricata.

Issue: 5975
(cherry picked from commit 4f7a36ac2ee111783dbd5870a80e9d28c0ab0103)

src/runmode-pfring.c

index d9f6186cbd62e545ddfde7021139665f0a128404..146e898bba16e79c2728d8da95461becdd3520f0 100644 (file)
@@ -96,7 +96,7 @@ static void *OldParsePfringConfig(const char *iface)
     PfringIfaceConfig *pfconf = SCMalloc(sizeof(*pfconf));
     const char *tmpclusterid;
     const char *tmpctype = NULL;
-    cluster_type default_ctype = CLUSTER_ROUND_ROBIN;
+    cluster_type default_ctype = CLUSTER_FLOW;
 
     if (unlikely(pfconf == NULL)) {
         return NULL;
@@ -200,7 +200,7 @@ static void *ParsePfringConfig(const char *iface)
     PfringIfaceConfig *pfconf = SCMalloc(sizeof(*pfconf));
     const char *tmpclusterid;
     const char *tmpctype = NULL;
-    cluster_type default_ctype = CLUSTER_ROUND_ROBIN;
+    cluster_type default_ctype = CLUSTER_FLOW;
     int getctype = 0;
     int bool_val;
 
@@ -337,7 +337,8 @@ static void *ParsePfringConfig(const char *iface)
 
     if (getctype) {
         if (strcmp(tmpctype, "cluster_round_robin") == 0) {
-            SCLogInfo("Using round-robin cluster mode for PF_RING (iface %s)",
+            SCLogInfo("Using round-robin cluster mode for PF_RING (iface %s)."
+                      " This mode is not recommended.",
                     pfconf->iface);
             pfconf->ctype = CLUSTER_ROUND_ROBIN;
         } else if (strcmp(tmpctype, "cluster_flow") == 0) {