[ovs-dev] [PATCH V5 2/2] bridge: Refactor the 'Instant' stats logic.

Joe Stringer joestringer at nicira.com
Mon Apr 28 01:03:59 UTC 2014


On 25 April 2014 11:55, Alex Wang <alexw at nicira.com> wrote:
>
> +/* Current status database transaction, NULL if there is no ongoing
> + * transaction. */
> +static struct ovsdb_idl_txn *status_txn;
> +
> +/* When the status update commit returns "TXN_INCOMPLETE", should
> register a
> + * timeout in "STATUS_CHECK_AGAIN_MSEC" to check again. */
> +#define STATUS_CHECK_AGAIN_MSEC 100
> +
>

This could be shifted to the top of the file, next to connectivity_seqno.
Not sure if you want to add a comment like the previous "instant stats"
description above it too. I think it's useful to have the context that
these are treated separately because we want to keep them as up-to-date as
possible (with the performance tradeoff that this can't be done at large
scale).

Otherwise, looks good.

Acked-by: Joe Stringer <joestringer at nicira.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20140428/dec6db59/attachment-0005.html>


More information about the dev mailing list