From e22e1f6725b99007b469fcccdbb48f525f302757 Mon Sep 17 00:00:00 2001 From: wangchuanlei Date: Wed, 18 Jan 2023 20:31:17 -0500 Subject: 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 Signed-off-by: wangchuanlei Signed-off-by: Ilya Maximets --- include/openvswitch/netdev.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/openvswitch') diff --git a/include/openvswitch/netdev.h b/include/openvswitch/netdev.h index cf48f8691..cafd6fd7b 100644 --- a/include/openvswitch/netdev.h +++ b/include/openvswitch/netdev.h @@ -87,6 +87,10 @@ struct netdev_stats { uint64_t rx_oversize_errors; uint64_t rx_fragmented_errors; uint64_t rx_jabber_errors; + + /* Datapath upcall statistics. */ + uint64_t upcall_packets; /* Rx packets forwarded to userspace. */ + uint64_t upcall_errors; /* Rx packets failed forwarding to userspace. */ }; /* Structure representation of custom statistics counter */ -- cgit v1.2.1