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
@@ -5437,7 +5437,7 @@ struct dp_netdev_ct_dump {
|
||||
|
||||
static int
|
||||
dpif_netdev_ct_dump_start(struct dpif *dpif, struct ct_dpif_dump_state **dump_,
|
||||
const uint16_t *pzone)
|
||||
const uint16_t *pzone, int *ptot_bkts)
|
||||
{
|
||||
struct dp_netdev *dp = get_dp_netdev(dpif);
|
||||
struct dp_netdev_ct_dump *dump;
|
||||
@@ -5446,7 +5446,7 @@ dpif_netdev_ct_dump_start(struct dpif *dpif, struct ct_dpif_dump_state **dump_,
|
||||
dump->dp = dp;
|
||||
dump->ct = &dp->conntrack;
|
||||
|
||||
conntrack_dump_start(&dp->conntrack, &dump->dump, pzone);
|
||||
conntrack_dump_start(&dp->conntrack, &dump->dump, pzone, ptot_bkts);
|
||||
|
||||
*dump_ = &dump->up;
|
||||
|
||||
|
Reference in New Issue
Block a user