From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: Netdev List <netdev@vger.kernel.org>,
lksctp-developers@lists.sourceforge.net
Subject: Re: SCTP control socket question
Date: Thu, 27 Mar 2008 09:15:55 -0400 [thread overview]
Message-ID: <47EB9E0B.2030400@hp.com> (raw)
In-Reply-To: <1206623398.32459.19.camel@iris.sw.ru>
Denis V. Lunev wrote:
> On Thu, 2008-03-27 at 08:48 -0400, Vlad Yasevich wrote:
>> Denis V. Lunev wrote:
>>> Hello, Vlad!
>>>
>>> I have read SCTP sources and found that SCTP control socket
>>> (sctp_ctl_socket) remains hashed unlike similar staff in UDP/TCP etc.
>>>
>>> Am I wrong, that it should not be hashed or not?
>> Why do you believe that the socket is hashed? That socket is only
>> allocated and referenced. It's should not be in any hash tables
>> since we hold a global reference on it.
>
> sctp_ctl_sock_init
> __sock_create
> inet(6)_create
> sk->sk_prot->hash(sk);
>
> For this purpose sk->sk_prot->unhash is explicitly called for ICMP/TCP
> etc cases.
>
> Regards,
> Den
>
Ahhh... ;-)
struct proto sctp_prot = {
...
.hash = sctp_hash,
...
}
static void sctp_hash(struct sock *sk)
{
/* STUB */
}
SCTP currently does't do any hashing on the sockets. It hashes SCTP structures
that live under the socket.
Regards
-vlad
next prev parent reply other threads:[~2008-03-27 13:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 12:03 SCTP control socket question Denis V. Lunev
2008-03-27 12:48 ` Vlad Yasevich
2008-03-27 13:09 ` Denis V. Lunev
2008-03-27 13:15 ` Vlad Yasevich [this message]
2008-03-27 13:43 ` Denis V. Lunev
2008-03-27 14:01 ` Vlad Yasevich
2008-03-27 14:15 ` Pavel Emelyanov
2008-03-28 3:30 ` David Miller
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=47EB9E0B.2030400@hp.com \
--to=vladislav.yasevich@hp.com \
--cc=den@openvz.org \
--cc=lksctp-developers@lists.sourceforge.net \
--cc=netdev@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.