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:
@@ -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
|
||||
|
Reference in New Issue
Block a user