From: David Miller <davem@davemloft.net>
To: tom@herbertland.com
Cc: netdev@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH net-next 0/5] udp: Flow dissection for tunnels
Date: Fri, 14 Oct 2016 11:03:56 -0400 (EDT) [thread overview]
Message-ID: <20161014.110356.1414076388878308737.davem@davemloft.net> (raw)
In-Reply-To: <CALx6S35hEQzc=pCb6ko23HNFdK96-nb=F8Ni2+c=inSpJC16og@mail.gmail.com>
From: Tom Herbert <tom@herbertland.com>
Date: Thu, 13 Oct 2016 12:29:46 -0700
> On Thu, Oct 13, 2016 at 12:17 PM, David Miller <davem@davemloft.net> wrote:
>> This socket lookup is very heavy handed, and I realize that you
>> need this because we no longer store the encapsulation socket in
>> skb->sk these days.
>>
> I don't quite understand your point about the encapsulation socket.
On the transmit side we used to have an issue wrt. what socket lives
on skb->sk when encapsulation is involved.
The problem is that we need skb->sk to be the transport level socket,
but in the output path we used to make tests on "skb->sk" to determine
things such as the multicast loopback flag. But we should be looking
at the tunnel socket for that, otherwise we could do crazy things
like dereference an AF_PACKET socket as if it were an inet socket one.
As such we modified the output path to pass the inner tunnel socket
'sk' down through the call chain, as an argument to functions such as
ip_queue_xmit(), ip_local_out*(), etc.
prev parent reply other threads:[~2016-10-14 15:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 23:25 [PATCH net-next 0/5] udp: Flow dissection for tunnels Tom Herbert
2016-10-12 23:25 ` [PATCH net-next 1/5] udp: Add socket lookup functions with noref Tom Herbert
2016-10-12 23:25 ` [PATCH net-next 2/5] udp: UDP flow dissector Tom Herbert
2016-10-12 23:25 ` [PATCH net-next 3/5] udp: Add UDP flow dissection functions to IPv4 and IPv6 Tom Herbert
2016-10-12 23:25 ` [PATCH net-next 4/5] udp: UDP tunnel flow dissection infrastructure Tom Herbert
2016-10-12 23:25 ` [PATCH net-next 5/5] fou: Support flow dissection Tom Herbert
2016-10-13 19:17 ` [PATCH net-next 0/5] udp: Flow dissection for tunnels David Miller
2016-10-13 19:29 ` Tom Herbert
2016-10-14 15:03 ` David Miller [this message]
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=20161014.110356.1414076388878308737.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=kernel-team@fb.com \
--cc=netdev@vger.kernel.org \
--cc=tom@herbertland.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