[ovs-dev] [PATCH V4] Add offload packets statistics
Simon Horman
simon.horman at netronome.com
Fri Dec 6 11:14:10 UTC 2019
On Thu, Dec 05, 2019 at 02:26:25PM +0800, zhaozhanxu wrote:
> Add argument '--offload-stats' 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=574s, n_packets=1152, n_bytes=110768, priority=0,actions=NORMAL
> table_id=254, duration=574s, n_packets=0, n_bytes=0, priority=2,recirc_id=0,actions=drop
> table_id=254, duration=574s, n_packets=0, n_bytes=0, priority=0,reg0=0x1,actions=controller(reason=)
> table_id=254, duration=574s, n_packets=0, n_bytes=0, priority=0,reg0=0x2,actions=drop
> table_id=254, duration=574s, n_packets=0, n_bytes=0, priority=0,reg0=0x3,actions=drop
>
> new command with argument '--offload-stats'
>
> Notice: 'n_offload_packets' are a subset of n_packets and 'n_offload_bytes' are
> a subset of n_bytes.
>
> ovs-appctl bridge/dump-flows --offload-stats br0
>
> duration=582s, n_packets=1152, n_bytes=110768, n_offload_packets=1107, n_offload_bytes=107992, priority=0,actions=NORMAL
> table_id=254, duration=582s, 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=582s, 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=582s, n_packets=0, n_bytes=0, n_offload_packets=0, n_offload_bytes=0, priority=0,reg0=0x2,actions=drop
> table_id=254, duration=582s, n_packets=0, n_bytes=0, n_offload_packets=0, n_offload_bytes=0, priority=0,reg0=0x3,actions=drop
>
> Signed-off-by: zhaozhanxu <zhaozhanxu at 163.com>
Thanks,
this version looks good to me.
I have gone ahead and applied it to master.
More information about the dev
mailing list