2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

dpif-netdev: Implement conntrack flush interface.

New functions are implemented in the conntrack module to support this.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
This commit is contained in:
Daniele Di Proietto
2015-11-15 22:07:25 -08:00
parent 4d4e68ed20
commit 5d9cbb4cb8
3 changed files with 34 additions and 1 deletions

View File

@@ -4593,6 +4593,14 @@ dpif_netdev_ct_dump_done(struct dpif *dpif OVS_UNUSED,
return err;
}
static int
dpif_netdev_ct_flush(struct dpif *dpif, const uint16_t *zone)
{
struct dp_netdev *dp = get_dp_netdev(dpif);
return conntrack_flush(&dp->conntrack, zone);
}
const struct dpif_class dpif_netdev_class = {
"netdev",
dpif_netdev_init,
@@ -4637,7 +4645,7 @@ const struct dpif_class dpif_netdev_class = {
dpif_netdev_ct_dump_start,
dpif_netdev_ct_dump_next,
dpif_netdev_ct_dump_done,
NULL, /* ct_flush */
dpif_netdev_ct_flush,
};
static void