From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: Pravin Shelar <pshelar@nicira.com>,
David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
"Templin, Fred L" <Fred.L.Templin@boeing.com>,
Steffen Klassert <steffen.klassert@secunet.com>
Subject: Re: [PATCH net] net: Clear local_df only if crossing namespace.
Date: Wed, 12 Feb 2014 10:32:49 +0100 [thread overview]
Message-ID: <52FB3FC1.8080603@6wind.com> (raw)
In-Reply-To: <CALnjE+r5zUs0GKUESoum2YumjbfU2XKhDjjcoWUv2D8yiGEYkA@mail.gmail.com>
Le 12/02/2014 05:26, Pravin Shelar a écrit :
> On Mon, Feb 10, 2014 at 6:11 PM, Hannes Frederic Sowa
> <hannes@stressinduktion.org> wrote:
>> On Mon, Feb 10, 2014 at 01:00:14PM -0800, Pravin Shelar wrote:
>>> On Fri, Feb 7, 2014 at 4:58 PM, Hannes Frederic Sowa
>>> <hannes@stressinduktion.org> wrote:
>>>> May I know because of wich vport, vxlan or gre, you did this change?
>>>>
>>> It affects both gre and vxlan.
>>
>> Ok, thanks.
>>
>>>> I am feeling a bit uncomfortable handling remote and local packets that
>>>> differently on lower tunnel output (local_df is mostly set on locally
>>>> originating packets).
>>>
>>> For ip traffic it make sense to turn on local_df only for local
>>> traffic, since for remote case we can send icmp (frag-needed) back to
>>> source. No such thing exist for OVS tunnels. ICMP packet are not
>>> returned to source for the tunnels. That is why to be on safe side,
>>> local_df is turned on for tunnels in OVS.
>>
>> I have a proposal:
>>
>> I don't like it that much because of the many arguments. But I currently
>> don't see another easy solution. Maybe we should make bool xnet an enum and
>> test with bitops?
>>
>> I left the clearing of local_df in skb_scrub_packet as we need it for the
>> dev_forward_skb case and it should be done that in any case.
>>
>> This diff is slightly compile tested. ;)
>>
>> I can test and make proper submit if you agree.
>>
>> What do you think?
>>
>
> I am not sure why the caller can not just set skb->local_df before
> calling iptunnel_xmit() rather than passing extra arg to this
> function?
> There are not that many caller of this function.
The benefit is that it ensures that future callers will think about this point
;-)
Steffen is reworking vti code and will use skb_scrub_packet(), I CC'ed him in
case he has some comment about this change.
Regards,
Nicolas
next prev parent reply other threads:[~2014-02-12 9:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 22:12 [PATCH net] net: Clear local_df only if crossing namespace Pravin
2014-02-07 22:28 ` Hannes Frederic Sowa
2014-02-07 22:49 ` Pravin Shelar
2014-02-08 0:58 ` Hannes Frederic Sowa
2014-02-10 21:00 ` Pravin Shelar
2014-02-11 2:11 ` Hannes Frederic Sowa
2014-02-12 4:26 ` Pravin Shelar
2014-02-12 9:32 ` Nicolas Dichtel [this message]
2014-02-12 17:05 ` Pravin Shelar
2014-02-13 8:50 ` Nicolas Dichtel
2014-02-12 23:35 ` Hannes Frederic Sowa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52FB3FC1.8080603@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=Fred.L.Templin@boeing.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=pshelar@nicira.com \
--cc=steffen.klassert@secunet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).