[ovs-dev] [PATCH 0/1] Add offload packets statistics

zhaozhanxu zhaozhanxu at 163.com
Thu Oct 10 12:13:30 UTC 2019


Add argument '-m' for command ovs-appctl bridge/dump-flows
to display the offloaded packets statistics.

The commands display as below:

orignal command:

ovs-appctl bridge/dump-flows br0
duration=243589s, n_packets=214752, n_bytes=223673384, priority=0,actions=NORMAL
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=2,recirc_id=0,actions=drop
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=0,reg0=0x1,actions=controller(reason=)
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=0,reg0=0x2,actions=drop
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=0,reg0=0x3,actions=drop

new command with argument '-m'

ovs-appctl bridge/dump-flows -m br0
duration=243589s, n_packets=140, n_bytes=69284, n_offload_packets=214612,
n_offload_bytes=223604100, priority=0,actions=NORMAL
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=2,recirc_id=0,actions=drop
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=0,reg0=0x1,actions=controller(reason=)
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=0,reg0=0x2,actions=drop
table_id=254, duration=243589s, n_packets=0, n_bytes=0, n_offload_packets=0,
n_offload_bytes=0, priority=0,reg0=0x3,actions=drop

zhaozhanxu (1):
  Add offload packets statistics

 NEWS                               |  2 ++
 lib/dpif.h                         |  2 ++
 ofproto/bond.c                     |  7 +++--
 ofproto/ofproto-dpif-upcall.c      | 10 +++----
 ofproto/ofproto-dpif-xlate-cache.c |  8 +++---
 ofproto/ofproto-dpif-xlate-cache.h |  6 ++--
 ofproto/ofproto-dpif-xlate.c       |  6 ++--
 ofproto/ofproto-dpif.c             | 29 +++++++++++++------
 ofproto/ofproto-dpif.h             |  2 +-
 ofproto/ofproto-provider.h         |  5 +++-
 ofproto/ofproto.c                  | 58 +++++++++++++++++++++++++++++---------
 ofproto/ofproto.h                  |  2 +-
 vswitchd/bridge.c                  | 15 +++++++---
 13 files changed, 107 insertions(+), 45 deletions(-)

-- 
2.14.1




More information about the dev mailing list