Merge "Revert "do not auto offload connections with non-zero mark""
diff --git a/fast-classifier/fast-classifier.c b/fast-classifier/fast-classifier.c
index 5c2389e..e1078c7 100644
--- a/fast-classifier/fast-classifier.c
+++ b/fast-classifier/fast-classifier.c
@@ -669,7 +669,7 @@
p_sic->dest_ip == sic.dest_ip ) {
conn->hits++;
if (conn->offloaded == 0) {
- if ((conn->hits >= offload_at_pkts) && conn->sic->mark == 0) {
+ if (conn->hits >= offload_at_pkts) {
struct fast_classifier_tuple fc_msg;
DEBUG_TRACE("OFFLOADING CONNECTION, TOO MANY HITS\n");
if (fast_classifier_update_protocol(p_sic, conn->ct) == 0) {
@@ -695,7 +695,7 @@
return NF_ACCEPT;
} else if (conn->hits > offload_at_pkts) {
- DEBUG_TRACE("MORE THAN %d HITS AND NOT OFFLOADED\n", offload_at_pkts);
+ DEBUG_ERROR("ERROR: MORE THAN %d HITS AND NOT OFFLOADED\n", offload_at_pkts);
spin_unlock_irqrestore(&sfe_connections_lock, flags);
return NF_ACCEPT;
}