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/flow.c | |
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/flow.c')
-rw-r--r-- | net/openvswitch/flow.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c index d186eb65a391..bf8442071d75 100644 --- a/net/openvswitch/flow.c +++ b/net/openvswitch/flow.c | |||
@@ -606,12 +606,13 @@ static int key_extract(struct sk_buff *skb, struct sw_flow_key *key) | |||
606 | return 0; | 606 | return 0; |
607 | } | 607 | } |
608 | 608 | ||
609 | int ovs_flow_key_extract(struct sk_buff *skb, struct sw_flow_key *key) | 609 | int ovs_flow_key_extract(struct ovs_key_ipv4_tunnel *tun_key, |
610 | struct sk_buff *skb, struct sw_flow_key *key) | ||
610 | { | 611 | { |
611 | /* Extract metadata from packet. */ | 612 | /* Extract metadata from packet. */ |
612 | memset(key, 0, sizeof(*key)); | 613 | memset(key, 0, sizeof(*key)); |
613 | if (OVS_CB(skb)->tun_key) | 614 | if (tun_key) |
614 | memcpy(&key->tun_key, OVS_CB(skb)->tun_key, sizeof(key->tun_key)); | 615 | memcpy(&key->tun_key, tun_key, sizeof(key->tun_key)); |
615 | 616 | ||
616 | key->phy.priority = skb->priority; | 617 | key->phy.priority = skb->priority; |
617 | key->phy.in_port = OVS_CB(skb)->input_vport->port_no; | 618 | key->phy.in_port = OVS_CB(skb)->input_vport->port_no; |