From 9b49f85fd9b0fd10f42dd75b81ee04237ddc565b Mon Sep 17 00:00:00 2001 From: Bhanuprakash Bodireddy Date: Tue, 7 Feb 2017 21:18:22 +0000 Subject: [PATCH] Documentation: Update DPDK doc with extended statistics. Add instructions on how to retrieve extended statistics for DPDK physical and vhost ports. Signed-off-by: Bhanuprakash Bodireddy Signed-off-by: Ben Pfaff --- Documentation/howto/dpdk.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/howto/dpdk.rst b/Documentation/howto/dpdk.rst index 52cb3fcdd..551f87d6a 100644 --- a/Documentation/howto/dpdk.rst +++ b/Documentation/howto/dpdk.rst @@ -299,6 +299,33 @@ physical ports which in turn effects the non-tunnel traffic performance. So it is advised to turn off the Rx checksum offload for non-tunnel traffic use cases to achieve the best performance. +.. _extended-statistics: + +Extended Statistics +------------------- + +DPDK Extended Statistics API allows PMD to expose unique set of statistics. +The Extended statistics are implemented and supported only for DPDK physical +and vHost ports. + +To enable statistics, you have to enable OpenFlow 1.4 support for OVS. +Configure bridge br0 to support OpenFlow version 1.4:: + + $ ovs-vsctl set bridge br0 datapath_type=netdev \ + protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13,OpenFlow14 + +Check the OVSDB protocols column in the bridge table if OpenFlow 1.4 support +is enabled for OVS:: + + $ ovsdb-client dump Bridge protocols + +Query the port statistics by explicitly specifying -O OpenFlow14 option:: + + $ ovs-ofctl -O OpenFlow14 dump-ports br0 + +Note: vHost ports supports only partial statistics. RX packet size based +counter are only supported and doesn't include TX packet size counters. + .. _port-hotplug: Port Hotplug