Thread (1 message) 1 message, 1 author, 2014-12-05

Re: [PATCH net-next] openvswitch: set correct protocol on route lookup

From: Pravin Shelar <hidden>
Date: 2014-12-05 17:43:33

On Fri, Dec 5, 2014 at 8:24 AM, Jiri Benc [off-list ref] wrote:
Respect what the caller passed to ovs_tunnel_get_egress_info.

Fixes: 8f0aad6f35f7e ("openvswitch: Extend packet attribute for egress tunnel info")
Signed-off-by: Jiri Benc <redacted>
Thanks for the fix.
Acked-by: Pravin B Shelar <redacted>
quoted hunk
---
 net/openvswitch/vport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/openvswitch/vport.c b/net/openvswitch/vport.c
index e771a46933e5..9584526c0778 100644
--- a/net/openvswitch/vport.c
+++ b/net/openvswitch/vport.c
@@ -600,7 +600,7 @@ int ovs_tunnel_get_egress_info(struct ovs_tunnel_info *egress_tun_info,
        fl.saddr = tun_key->ipv4_src;
        fl.flowi4_tos = RT_TOS(tun_key->ipv4_tos);
        fl.flowi4_mark = skb_mark;
-       fl.flowi4_proto = IPPROTO_GRE;
+       fl.flowi4_proto = ipproto;

        rt = ip_route_output_key(net, &fl);
        if (IS_ERR(rt))
--
1.8.3.1
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help