Re: [ovs-dev] [PATCH V1] Add offload packets statistics

2019-10-15 Thread zhaozhanxu
Thanks for your advise, I modified the parameters form 'uint64_t packet_count' and 'uint64_t byte_count' to 'struct pkts_stats'. New commit: https://mail.openvswitch.org/pipermail/ovs-dev/2019-October/363518.html At 2019-10-15 03:15:55, "Ben Pfaff" wrote: >On Fri, Oct 11, 2019 at 11:46:29AM +0

Re: [ovs-dev] [PATCH V1] Add offload packets statistics

2019-10-14 Thread Ben Pfaff
On Fri, Oct 11, 2019 at 11:46:29AM +0800, zhaozhanxu wrote: > Add argument '-m' for command ovs-appctl bridge/dump-flows > to display the offloaded packets statistics. This seems like a reasonable addition, and the code looks OK too. Before, with 2 pointers as function parameters, it was OK to ha

[ovs-dev] [PATCH V1] Add offload packets statistics

2019-10-10 Thread zhaozhanxu
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