summaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorEelco Chaudron <echaudro@redhat.com>2021-09-06 10:53:42 +0200
committerIlya Maximets <i.maximets@ovn.org>2021-11-08 21:48:05 +0100
commitefd55eb34cf246d7b65bdae633d9369391dfb5af (patch)
tree1b2e0438464ece52818f205cf8fd7cd896f44d22 /datapath
parent317b1bfd7dd315e241c158e6d4095002ff391ee3 (diff)
downloadopenvswitch-efd55eb34cf246d7b65bdae633d9369391dfb5af.tar.gz
dpctl: dpif: Add kernel datapath cache hit output.
This patch adds cache usage statistics to the output: $ ovs-dpctl show system@ovs-system: lookups: hit:24 missed:71 lost:0 flows: 0 masks: hit:334 total:0 hit/pkt:3.52 cache: hit:4 hit-rate:4.21% port 0: ovs-system (internal) port 1: genev_sys_6081 (geneve: packet_type=ptap) port 2: br-int (internal) port 3: br-ex (internal) port 4: eth2 port 5: sw1p1 (internal) port 6: sw0p4 (internal) Signed-off-by: Eelco Chaudron <echaudro@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Acked-by: Paolo Valerio <pvalerio@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'datapath')
-rw-r--r--datapath/linux/compat/include/linux/openvswitch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/linux/compat/include/linux/openvswitch.h b/datapath/linux/compat/include/linux/openvswitch.h
index f0595eeba..a3f5fb919 100644
--- a/datapath/linux/compat/include/linux/openvswitch.h
+++ b/datapath/linux/compat/include/linux/openvswitch.h
@@ -126,8 +126,8 @@ struct ovs_dp_megaflow_stats {
__u64 n_mask_hit; /* Number of masks used for flow lookups. */
__u32 n_masks; /* Number of masks for the datapath. */
__u32 pad0; /* Pad for future expension. */
+ __u64 n_cache_hit; /* Number of cache matches for flow lookups. */
__u64 pad1; /* Pad for future expension. */
- __u64 pad2; /* Pad for future expension. */
};
struct ovs_vport_stats {