net/colo-compare.c: Expose "compare_timeout" to users
commit9cc43c94b31321cdb2ef1d83f99d7a5b8a8b1d9e
authorZhang Chen <chen.zhang@intel.com>
Wed, 18 Mar 2020 08:23:19 +0000 (18 16:23 +0800)
committerJason Wang <jasowang@redhat.com>
Tue, 31 Mar 2020 13:14:35 +0000 (31 21:14 +0800)
treefd490cda6156141660e3f63e0f0e1a188b80cc9c
parent767cc9a9c1daf9b6c8efbfef656e5ca12c853a45
net/colo-compare.c: Expose "compare_timeout" to users

The "compare_timeout" determines the maximum time to hold the primary net packet.
This patch expose the "compare_timeout", make user have ability to
adjest the value according to application scenarios.

QMP command demo:
    { "execute": "qom-get",
         "arguments": { "path": "/objects/comp0",
                        "property": "compare_timeout" } }

    { "execute": "qom-set",
         "arguments": { "path": "/objects/comp0",
                        "property": "compare_timeout",
                        "value": 5000} }

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c
qemu-options.hx