[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANn89iJsqGUcSptWHJXYDmfO4XQZbb7nxVdjhuwcN3fVLcvEyg@mail.gmail.com>
Date:	Sat, 4 Jul 2015 10:40:59 +0200
From:	Eric Dumazet <edumazet@...gle.com>
To:	Julian Anastasov <ja@....bg>
Cc:	Alex Gartrell <alexgartrell@...il.com>,
	David Miller <davem@...emloft.net>,
	"agartrell@...com" <agartrell@...com>,
	netdev <netdev@...r.kernel.org>, kernel-team <kernel-team@...com>
Subject: Re: [PATCH net-next] net: bail on sock_wfree, sock_rfree when we have
 a TCP_TIMEWAIT sk
>         Looks like routing by definition can not divert skbs with
> early-demux socket because input routing is not called.
Only if found socket has a valid sk->sk_rx_dst
Early demux :
1) if TCP lookup found a matching socket, we do the attachment
   skb->sk = sk;
   skb->destructor = sock_edemux
2) If sk->sk_rx_dst is set and still valid, IP routing will use this cached dst.
So it looks very possible that some packets could match a socket but
fail the 2) phase.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists