mirror of
https://github.com/openvswitch/ovs
synced 2025-09-02 15:25:22 +00:00
conntrack: Support conntrack flush by ct 5-tuple
This patch adds support of flushing a conntrack entry specified by the conntrack 5-tuple in dpif-netdev. Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Darrell Ball <dlu998@gmail.com>
This commit is contained in:
@@ -5842,7 +5842,7 @@ dpif_netdev_ct_flush(struct dpif *dpif, const uint16_t *zone,
|
||||
struct dp_netdev *dp = get_dp_netdev(dpif);
|
||||
|
||||
if (tuple) {
|
||||
return EOPNOTSUPP;
|
||||
return conntrack_flush_tuple(&dp->conntrack, tuple, zone ? *zone : 0);
|
||||
}
|
||||
return conntrack_flush(&dp->conntrack, zone);
|
||||
}
|
||||
|
Reference in New Issue
Block a user