X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Ftunnel.h;h=27a2f7dbc298894ad239f5afc4fc8f28bf8b8cd8;hb=06a0f3e21b2cf2b772a01cc0779d4c2e01389095;hp=803e2d94d749bacd10a06f5cd54d894207b9488f;hpb=d4f4a9b25251d8279f5287142bc84f637101ee77;p=sliver-openvswitch.git diff --git a/ofproto/tunnel.h b/ofproto/tunnel.h index 803e2d94d..27a2f7dbc 100644 --- a/ofproto/tunnel.h +++ b/ofproto/tunnel.h @@ -20,26 +20,26 @@ #include #include "flow.h" -/* skb mark used for IPsec tunnel packets */ -#define IPSEC_MARK 1 - /* Tunnel port emulation layer. * * These functions emulate tunnel virtual ports based on the outer * header information from the kernel. */ -struct ofport; -struct tnl_port; +struct ofport_dpif; +struct netdev; -bool tnl_port_reconfigure(const struct ofport *, uint32_t odp_port, - struct tnl_port **); +bool tnl_port_reconfigure(const struct ofport_dpif *, const struct netdev *, + odp_port_t); -struct tnl_port *tnl_port_add(const struct ofport *, uint32_t odp_port); -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 *tnl_port_receive(const struct flow *); -uint32_t tnl_port_send(const struct tnl_port *, struct flow *, - struct flow_wildcards *wc); +const struct ofport_dpif *tnl_port_receive(const struct flow *); +bool tnl_xlate_init(const struct flow *base_flow, struct flow *flow, + struct flow_wildcards *); +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(). */ static inline bool