From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Frederic Sowa Subject: Re: [PATCH net] net: Clear local_df only if crossing namespace. Date: Fri, 7 Feb 2014 23:28:40 +0100 Message-ID: <20140207222840.GD16198@order.stressinduktion.org> References: <1391811158-11433-1-git-send-email-pshelar@nicira.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: davem@davemloft.net, netdev@vger.kernel.org, "Templin, Fred L" To: Pravin Return-path: Received: from order.stressinduktion.org ([87.106.68.36]:38747 "EHLO order.stressinduktion.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbaBGW2l (ORCPT ); Fri, 7 Feb 2014 17:28:41 -0500 Content-Disposition: inline In-Reply-To: <1391811158-11433-1-git-send-email-pshelar@nicira.com> Sender: netdev-owner@vger.kernel.org List-ID: Hi! On Fri, Feb 07, 2014 at 02:12:38PM -0800, Pravin wrote: > --- a/net/core/skbuff.c > +++ b/net/core/skbuff.c > @@ -3905,12 +3905,13 @@ EXPORT_SYMBOL(skb_try_coalesce); > */ > void skb_scrub_packet(struct sk_buff *skb, bool xnet) > { > - if (xnet) > + if (xnet) { > skb_orphan(skb); > + skb->local_df = 0; > + } > skb->tstamp.tv64 = 0; > skb->pkt_type = PACKET_HOST; > skb->skb_iif = 0; > - skb->local_df = 0; > skb_dst_drop(skb); > skb->mark = 0; > secpath_reset(skb); I wonder if this should be the right behaviour for tunnels, which should just do fragmentation based on IP_DF, even if the packet originated locally from a socket which allowed local fragmentation (inet->pmtudisc < IP_PMTUDISC_DO). Greetings, Hannes