conntrack_flush_tuple() logs "Tuple not found" at warning level, with
no rate limit, each time it is asked to remove a connection that is
not in the table.

A flush that matches on mark, labels or a partial tuple calls it once
per dumped connection.  The next patch makes that flush carry on when
a connection is already gone, so a single flush could then log this
line many times.

The message does not report a problem with the connection tracker
either: the connection that the caller wanted to remove is not there.
Log it at info level and rate limit it.

Suggested-by: Aaron Conole <[email protected]>
Assisted-by: Claude Fable 5.2, Claude Code
Signed-off-by: Bekei Park <[email protected]>
---
v3:
 - No change.
v2:
 - New patch.  Suggested in the review of v1.

 lib/conntrack.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/conntrack.c b/lib/conntrack.c
index f84cdd216..e49ed1bc4 100644
--- a/lib/conntrack.c
+++ b/lib/conntrack.c
@@ -3026,7 +3026,9 @@ conntrack_flush_tuple(struct conntrack *ct, const struct 
ct_dpif_tuple *tuple,
     if (conn) {
         conn_clean(ct, conn);
     } else {
-        VLOG_WARN("Tuple not found");
+        static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 5);
+
+        VLOG_INFO_RL(&rl, "Tuple not found");
         error = ENOENT;
     }
 
-- 
2.43.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to