~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/netdev-vport.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2010, 2011 Nicira, Inc.
 
2
 * Copyright (c) 2010, 2011, 2013 Nicira, Inc.
3
3
 *
4
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
5
 * you may not use this file except in compliance with the License.
18
18
#define NETDEV_VPORT_H 1
19
19
 
20
20
#include <stdbool.h>
 
21
#include <stddef.h>
21
22
 
22
23
struct dpif_linux_vport;
23
24
struct dpif_flow_stats;
24
25
struct netdev;
 
26
struct netdev_class;
25
27
struct netdev_stats;
26
28
 
27
29
void netdev_vport_tunnel_register(void);
36
38
void netdev_vport_inc_tx(const struct netdev *,
37
39
                         const struct dpif_flow_stats *);
38
40
 
39
 
const char *netdev_vport_get_dpif_port(const struct netdev *);
 
41
const char *netdev_vport_class_get_dpif_port(const struct netdev_class *);
 
42
 
 
43
enum { NETDEV_VPORT_NAME_BUFSIZE = 16 };
 
44
const char *netdev_vport_get_dpif_port(const struct netdev *,
 
45
                                       char namebuf[], size_t bufsize);
 
46
char *netdev_vport_get_dpif_port_strdup(const struct netdev *);
40
47
 
41
48
#endif /* netdev-vport.h */