[ovs-dev] [PATCH v1 2/4] route-table: Use classifier to store routing table.

Jarno Rajahalme jrajahalme at nicira.com
Mon Oct 27 21:04:02 UTC 2014


Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>

One comment below:

On Oct 16, 2014, at 11:38 AM, Pravin B Shelar <pshelar at nicira.com> wrote:
> +void
> +ovs_router_flush(void)
> +{
> +    struct ovs_router_entry *rt;
> +
> +    CLS_FOR_EACH_SAFE(rt, cr, &cls) {
> +        if (rt->priority == rt->plen) {
> +            classifier_remove(&cls, &rt->cr);
> +        }
> +    }

Just a note: Classifier ‘SAFE’ iteration (as in master) is not safe when other threads may modify the classifier at the same time.

I have posted a patch series last week to remedy this, so this should not be a blocker for this patch.

Also, it seems to me that all the changes to the route table would come from the main thread, so the race would not be triggered in practice anyway.

> +}
> +

  Jarno




More information about the dev mailing list