diff options
author | wangchuanlei <wangchuanlei@inspur.com> | 2023-01-18 20:31:17 -0500 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2023-01-31 17:40:50 +0100 |
commit | e22e1f6725b99007b469fcccdbb48f525f302757 (patch) | |
tree | 8e541be074d57ff5e23b6d13a0f58c5d057fa7eb /include/openvswitch | |
parent | e1e5eac5b0167c65c802bd60ed37605b1e1c9c92 (diff) | |
download | openvswitch-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 'include/openvswitch')
-rw-r--r-- | include/openvswitch/netdev.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |