Skip to content

Commit d2b2a13

Browse files
Jiri Bencdavem330
authored andcommitted
openvswitch: set correct protocol on route lookup
Respect what the caller passed to ovs_tunnel_get_egress_info. Fixes: 8f0aad6 ("openvswitch: Extend packet attribute for egress tunnel info") Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 62dbe83 commit d2b2a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/openvswitch/vport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ int ovs_tunnel_get_egress_info(struct ovs_tunnel_info *egress_tun_info,
600600
fl.saddr = tun_key->ipv4_src;
601601
fl.flowi4_tos = RT_TOS(tun_key->ipv4_tos);
602602
fl.flowi4_mark = skb_mark;
603-
fl.flowi4_proto = IPPROTO_GRE;
603+
fl.flowi4_proto = ipproto;
604604

605605
rt = ip_route_output_key(net, &fl);
606606
if (IS_ERR(rt))

0 commit comments

Comments
 (0)