]> git.proxmox.com Git - mirror_ovs.git/blame - lib/netdev-vport.h
tests: windows ovsdb online compact
[mirror_ovs.git] / lib / netdev-vport.h
CommitLineData
777ece09 1/*
cbc083e3 2 * Copyright (c) 2010, 2011, 2013, 2015 Nicira, Inc.
777ece09
JG
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 NETDEV_VPORT_H
18#define NETDEV_VPORT_H 1
19
f431bf7d 20#include <stdbool.h>
3aa30359 21#include <stddef.h>
cbc083e3 22#include "compiler.h"
f431bf7d 23
93451a0a 24struct dpif_netlink_vport;
0a740f48 25struct dpif_flow_stats;
2b9d6589 26struct netdev;
94a53842 27struct netdev_class;
2b9d6589 28struct netdev_stats;
777ece09 29
c060c4cf
EJ
30void netdev_vport_tunnel_register(void);
31void netdev_vport_patch_register(void);
c3827f61 32
0a740f48 33bool netdev_vport_is_patch(const struct netdev *);
a6363cfd 34bool netdev_vport_is_layer3(const struct netdev *);
c3827f61 35
161b6042 36char *netdev_vport_patch_peer(const struct netdev *netdev);
0a740f48 37
b9ad7294
EJ
38void netdev_vport_inc_rx(const struct netdev *,
39 const struct dpif_flow_stats *);
40void netdev_vport_inc_tx(const struct netdev *,
41 const struct dpif_flow_stats *);
0a740f48 42
41ca1e0a 43bool netdev_vport_is_vport_class(const struct netdev_class *);
94a53842 44const char *netdev_vport_class_get_dpif_port(const struct netdev_class *);
de281153 45
d9d404ae 46#ifndef _WIN32
3aa30359 47enum { NETDEV_VPORT_NAME_BUFSIZE = 16 };
d9d404ae
GS
48#else
49enum { NETDEV_VPORT_NAME_BUFSIZE = 256 };
50#endif
3aa30359 51const char *netdev_vport_get_dpif_port(const struct netdev *,
cbc083e3
BP
52 char namebuf[], size_t bufsize)
53 OVS_WARN_UNUSED_RESULT;
3aa30359 54
777ece09 55#endif /* netdev-vport.h */