Co-Authored-by: Florian Werner <[email protected]>
Signed-off-by: Florian Werner <[email protected]>
Co-Authored-by: Sebastian Riese <[email protected]>
Signed-off-by: Sebastian Riese <[email protected]>
Signed-off-by: Felix Huettner <[email protected]>
---
lib/conntrack.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/conntrack.c b/lib/conntrack.c
index d96ac2c78..de386e707 100644
--- a/lib/conntrack.c
+++ b/lib/conntrack.c
@@ -54,6 +54,9 @@ COVERAGE_DEFINE(conntrack_l4csum_checked);
COVERAGE_DEFINE(conntrack_l4csum_err);
COVERAGE_DEFINE(conntrack_lookup_natted_miss);
COVERAGE_DEFINE(conntrack_zone_full);
+COVERAGE_DEFINE(conntrack_remove);
+COVERAGE_DEFINE(conntrack_insert);
+COVERAGE_DEFINE(conntrack_maybe_not_found);
struct conn_lookup_ctx {
struct conn_key key;
@@ -588,6 +591,7 @@ conn_clean(struct conntrack *ct, struct conn *conn)
return;
}
+ COVERAGE_INC(conntrack_remove);
ovs_mutex_lock(&ct->ct_lock);
conn_clean__(ct, conn);
ovs_mutex_unlock(&ct->ct_lock);
@@ -1025,6 +1029,7 @@ conn_insert(struct conntrack *ct, struct dp_packet *pkt,
enum ct_alg_ctl_type ct_alg_ctl, uint32_t tp_id)
OVS_REQUIRES(ct->ct_lock)
{
+ COVERAGE_INC(conntrack_insert);
struct conn *nc = NULL;
int64_t czl_limit;
@@ -1154,6 +1159,7 @@ conn_maybe_not_found(struct conntrack *ct, struct
dp_packet *pkt,
const char *helper, const struct alg_exp_node *alg_exp,
enum ct_alg_ctl_type ct_alg_ctl, uint32_t tp_id)
{
+ COVERAGE_INC(conntrack_maybe_not_found);
struct conn *nc = NULL;
/* Note that we only insert a connection during if commit=true. In this
--
2.43.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev