Paolo Valerio <[email protected]> writes:

> Similarly to what it's done for conntrack_full, add
> conntrack_zone_full increased when new entries are not added due to
> reaching the zone limit.
>
> Signed-off-by: Paolo Valerio <[email protected]>
> ---

Acked-by: Aaron Conole <[email protected]>

>  lib/conntrack.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/lib/conntrack.c b/lib/conntrack.c
> index e96779e68..8cf200e06 100644
> --- a/lib/conntrack.c
> +++ b/lib/conntrack.c
> @@ -50,6 +50,7 @@ COVERAGE_DEFINE(conntrack_full);
>  COVERAGE_DEFINE(conntrack_l3csum_err);
>  COVERAGE_DEFINE(conntrack_l4csum_err);
>  COVERAGE_DEFINE(conntrack_lookup_natted_miss);
> +COVERAGE_DEFINE(conntrack_zone_full);
>  
>  struct conn_lookup_ctx {
>      struct conn_key key;
> @@ -918,6 +919,7 @@ conn_not_found(struct conntrack *ct, struct dp_packet 
> *pkt,
>          struct zone_limit *zl = zone_limit_lookup_or_default(ct,
>                                                               ctx->key.zone);
>          if (zl && atomic_count_get(&zl->czl.count) >= zl->czl.limit) {
> +            COVERAGE_INC(conntrack_zone_full);
>              return nc;
>          }

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

Reply via email to