mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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>
This commit is contained in:
committed by
Ben Pfaff
parent
324459a39d
commit
ded30c74b1
@@ -2848,13 +2848,13 @@ struct dpif_netlink_ct_dump_state {
|
||||
static int
|
||||
dpif_netlink_ct_dump_start(struct dpif *dpif OVS_UNUSED,
|
||||
struct ct_dpif_dump_state **dump_,
|
||||
const uint16_t *zone)
|
||||
const uint16_t *zone, int *ptot_bkts)
|
||||
{
|
||||
struct dpif_netlink_ct_dump_state *dump;
|
||||
int err;
|
||||
|
||||
dump = xzalloc(sizeof *dump);
|
||||
err = nl_ct_dump_start(&dump->nl_ct_dump, zone);
|
||||
err = nl_ct_dump_start(&dump->nl_ct_dump, zone, ptot_bkts);
|
||||
if (err) {
|
||||
free(dump);
|
||||
return err;
|
||||
|
Reference in New Issue
Block a user