From: Eric Dumazet <eric.dumazet@gmail.com>
To: Neil Horman <nhorman@tuxdriver.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: Question regarding expected behavior of two udp sockets with SO_REUSEADDR set
Date: Sat, 20 Nov 2010 16:44:47 +0100 [thread overview]
Message-ID: <1290267887.2756.75.camel@edumazet-laptop> (raw)
In-Reply-To: <20101120150441.GA17907@hmsreliant.think-freely.org>
Le samedi 20 novembre 2010 à 10:04 -0500, Neil Horman a écrit :
> Agreed. My thought was to add logic to udp_lib_lport_inuse such that, if
> sk_reuse is set on both sockets, and the input snum is 0 (indicating autobind)
> we should not allow binding sk to inet_sk(sk2)->num. Thoughts?
I dont know, problem is this could be possible right now if sk2 is bound
on 127.0.0.2 address. Adding this test would reduce possible space.
Autobind is tricky, it chooses a port while address is part of the
problem.
Some loopback scalability problems could be solved if full range of
127.0.0.0/8 addresses were used, avoiding the dst refcount false
sharing :)
next prev parent reply other threads:[~2010-11-20 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-20 0:48 Question regarding expected behavior of two udp sockets with SO_REUSEADDR set Neil Horman
2010-11-20 4:06 ` Eric Dumazet
2010-11-20 15:04 ` Neil Horman
2010-11-20 15:38 ` Eric Dumazet
2010-11-20 15:44 ` Eric Dumazet [this message]
2010-11-21 0:50 ` Neil Horman
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=1290267887.2756.75.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.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