]> git.proxmox.com Git - mirror_ovs.git/blame - lib/conntrack-tp.h
dpctl: Add the option 'pmd' for dump-flows.
[mirror_ovs.git] / lib / conntrack-tp.h
CommitLineData
2078901a
WT
1/*
2 * Copyright (c) 2020 VMware, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef CONNTRACK_TP_H
18#define CONNTRACK_TP_H 1
19
20#define CT_DPIF_NETDEV_TP_MIN 30
21enum ct_timeout;
22void timeout_policy_init(struct conntrack *ct);
23int timeout_policy_update(struct conntrack *ct, struct timeout_policy *tp);
24int timeout_policy_delete(struct conntrack *ct, uint32_t tp_id);
25struct timeout_policy *timeout_policy_get(struct conntrack *ct, int32_t tp_id);
26void conn_init_expiration(struct conntrack *ct, struct conn *conn,
27 enum ct_timeout tm, long long now);
28void conn_update_expiration(struct conntrack *ct, struct conn *conn,
29 enum ct_timeout tm, long long now);
30#endif