* [PATCH net-next] openvswitch: Do not set skb ignore_df
@ 2015-01-02 18:27 Pravin B Shelar
2015-01-02 20:03 ` Jesse Gross
0 siblings, 1 reply; 4+ messages in thread
From: Pravin B Shelar @ 2015-01-02 18:27 UTC (permalink / raw)
To: davem; +Cc: netdev, dev, Pravin B Shelar
Tunnel transmit code clear this bit, so setting ignore_df has
no effect.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
---
net/openvswitch/vport-geneve.c | 1 -
net/openvswitch/vport-gre.c | 2 --
net/openvswitch/vport-vxlan.c | 2 --
3 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/net/openvswitch/vport-geneve.c b/net/openvswitch/vport-geneve.c
index 484864d..8769be9 100644
--- a/net/openvswitch/vport-geneve.c
+++ b/net/openvswitch/vport-geneve.c
@@ -209,7 +209,6 @@ static int geneve_tnl_send(struct vport *vport, struct sk_buff *skb)
df = tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0;
sport = udp_flow_src_port(net, skb, 1, USHRT_MAX, true);
tunnel_id_to_vni(tun_key->tun_id, vni);
- skb->ignore_df = 1;
err = geneve_xmit_skb(geneve_port->gs, rt, skb, fl.saddr,
tun_key->ipv4_dst, tun_key->ipv4_tos,
diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c
index d4168c4..ec57221 100644
--- a/net/openvswitch/vport-gre.c
+++ b/net/openvswitch/vport-gre.c
@@ -194,8 +194,6 @@ static int gre_tnl_send(struct vport *vport, struct sk_buff *skb)
df = tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ?
htons(IP_DF) : 0;
- skb->ignore_df = 1;
-
return iptunnel_xmit(skb->sk, rt, skb, fl.saddr,
tun_key->ipv4_dst, IPPROTO_GRE,
tun_key->ipv4_tos, tun_key->ipv4_ttl, df, false);
diff --git a/net/openvswitch/vport-vxlan.c b/net/openvswitch/vport-vxlan.c
index d7c46b3..dc6f625 100644
--- a/net/openvswitch/vport-vxlan.c
+++ b/net/openvswitch/vport-vxlan.c
@@ -175,8 +175,6 @@ static int vxlan_tnl_send(struct vport *vport, struct sk_buff *skb)
df = tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ?
htons(IP_DF) : 0;
- skb->ignore_df = 1;
-
src_port = udp_flow_src_port(net, skb, 0, 0, true);
err = vxlan_xmit_skb(vxlan_port->vs, rt, skb,
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] openvswitch: Do not set skb ignore_df
2015-01-02 18:27 [PATCH net-next] openvswitch: Do not set skb ignore_df Pravin B Shelar
@ 2015-01-02 20:03 ` Jesse Gross
2015-01-02 20:09 ` Thomas Graf
2015-01-02 22:44 ` Pravin Shelar
0 siblings, 2 replies; 4+ messages in thread
From: Jesse Gross @ 2015-01-02 20:03 UTC (permalink / raw)
To: Pravin B Shelar; +Cc: David Miller, netdev, dev@openvswitch.org
On Fri, Jan 2, 2015 at 1:27 PM, Pravin B Shelar <pshelar@nicira.com> wrote:
> Tunnel transmit code clear this bit, so setting ignore_df has
> no effect.
>
> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Is it actually right for the bit to be cleared though? As discussed in
the previous thread on tunnel MTU handling, I think that fragmentation
should be done as a very last resort.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] openvswitch: Do not set skb ignore_df
2015-01-02 20:03 ` Jesse Gross
@ 2015-01-02 20:09 ` Thomas Graf
2015-01-02 22:44 ` Pravin Shelar
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Graf @ 2015-01-02 20:09 UTC (permalink / raw)
To: Jesse Gross; +Cc: Pravin B Shelar, David Miller, netdev, dev@openvswitch.org
On 01/02/15 at 03:03pm, Jesse Gross wrote:
> On Fri, Jan 2, 2015 at 1:27 PM, Pravin B Shelar <pshelar@nicira.com> wrote:
> > Tunnel transmit code clear this bit, so setting ignore_df has
> > no effect.
> >
> > Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
>
> Is it actually right for the bit to be cleared though? As discussed in
> the previous thread on tunnel MTU handling, I think that fragmentation
> should be done as a very last resort.
Agreed. The source VXLAN VTEP should not fragment at all. I think we
need a separate skb_scrub_packet() for encaps at this point. Some of
the assumptions made for namespace handover do not apply.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] openvswitch: Do not set skb ignore_df
2015-01-02 20:03 ` Jesse Gross
2015-01-02 20:09 ` Thomas Graf
@ 2015-01-02 22:44 ` Pravin Shelar
1 sibling, 0 replies; 4+ messages in thread
From: Pravin Shelar @ 2015-01-02 22:44 UTC (permalink / raw)
To: Jesse Gross; +Cc: David Miller, netdev, dev@openvswitch.org
On Fri, Jan 2, 2015 at 12:03 PM, Jesse Gross <jesse@nicira.com> wrote:
> On Fri, Jan 2, 2015 at 1:27 PM, Pravin B Shelar <pshelar@nicira.com> wrote:
>> Tunnel transmit code clear this bit, so setting ignore_df has
>> no effect.
>>
>> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
>
> Is it actually right for the bit to be cleared though? As discussed in
> the previous thread on tunnel MTU handling, I think that fragmentation
> should be done as a very last resort.
ok, I missed the discussion, I will send another patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-02 22:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-02 18:27 [PATCH net-next] openvswitch: Do not set skb ignore_df Pravin B Shelar
2015-01-02 20:03 ` Jesse Gross
2015-01-02 20:09 ` Thomas Graf
2015-01-02 22:44 ` Pravin Shelar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox