diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2014-09-15 22:28:44 -0400 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-09-16 02:28:13 -0400 |
commit | 8c8b1b83fcdd0f05e1f66ed6f8a2e831d5d374a2 (patch) | |
tree | 639e2202b5ded18df0c38daabedcdeeb3e6c2482 /net/openvswitch/datapath.h | |
parent | 83c8df26a3b654871c0503fcf6eac61777e12ea1 (diff) |
openvswitch: Use tun_key only for egress tunnel path.
Currently tun_key is used for passing tunnel information
on ingress and egress path, this cause confusion. Following
patch removes its use on ingress path make it egress only parameter.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Diffstat (limited to 'net/openvswitch/datapath.h')
-rw-r--r-- | net/openvswitch/datapath.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index 2b982fae6a11..25b0e888cb27 100644 --- a/net/openvswitch/datapath.h +++ b/net/openvswitch/datapath.h | |||
@@ -95,15 +95,15 @@ struct datapath { | |||
95 | /** | 95 | /** |
96 | * struct ovs_skb_cb - OVS data in skb CB | 96 | * struct ovs_skb_cb - OVS data in skb CB |
97 | * @flow: The flow associated with this packet. May be %NULL if no flow. | 97 | * @flow: The flow associated with this packet. May be %NULL if no flow. |
98 | * @tun_key: Key for the tunnel that encapsulated this packet. NULL if the | 98 | * @egress_tun_key: Tunnel information about this packet on egress path. |
99 | * packet is not being tunneled. | 99 | * NULL if the packet is not being tunneled. |
100 | * @input_vport: The original vport packet came in on. This value is cached | 100 | * @input_vport: The original vport packet came in on. This value is cached |
101 | * when a packet is received by OVS. | 101 | * when a packet is received by OVS. |
102 | */ | 102 | */ |
103 | struct ovs_skb_cb { | 103 | struct ovs_skb_cb { |
104 | struct sw_flow *flow; | 104 | struct sw_flow *flow; |
105 | struct ovs_key_ipv4_tunnel *tun_key; | ||
106 | struct vport *input_vport; | 105 | struct vport *input_vport; |
106 | struct ovs_key_ipv4_tunnel *egress_tun_key; | ||
107 | }; | 107 | }; |
108 | #define OVS_CB(skb) ((struct ovs_skb_cb *)(skb)->cb) | 108 | #define OVS_CB(skb) ((struct ovs_skb_cb *)(skb)->cb) |
109 | 109 | ||
@@ -184,7 +184,7 @@ static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_n | |||
184 | extern struct notifier_block ovs_dp_device_notifier; | 184 | extern struct notifier_block ovs_dp_device_notifier; |
185 | extern struct genl_family dp_vport_genl_family; | 185 | extern struct genl_family dp_vport_genl_family; |
186 | 186 | ||
187 | void ovs_dp_process_received_packet(struct sk_buff *); | 187 | void ovs_dp_process_packet(struct sk_buff *skb, struct sw_flow_key *key); |
188 | void ovs_dp_detach_port(struct vport *); | 188 | void ovs_dp_detach_port(struct vport *); |
189 | int ovs_dp_upcall(struct datapath *, struct sk_buff *, | 189 | int ovs_dp_upcall(struct datapath *, struct sk_buff *, |
190 | const struct dp_upcall_info *); | 190 | const struct dp_upcall_info *); |