Commit b2cc8f8a authored by Huanle Han's avatar Huanle Han Committed by Ben Pfaff

ofproto-dpif-mirror: Fix bug that flag "need_revalidate" is never reset.

Flag "need_revalidate" on mbridge is set to true when an ofbundle
destroy. And it's never reset. It causes the backer revalidate and
the mac learning flush every time 'ofproto_run' is called.
Signed-off-by: default avatarHuanle Han <hanxueluo@gmail.com>
Signed-off-by: default avatarBen Pfaff <blp@ovn.org>
parent 3661c068
......@@ -131,11 +131,13 @@ mbridge_has_mirrors(struct mbridge *mbridge)
}
/* Returns true if configurations changes in 'mbridge''s mirrors require
* revalidation. */
* revalidation, and resets the revalidation flag to false. */
bool
mbridge_need_revalidate(struct mbridge *mbridge)
{
return mbridge->need_revalidate;
bool need_revalidate = mbridge->need_revalidate;
mbridge->need_revalidate = false;
return need_revalidate;
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment