summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlic121 <lic121@chinatelecom.cn>2022-02-15 12:33:52 +0800
committerIlya Maximets <i.maximets@ovn.org>2022-03-04 20:23:55 +0100
commit12499cf032bf78974f696d0eecce7bdc53368c5f (patch)
treef11ffc996b2cea93a1eed1900ed4130211ecd375
parentd1e7dce41cd69c54c26cabf9d5de02f590bd0575 (diff)
downloadopenvswitch-12499cf032bf78974f696d0eecce7bdc53368c5f.tar.gz
ofproto-dpif: Trigger revalidation when ipfix config set.
Currently, ipfix conf creation/deletion don't trigger dpif backer revalidation. This is not expected, as we need the revalidation to commit ipfix into xlate. So that xlate can generate ipfix actions. This patch covers only new creation/deletion of ipfix config. Will upload one more patch to cover ipfix option changes. Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: lic121 <lic121@chinatelecom.cn> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
-rw-r--r--ofproto/ofproto-dpif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 9a108fc7e..2ad1b411b 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -2333,6 +2333,12 @@ set_ipfix(
dpif_ipfix_unref(di);
ofproto->ipfix = NULL;
}
+
+ /* TODO: need to consider ipfix option changes more than
+ * enable/disable */
+ if (new_di || !ofproto->ipfix) {
+ ofproto->backer->need_revalidate = REV_RECONFIGURE;
+ }
}
return 0;