diff options
Diffstat (limited to 'net/openvswitch/vport-gre.c')
-rw-r--r-- | net/openvswitch/vport-gre.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c index 493e9775dcda..c99dea543d64 100644 --- a/net/openvswitch/vport-gre.c +++ b/net/openvswitch/vport-gre.c | |||
@@ -16,7 +16,6 @@ | |||
16 | * 02110-1301, USA | 16 | * 02110-1301, USA |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #ifdef CONFIG_OPENVSWITCH_GRE | ||
20 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 19 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
21 | 20 | ||
22 | #include <linux/if.h> | 21 | #include <linux/if.h> |
@@ -177,10 +176,10 @@ static int gre_tnl_send(struct vport *vport, struct sk_buff *skb) | |||
177 | 176 | ||
178 | skb->local_df = 1; | 177 | skb->local_df = 1; |
179 | 178 | ||
180 | return iptunnel_xmit(net, rt, skb, fl.saddr, | 179 | return iptunnel_xmit(rt, skb, fl.saddr, |
181 | OVS_CB(skb)->tun_key->ipv4_dst, IPPROTO_GRE, | 180 | OVS_CB(skb)->tun_key->ipv4_dst, IPPROTO_GRE, |
182 | OVS_CB(skb)->tun_key->ipv4_tos, | 181 | OVS_CB(skb)->tun_key->ipv4_tos, |
183 | OVS_CB(skb)->tun_key->ipv4_ttl, df); | 182 | OVS_CB(skb)->tun_key->ipv4_ttl, df, false); |
184 | err_free_rt: | 183 | err_free_rt: |
185 | ip_rt_put(rt); | 184 | ip_rt_put(rt); |
186 | error: | 185 | error: |
@@ -271,5 +270,3 @@ const struct vport_ops ovs_gre_vport_ops = { | |||
271 | .get_name = gre_get_name, | 270 | .get_name = gre_get_name, |
272 | .send = gre_tnl_send, | 271 | .send = gre_tnl_send, |
273 | }; | 272 | }; |
274 | |||
275 | #endif /* OPENVSWITCH_GRE */ | ||