]> git.proxmox.com Git - mirror_ovs.git/blame - lib/netdev-vport.h
ovsdb-idl: Fix iteration over tracked rows with no actual data.
[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 *);
c3827f61 34
161b6042 35char *netdev_vport_patch_peer(const struct netdev *netdev);
0a740f48 36
b9ad7294
EJ
37void netdev_vport_inc_rx(const struct netdev *,
38 const struct dpif_flow_stats *);
39void netdev_vport_inc_tx(const struct netdev *,
40 const struct dpif_flow_stats *);
0a740f48 41
41ca1e0a 42bool netdev_vport_is_vport_class(const struct netdev_class *);
94a53842 43const char *netdev_vport_class_get_dpif_port(const struct netdev_class *);
de281153 44
d9d404ae 45#ifndef _WIN32
3aa30359 46enum { NETDEV_VPORT_NAME_BUFSIZE = 16 };
d9d404ae
GS
47#else
48enum { NETDEV_VPORT_NAME_BUFSIZE = 256 };
49#endif
3aa30359 50const char *netdev_vport_get_dpif_port(const struct netdev *,
cbc083e3
BP
51 char namebuf[], size_t bufsize)
52 OVS_WARN_UNUSED_RESULT;
3aa30359 53
777ece09 54#endif /* netdev-vport.h */