summaryrefslogtreecommitdiff
path: root/lib/netlink-conntrack.h
diff options
context:
space:
mode:
authorAntonio Fischetti <antonio.fischetti@intel.com>2017-08-01 20:12:03 -0700
committerBen Pfaff <blp@ovn.org>2017-08-02 10:18:55 -0700
commitded30c74b1e57af84416cdf6c5babd66b1f48ee6 (patch)
tree8cb8adf3c3320a4c743bc9fa6aa188f8bea61a8e /lib/netlink-conntrack.h
parent324459a39d17559d1adcb42b9d141b0288a75127 (diff)
downloadopenvswitch-ded30c74b1e57af84416cdf6c5babd66b1f48ee6.tar.gz
dpctl: Add new 'ct-bkts' command.
With the command: ovs-appctl dpctl/ct-bkts shows the number of connections per bucket. By using a threshold: ovs-appctl dpctl/ct-bkts gt=N for each bucket shows the number of connections when they are greater than N. Signed-off-by: Antonio Fischetti <antonio.fischetti@intel.com> Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> Co-authored-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com> Signed-off-by: Darrell Ball <dlu998@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/netlink-conntrack.h')
-rw-r--r--lib/netlink-conntrack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/netlink-conntrack.h b/lib/netlink-conntrack.h
index 1263b2158..a95aa69a4 100644
--- a/lib/netlink-conntrack.h
+++ b/lib/netlink-conntrack.h
@@ -35,7 +35,8 @@ enum nl_ct_event_type {
struct nl_ct_dump_state;
-int nl_ct_dump_start(struct nl_ct_dump_state **, const uint16_t *zone);
+int nl_ct_dump_start(struct nl_ct_dump_state **, const uint16_t *zone,
+ int *ptot_bkts);
int nl_ct_dump_next(struct nl_ct_dump_state *, struct ct_dpif_entry *);
int nl_ct_dump_done(struct nl_ct_dump_state *);