diff options
author | Ethan Jackson <ethan@nicira.com> | 2013-06-18 15:24:33 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2013-06-28 02:55:25 -0700 |
commit | 42943cdef10197befc9acc8c6fdb632a210c055f (patch) | |
tree | 0ba906bb5e2e711e907682f41eecb1845fbf0ee4 /ofproto/tunnel.h | |
parent | e1939dbf92a60d0f235621f4d79661f47c5aed0c (diff) | |
download | openvswitch-42943cdef10197befc9acc8c6fdb632a210c055f.tar.gz |
tunnel: Hide 'struct tnl_port' internally.
This simplifies the tunnel module's interface and prevents us from
having to sync 'struct tnl_port' once ofproto-dpif and
ofproto-dpif-xlate are disentangled.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/tunnel.h')
-rw-r--r-- | ofproto/tunnel.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ofproto/tunnel.h b/ofproto/tunnel.h index 19035c3ef..f175f1a15 100644 --- a/ofproto/tunnel.h +++ b/ofproto/tunnel.h @@ -30,17 +30,16 @@ struct ofport_dpif; struct netdev; -struct tnl_port; bool tnl_port_reconfigure(const struct ofport_dpif *, const struct netdev *, - odp_port_t, struct tnl_port **); + odp_port_t); -struct tnl_port *tnl_port_add(const struct ofport_dpif *, const struct netdev *, - odp_port_t); -void tnl_port_del(struct tnl_port *); +void tnl_port_add(const struct ofport_dpif *, const struct netdev *, + odp_port_t odp_port); +void tnl_port_del(const struct ofport_dpif *); const struct ofport_dpif *tnl_port_receive(const struct flow *); -odp_port_t tnl_port_send(const struct tnl_port *, struct flow *, +odp_port_t tnl_port_send(const struct ofport_dpif *, struct flow *, struct flow_wildcards *wc); /* Returns true if 'flow' should be submitted to tnl_port_receive(). */ |