[ovs-git] [openvswitch/ovs] 6ffb91: ofproto: fix the bug of bucket counter is not updated
Ben Pfaff
noreply at github.com
Mon Mar 25 20:33:27 UTC 2019
Branch: refs/heads/branch-2.11
Home: https://github.com/openvswitch/ovs
Commit: 6ffb917295180e84b5244164217db86bcf77c02b
https://github.com/openvswitch/ovs/commit/6ffb917295180e84b5244164217db86bcf77c02b
Author: Li Wei <liwei.solomon at gmail.com>
Date: 2019-03-25 (Mon, 25 Mar 2019)
Changed paths:
M ofproto/ofproto.c
M tests/ofproto.at
Log Message:
-----------
ofproto: fix the bug of bucket counter is not updated
After inserting/removing a bucket, we don't update the bucket counter.
When we call ovs-ofctl dump-group-stats br-int, a panic happened.
Reproduce steps:
1. ovs-ofctl -O OpenFlow15 add-group br-int "group_id=1, type=select, selection_method=hash bucket=bucket_id=1,weight:100,actions=output:1"
2. ovs-ofctl insert-buckets br-int "group_id=1, command_bucket_id=last, bucket=bucket_id=7,weight:800,actions=output:1"
3. ovs-ofctl dump-group-stats br-int
gdb) bt
at ../sysdeps/posix/libc_fatal.c:175
ar_ptr=<optimized out>) at malloc.c:5049
group_id=<optimized out>, cb=cb at entry=0x55cab8fd6cd0 <append_group_stats>) at ofproto/ofproto.c:6790
Signed-off-by: solomon <liwei.solomon at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list