From: Jeff Lucovsky Date: Sun, 16 Apr 2023 12:38:33 +0000 (-0400) Subject: config/pf-ring: Change default cluster type: cluster_flow X-Git-Tag: suricata-7.0.0-rc2~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f7a36ac2ee111783dbd5870a80e9d28c0ab0103;p=thirdparty%2Fsuricata.git config/pf-ring: Change default cluster type: cluster_flow This commit changes the default pf-ring cluster type to cluster-flow. Round-robin clustering is not recommended for Suricata. Issue: 5975 --- diff --git a/src/runmode-pfring.c b/src/runmode-pfring.c index 5832ca19b7..4e63088e59 100644 --- a/src/runmode-pfring.c +++ b/src/runmode-pfring.c @@ -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; @@ -202,7 +202,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; const char *bpf_filter = NULL; int bool_val; @@ -360,7 +360,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) {