summaryrefslogtreecommitdiff
path: root/lib/dpctl.c
diff options
context:
space:
mode:
authorwangchuanlei <wangchuanlei@inspur.com>2023-01-18 20:31:17 -0500
committerIlya Maximets <i.maximets@ovn.org>2023-01-31 17:40:50 +0100
commite22e1f6725b99007b469fcccdbb48f525f302757 (patch)
tree8e541be074d57ff5e23b6d13a0f58c5d057fa7eb /lib/dpctl.c
parente1e5eac5b0167c65c802bd60ed37605b1e1c9c92 (diff)
downloadopenvswitch-e22e1f6725b99007b469fcccdbb48f525f302757.tar.gz
dpctl: Add support to count upcall packets.
Add support to count upcall packets per port, both succeed and failed, which is a better way to see how many packets upcalled on each interface. Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: wangchuanlei <wangchuanlei@inspur.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/dpctl.c')
-rw-r--r--lib/dpctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dpctl.c b/lib/dpctl.c
index d12d9b8a5..c501a0cd7 100644
--- a/lib/dpctl.c
+++ b/lib/dpctl.c
@@ -750,6 +750,10 @@ show_dpif(struct dpif *dpif, struct dpctl_params *dpctl_p)
print_stat(dpctl_p, " TX bytes:", s.tx_bytes);
print_human_size(dpctl_p, s.tx_bytes);
dpctl_print(dpctl_p, "\n");
+
+ print_stat(dpctl_p, " UPCALL packets:", s.upcall_packets);
+ print_stat(dpctl_p, " errors:", s.upcall_errors);
+ dpctl_print(dpctl_p, "\n");
} else {
dpctl_print(dpctl_p, ", could not retrieve stats (%s)",
ovs_strerror(error));